Create an OData v2 connection to link to SAP via HTTP so data can be extracted for use in remote tables and extraction tables.
About this task
Your administrator must enable the
sn_erp_integration.enableModelModification property for you to edit, customize, and clone ERP models and tables.
After you enable the sn_erp_integration.enableModelModification property, ERP Data Hub retrieves all tables and BAPIs (Business Application Programming Interface) to use when managing models. The property must be configured for either a non-production or production state.
System properties are maintained in the System Property table [sys_properties], which you can access using the module navigator, or directly typing
sys_properties.list in the Navigator Filter.
Note: You
must enable the sn_erp_integration.enableModelModification property on the correct scope. Enabling the sn_erp_integration.enableModelModification on a production instance can create
new metadata records when new models and fields are added in ERP Data Hub.
Procedure
-
Confirm that you have an SAP system that has been enabled to make an OData connection.
-
Create a connection and credential alias, specifying HTTP as the Connection type.
-
Create an HTTP connection and associate it with the new alias.
Note: For more information, see
Create an HTTP(s) connection. If you choose to use a MID Server, users with access to the services can use the same credential for RFC and HTTP.
-
Create a system with the HTTP connection.
-
On the system record, confirm that the heartbeats are successful and the retrieval status is complete.
If any have failed, select Restart data retrieval. Any data retrieval that failed (BAPI, OData, or tables) is fetched again.
-
Create a model and, after saving, open the model record.
-
Select Manage model.
-
Select Add model operation.
-
Choose a Select type.
-
Select Save and Continue.
-
Select the new operation.
-
Select Add entity.
-
In Select type, choose OData.
-
In Select entity, search for and select a service, for example API_BUSINESS_PARTNER (Remote API for business partner) in the OData service catalog.
When you specify the service, a call is made to the SAP service to read its metadata. The default service is /sap/opu/odata/iwfnd/CATALOGSERVICE;v=2/ServiceCollection. If you must change the service, create a
property named sn_erp_integration.odata_service_path and set the value.
-
In Select the endpoints, search for and select an endpoint, for example A_BusinessPartnerType.
-
Select Add entity.
The flow named GET SAP BAPIs and tables when system becomes active runs to retrieve the data. The BAPI, table, and catalog tables are populated.
-
Select Specify inputs to check the information and edit as needed.
-
Select Choose output to check the information and edit as needed.
-
Open the ERP systems list by selecting the systems icon (
) in the side panel.
-
Select the system.
-
Check the heartbeat and retrieval status, and select the refresh list icon as needed until the heartbeats are successful and the retrieval status completed.
-
Create a model.
-
Open the ERP models page by selecting the ERP models icon (
) in the side panel.
-
Select New.
-
Add an ERP model name, ERP module, and ERP system, and select Save.
-
Select the new model in the list.
-
Select Manage model.
-
Select Add model operation.
-
Select a Select type.
-
Select Save and Continue.
-
Select the new operation.
-
Select Add entity.
-
In Select type, select OData.
-
Select a Select entity, select an entity, for example API_BUSINESS_PARTNER (Remote API for Business Partner) OData service catalog.
-
In Select the endpoints, search for and select an endpoint, for example A_BusinessPartnerType Entity Name: Business Partner --- Return Type: Business Partner.
-
Select Add entity and wait for retrieval to complete.
-
Select Specify inputs to check the information and edit as needed.
-
If there are required fields, select Select mandatory fields.
-
Select any mandatory inputs listed and select OK.
-
Select Save.
-
Select Choose output.
-
Select + New output.
-
Select fields, for example BusinessPartnerName and Full Name.
-
Select Save.
-
Test with Workflow Studio.
-
Navigate to All > Workflow Studio.
-
On the homepage, select Actions.
-
In the Name column, filter for contains Value and type Use ERP.
-
Select Apply.
-
Select Use ERP data.
-
Select Test.
-
Specify the ModelName, ModelOperation, Mandatory fields (provide a value for the mandatory field if necessary), select a
System, and select Run Test.
-
When complete, select the link Your test has finished running. View the Action execution details.
-
View and check the output, for example, in Output Data, select the Response to view the output.