Learn how to use the SAP S/4HANA Extensibility service to integrate the ABAP environment and the SAP S/4HANA Cloud system.
If you want to use the SAP S/4HANA Cloud Extensibility service, you should assign the corresponding entitlement to the SAP BTP subaccount that you plan to use. The required service plan for this use case is api-access
. See Configure the Entitlements for the SAP S/4HANA Cloud Extensibility Service.
-
Register the SAP S/4HANA Cloud system in your global account. See Register an SAP S/4HANA Cloud System in a Global Account in SAP BTP.
-
Navigate to your SAP BTP subaccount and create an SAP S/4HANA Cloud Extensibility service instance. See Create an SAP S/4HANA Cloud Extensibility Service Instance in the Cloud Foundry Environment.
During the creation of the service instance, you have to define the communication arrangement and authentication type for the SAP S/4HANA Cloud API access in a JSON file:
{ "systemName": "EXAMPLE", "communicationArrangement": { "communicationArrangementName": "INBOUND_COMMUNICATION_ARRANGEMENT", "scenarioId": "SAP_COM_0008", "inboundAuthentication": "OAuth2SAMLBearerAssertion", "outboundAuthentication": "BasicAuthentication", "outboundServices": [ { "name": "Replicate Customers from S/4 System to Client", "isServiceActive": false }, { "name": "Replicate Suppliers from S/4 System to Client", "isServiceActive": false }, { "name": "Replicate Company Addresses from S/4 System to Client", "isServiceActive": false }, { "name": "Replicate Workplace Addresses from S/4 System to Client", "isServiceActive": false }, { "name": "Replicate Personal Addresses from S/4 System to Client", "isServiceActive": false }, { "name": "Business Partner - Replicate from SAP S/4HANA Cloud to Client", "isServiceActive": false }, { "name": "Business Partner Relationship - Replicate from SAP S/4HANA Cloud to Client", "isServiceActive": false }, { "name": "Business Partner - Send Confirmation from SAP S/4HANA Cloud to Client", "isServiceActive": false }, { "name": "BP Relationship - Send Confirmation from SAP S/4HANA Cloud to Client", "isServiceActive": false } ], "communicationSystem": { "communicationSystemHostname": "default.com", "outboundCommunicationUser": { "username": "DefaultUser", "password": "DefaultPassword" } } } }
During the creation of the service instance, you have to define the communication arrangement and authentication type for the SAP S/4HANA Cloud API access in a JSON file.
For
scenarioId
use SAP_COM_0008 and forinboundAuthentication
use OAuth2SAMLBearerAssertion. See Communication Arrangement JSON File - Properties.
The successful creation of the service instance automatically triggers the creation of the following:
- Destination in your SAP BTP subaccount with the same name as your service instance
- Communication arrangement
- Communication system
- Inbound communication user in your SAP S/4HANA Cloud system
The communication arrangement is based on the communication scenario specified during the service instance creation and uses the generated communication system and inbound communication user. A default user is automatically configured for outbound communication.
Once you specify OAUTH SAML Bearer Assertion as your authentication method during service instance creation, the OAUTH SAML Bearer Assertion Identity Provider section gets automatically configured in your communication system.
When using OAUTH SAML Bearer Assertion, you have to manually add a property to the generated destination. To do so, navigate to Connectivity > Destinations in your subaccount, select the corresponding destination, and add the additional property nameIdFormat with the value urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress.