New Logic App connector error responses to SAP

This post has been republished via RSS; it originally appeared at: MSDN Blogs.

The next update to On-Premises Data Gateway SAP Adapter component for Azure Logic Apps SAP connector will include implementation of error condition translation to ABAP exception or BAPI return depending of what is available in the invoked RFC metadata. This will come in use when using the SAP trigger of the connector (when a message is received from SAP - and an error condition is met, such as the RFC is excluded per the user provided SAP Action filter array, such as when the response XML payload is not valid, etc.

For basic RFCs where no BAPI return is available, an ABAP exception will be raised. This will be the case for STFC_CONNECTION and alike RFCs.

For RFCs with BAPI return, both SAP TABLE and STRUCTURE types (table and export directions) will be supported, for all of BAPIRETURN, BAPIRET1 and BAPIRET2 types.

BAPI_PO_GETITEMS is an example of RFC using BAPIRETURN type table.

APAR_EBPP_BALANCES is an example of RFC using BAPIRET1 type export structure.

1119_getdetail is an example of RFC using BAPIRET2 type table. In the SAP Logon GUI you need to open the returned table to see the response details:

When the error response is not sufficient to determine the issue, refer to the SAP extended logs for the , which you can enable per the new SAP log file section of earlier blog post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.