Reviewing Errors and Resending Data

After the business function processes the errors, you can review those errors using the Service Error Recovery program (P0045). The Service Error Recovery program:

  1. Displays the errors in a readable format.

    The system uses the Parse Service Error String (B0001270) and Service Error Cache (B0001280) business functions when the user reviews the errors.

  2. Unparses the error string, retrieves the error descriptions, and displays the details in a grid.

  3. If the truncation flag is set, the system displays a message indicating that the error list was truncated and that more details are available in the service logs.

  4. Enables you to cancel the transaction or resend the data associated with the transaction.

    The system uses the Consume Business Service business function (B0001260) to resend the xml message.

Additionally, you can use the Services Error Recovery batch program (R0045) to resend the data.

Note: The error string returned from a service must conform to the format documented here; otherwise, the translation of the error details in the Service Error Recovery program might show unexpected results.

These business functions are used to review and reprocess service error information:

  • B0001260 – Consume Business Service

    This business function locks all records in the F0045 table that have the same key (BSSVPCK, SBFMDNM, GENKEY), fetches records for which the unique key identifier matches the identifier in the data structure and consumes the business service for the specified record.

  • B0001270 – Parse Service Error String

    This business function parses the BSSVERR error string, which is stored in the F0045 table, and saves records to cache. The function counts the number of error records in the BSSVERR string. It counts the number of pipes "|" and separates the fields when it finds a ":". If more than one record is found, it saves the records in a cache (B0001280). Otherwise, it returns the code and the key.

  • B0001280 – Service Error Cache

    This business function is a standard cache-managing business function.