Connect to an on-premises SAP system from logic apps with the SAP connector
The on-premises data gateway enables you to manage data, and securely access resources that are on-premises. This topic shows how you can connect logic apps to an on-premises SAP system. In this example, your logic app requests an IDOC over HTTP and sends the response back.
- Your logic app times out if all steps required for the response don't finish within the request timeout limit. In this scenario, requests might get blocked.
- The file picker does not display all the available fields. In this scenario, you can manually add paths.
Install and configure the latest on-premises data gateway version 1.15.6150.1 or newer. How to connect to the on-premises data gateway in a logic app lists the steps. The gateway must be installed on an on-premises machine before you can proceed.
Download and install the latest SAP client library on the same machine where you installed the data gateway. Use any of the following SAP versions:
- Any SAP Server that support the .NET Connector (NCo) 3.0
- SAP .NET Connector (NCo) 3.0
Add triggers and actions for connecting to your SAP system
The SAP connector has actions, but not triggers. So, we have to use another trigger at the start of the workflow.
Add the Request/Response trigger, and then select New step.
Select Add an action, and then select the SAP connector by typing
SAPin the search field:
Select Connect via on-premises data gateway, and enter the details for your SAP system:
Under Gateway, select an existing gateway, or to install a new gateway, select Install Gateway.
After you enter all the details, select Create. Logic Apps configures and tests the connection, making sure that the connection works properly.
Enter a name for your SAP connection.
The different SAP options are now available. To find your IDOC category, select from the list. Or manually type in the path, and select the HTTP response in the body field:
Add the action for creating an HTTP Response. The response message should be from the SAP output.
Save your logic app. Test it by sending an IDOC through the HTTP trigger URL. After the IDOC is sent, wait for the response from the logic app:
Check out how to monitor your Logic Apps.
Now that the SAP connector is added to your logic app, start exploring other functionalities:
To ask questions, answer questions, and learn what other Azure Logic Apps users are doing, visit the Azure Logic Apps forum.
To help improve Azure Logic Apps and connectors, vote on or submit ideas at the Azure Logic Apps user feedback site.