SAP Connector

The SAP connector allows you to integrate Azure Logic Apps with SAP systems. You can trigger workflows based on SAP events or execute SAP operations.

Overview

SAP is a widely used Enterprise Resource Planning (ERP) system. Integrating Logic Apps with SAP enables a variety of scenarios, such as:

  • Automating business processes that span cloud and on-premises SAP systems.
  • Synchronizing data between SAP and other cloud services.
  • Triggering workflows based on changes in SAP data.

Prerequisites

To use the SAP connector, you need:

  • An Azure Logic App.
  • Access to your SAP system.
  • An on-premises data gateway configured if your SAP system is on-premises.
  • Appropriate SAP credentials and permissions.

Key Operations

The SAP connector provides actions to interact with your SAP system:

Trigger: When a message is received

This trigger can be used to initiate a Logic App workflow when a message is sent from SAP. This is often used with SAP's RFC (Remote Function Call) or IDoc (Intermediate Document) functionalities.

Action: Execute SAP Operation

This action allows you to call specific SAP operations, such as BAPIs (Business Application Programming Interfaces) or RFCs, from your Logic App.

Example of executing a BAPI:


{
  "inputs": {
    "host": "your_sap_host",
    "operation": "BAPI_MATERIAL_GETLIST",
    "parameters": {
      "PLANT": "1000",
      "MATERIALGROUP": "FERT"
    }
  }
}
                    
Action: Send SAP message

This action is used to send messages, such as IDocs, to your SAP system. You can define the message content and target SAP interface.

Example of sending an IDoc:


{
  "inputs": {
    "host": "your_sap_host",
    "operation": "IDOC_INBOUND_ASYNCHRONOUS",
    "message": "<idoc><control>...</control><data>...</data></idoc>"
  }
}
                    

Connection Configuration

When setting up the SAP connector, you will typically need to provide:

  • Connection details for your SAP system (e.g., Application Server, System Number, Client, User, Password).
  • For on-premises systems, details of your configured on-premises data gateway.

Learn More

For detailed steps and advanced configurations, please refer to the official SAP connector documentation.