The SAP Gateway connector lets you perform create, get, list, update and delete operations on SAP Gateway OData Services.
Supported versions
This connector uses the SAP Gateway API to enable bidirectional access to SAP services that use the gateway. The following SAP editions are supported:
In this article I’ll showcase how to configure SAP gateway connection to test SAP OData Service on S/4HANA on-premise.
Prerequisites:
Use this connector if your SAP data is exposed as an OData service. This connector facilitates data insertion,fetch and updates using OData. This approach provides a standardized and RESTful interface for accessing and modifying data, which in turn simplifies integration with external systems and applications.
Follow the below steps to configure and test the OData services in SAP HANA using SAP Connector.
Login to the SAP HANA on-premise using SAP Logon
Once you logged in, the search for your OData service
Then it will list all the OData services available. In this case I’m interested in API_SALES_ORDER_SRV
You can execute/test the OData api API_SALES_ORDER_SRV to see the data/results.
Below is the execution result. Let’s query the same from application integration and query the results to make sure it’s working as expected. Here Sales Order number is 1.
Create SAP gateway connection
In your Google Cloud project search for Integration Connector and click on Integration Connector.
Under Integration Connector-Connections, click on create new.
Specify the location where your connection will run. Here I’m specifying it as europe-west4.
Provide the Connection Details(connector, version, connection name, description and service account(select a service account that has the required roles.) and click on NEXT.
A node is a unit (or replica) of a connection that processes transactions. More nodes are required to process more transactions for a connection and conversely, fewer nodes are required to process fewer transactions. To understand how the nodes affect your connector pricing, see Pricing for connection nodes. If you don't enter any values, by default the minimum nodes are set to 2 (for better availability) and the maximum nodes are set to 50.
Provide the Destination Details and click on NEXT
Set this to the URL your SAP Gateway environment or to the full URL of the OData service, Example format; ${ENVIRONMENT_URL}/sap/opu/odata/${NAMESPACE}/${SERVICE}/, sample URL: https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/. Add any additional properties using the CustomUrlParams property.
Configure the Authentication details: Enter the details based on the authentication you want to use and click on NEXT
In this case I’m using the Username Password method
Review all the details in the connection's configuration and click on CREATE
Now, you should have the connection status as active under connections.
Let’s create an integration and test the connection. Search the application integration in the search bar and click on “Application Integration”
Under “Application Integration” select “Integrations” and click on CREATE INTEGRATION
Enter the integration name and description and click on CREATE
Choose the “sap-gateway-hana-onpremise” connection under task and click on it.
Add the API trigger under api trigger(this is required to test the integration). Draw a connection from API Trigger to the sap-gateway-hana-onpremise task.
Let’s configure the sap-gateway-hana-onpremise task. Click on Configure Connector.
Region and Connection is auto populated. Now select the entity and click on NEXT
Under the list of entities select A_SalesOrder and select list operation and click on NEXT.
Click on DONE to Configure Connector task under task editor.
Test the integration to list all the sales orders.
Now you can goto execution results to see and compare the sales order from the SAP system. I see the Sales Order Number and other details matching the sap system. Now you can do all mapping and transformation in Application Integration so extract the SAP data and send it to any other applications.