Create an OData v2 connection to link to SAP via HTTP so data can be extracted for use in remote tables and extraction tables.
이 태스크 정보
An admin or a user with the sn_erp_integration.erp_admin role must enable the sn_erp_integration.enableModelModification property for you to edit, customize, and clone ERP
models and tables. The property must be enabled on the correct scope. After enabling the property, Zero Copy Connector for ERP 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.
(Enabling the property on a production instance can create metadata records when new models and fields are added in Zero Copy Connector for ERP.) System properties are maintained in the System Property table [sys_properties], which you can access by entering sys_properties.list directly in the Navigator
Filter.
프로시저
-
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.
For credentials, you can use Basic Auth, OAuth, or API Key.
For more information, see:
-
Create an HTTP connection and associate it with the new alias.
주: 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 Select entity.
-
In Select type, choose OData.
The drop-down list in the Select type field only displays the types supported by the ERP system's software version specified on the model record. For example, if
SAP SuccessFactors Cloud is set in the ERP software field for the model, the only entity type available is OData.
-
In Select service, 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.
If you cannot find the service you need, see Add a service manually in Zero Copy Connector for ERP.
-
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 until they're successful.
-
Create a model.
-
Open the ERP models page by selecting the 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 Select entity.
-
In Select type, select OData.
-
In Select service, specify a service, 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 .
-
On the home page, 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.