Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
Showing results for 
Search instead for 
Did you mean: 
For enabling data exchange in your SAP S/4HANA Cloud with SAP- or non-SAP-solutions by integrating, APIs play an increasing role.

This blog entry will give you an overview about how to configure your SAP S/4HANA Cloud to integrate it with SAP Cloud Platform Integration using SOAP APIs.

Please note that these integration steps are divided into two blog entries. Please make sure that you begin with the first part of the blog entry and change when referenced.

The use case is based on the whitelisted SOAP API Replicate Business Partners from Client to SAP S/4HANA System  based on the integration scenario SAP_COM_0008 (available in SAP API Business Hub). This SOAP API allows you to replicate the business partner relationship data from SAP S/4HANA Cloud to a client system.

  • Note: SAP Cloud Platform Integration represents a third-party system so that the configuration of SAP S/4HANA Cloud is proceeded in the analogous way by integrating with other non-SAP systems.

For the configuration, SAP S/4HANA Cloud enables you to setup the Communication Management within 3 apps which are available in the SAP Fiori Launchpad:

  • Maintain Communication User

  • Create Communication System

  • Create Communication Arrangement

You need to configure and activate the communication arrangement to enable the integration between the SAP S/4HANA Cloud and the SAP Cloud Platform Integration.

Note: Log into S/4HANA Cloud with a user who has the business role as "SAP_BR_ADMINISTRATOR": A person responsible to configure SAP S/4HANA Cloud for the Communication Arrangement.

For establishing secure communication between these two systems, the best practice to organize efficient data exchange is to proceed as follow:

  1. Using the app Maintain Communication User in SAP S/4HANA Cloud you have to create a user who enables the integration with the SAP Cloud Platform Integration: In User Data, enter an appropriate communication user as User Name, for example CPI_USER and an appropriate Description.Enter or generate the appropriate password as per the security guidelines.

    Note: For this integration, we won't use the basic authentication (username + password). Our used authentication method will be certificate based which will be explained in the upcoming steps. By clicking on Create, the User CPI_USER is created!

  2. With the app Communication System in SAP S/4HANA Cloud you have to define a system which will enable the communication with SAP Cloud Platform Integration. Under General Data, enter an appropriate communication system as System ID and System Name, for example CPI_SYSTEM.Under Technical Data, you have to fill in the field Host Name with the path which you got generated in the SAP Cloud Platform Integration which is described in the 4th step of section Retrieve the endpoint of the iFlow. Please enter appropriate names in the fields for Logical System and Business System, for example CPI_SYSTEM.

    In the section User for Inbound Communication, by clicking on +,choose the user which you created before in the app Maintain Communication User.

    In the section User for Outbound Communication, please select SSL Client Certificate as Authentication Method and Default Client Certificate as Certificate Type.

    By clicking on Create, the system which will enable the communication with the SAP Cloud Platform Integration is defined.

  3. After creating the communication user and system, you are able to create the communication arrangement which enables the electronic data exchange between the systems.
    To create a communication arrangement, proceed as follow:
    Open the Communication Arrangements app as usual from the SAP Fiori Launchpad and select New. Select the communication scenario SAP_COM_0008, define the arrangement name and select Create.
    The communication arrangement based on the scenario SAP_COM_0008 is created and a new screen is now open. Under Common Data in the field Communication System, select system which you created before.

    Under Inbound Communication, please select the user you created before, in our example CPI_USER.

    Under Outbound Communication, use Default Client Certificate as Certificate.

    Under Outbound Services, you are able to choose all business objects like customers, suppliers, company addresses (predefined in the integration scenario SAP_COM_0008) etc. which you want to replicate into the SAP Cloud Platform Integration.
    In this example, business partners are chosen for replicating from SAP S/4HANA Cloud into SAP Cloud Platform Integration.

    In the filed Path, please enter the path you got from the SAP Cloud Platform Integration (last part of the URL; explained in the 4th step in section Retrieve the endpoint of the iFlow)

    In Additional Properties, enter a unique name for the Replication Model into the field Property Value, for example, RM_BP.

    Note: It is not allowed to use same names for any other replication model (for example in another communication arrangement) on the same SAP S/4HANA Cloud system.

    After doing these steps, download the authentication certificate under Outbound Communication and save it locally.

    Note: After downloading the certificate, you have to upload it in the SAP Cloud Platform Integration. Read section Setup the Certificate-to-User Mapping.

    Activate the communication arrangement by saving it.

  4. Finally, for replicating business partner from SAP S/4HANA Cloud into the SAP Cloud Platform Integration, use the app Replicate by Replication Model.Note: Logon to S/4HANA Cloud with a user who has the business role as "SAP_BR_ADMINISTRATOR_DATA_REPL": A person responsible to replicate business objects. In the new opened screen, choose the replication model which was defined before in the communication arrangement (RM_BP) and click on Replicate.

    The successful replication is indicated by a notification:

    After successful replication, please continue with section Monitor replicated data.