IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > SAP Software > Troubleshooting and support

Detecting errors during outbound processing

To detect errors such as invalid data or invalid state that occur during outbound processing, you set up business-object application-specific data.

Make sure you have determined which errors you want to detect.

During outbound processing, the adapter can automatically detect errors generated by the SAP JCo interface. To detect other types of errors returned by the RFC interface (for example, to be able to validate the data that is returned) you must define values for application-specific data (metadata) at the business-object level.

To set up the business-object level metadata to detect errors, use the following procedure.


Procedure

  1. Identify the parameters that define RFC error codes and their possible values.
  2. Display the business object in the XML Schema Editor.

  3. From the Properties tab, in the Extensions section, select sapBAPIBusinessObjectTypeMetadata.

  4. Click Add, and select sapasi:ErrorConfiguration, as shown in the following figure.

    Figure 1. Selecting ErrorConfiguration

  5. Add the application-specific information for ErrorParameter, ErrorCode, and ErrorDetail to the business object by right-clicking sapasi:ErrorConfiguration, clicking New, and selecting sapasi:ErrorParameter, sapasi:ErrorCode, and sapasi:ErrorDetail.

    Figure 2. Selecting ErrorCode, ErrorDetail, and ErrorParameter

    • ErrorParameter is the XPATH to the property that returns the error codes.
    • ErrorCode contains all possible values (for example, E, ERROR, and NODATA) returned in the property referred to by ErrorParameter.
    • ErrorDetail is the XPATH to the property that contains details about the error.

    If the values defined in the ErrorCode property match the error parameter values after RFC executes the call, an error message with detailed information is generated. The detail is derived from the ErrorDetail property.

    Error handling application-specific information must be manually maintained.


Results

Your top-level business object contains properties that enable it to detect RFC errors.

Troubleshooting and support