Hi guys, as you know we will upgrade to S/4HANA cloud in near future and as integration consultant, we need to explore how to integrated between 3rd system with S/4HANA Cloud through SAP CPI.
In this article, I want to share the first scenario How to send data from S/4 Cloud into external system through CPI by using DRF – Data replication framework.
First, we need to view flow which we will do in this scenario.

To do this scenario, we have to need some ROLES in S/4 cloud
- Administrator : SAP_BR_ADMINISTRATOR
- Administrator – Data Replication : BR_ADMINISTRATOR_DATA_REPL
- Configuration Expert – Business Network Integration : BR_CONF_EXPERT_BUS_NET_INT
IDENTIFY DRF OBJECT ON API BUSINESS HUB
Go to SAP API Business
Search Buisness Partner SOAP in SAP S/4 HANA Cloud



As you see, we want to send Business partner data to external system, so we get communication scenario SP_COM_008
CONFIGURATION COMMUNICATION SYSTEM ON S/4 CLOUD
Login to S/4 Cloud

Search Communication Systems App

Add New Communication System

Because of this scenario is send data from S/4 cloud to CPI (Outbound), so we just configure in tab Outbound communication.
Input anything in hostname and save. We will comeback this screen after configuration artifact on SAP CPI
CREATE PACKAGE AND ARTIFACTS ON SAP CPI
Go to SAP CPI
Create package
Create Artifact
Add sender adapter is SOAP because of we use communication scenario (SP_COM_0008)

Save & Deploy this IFLOW we will get endpoint URL

CREATE SERVICE KEY ON SAP INTEGRATION SUITE
In this step, we need to create service key in CPI. This step look like we configure user for outbound from ON PREMISE / RISE SAP in SM59.







Copy Client ID and Client Secret for next step.
UPDATE OUTBOUND USER AND SOAP END POINT ON COMMUNICATION SYSTEM APP S/4 CLOUD
Go to S/4 Cloud
Go to Communication System App
Edit


Save
CONFIGURATION COMMUNICATION ARRANGEMENT APP IN S4 CLOUD
Go to Commnication Arrangement App
Create new


Select scenario like in start step. SAP_COM_0008


We need to send Business Partner, so we have to select and configure for Business Partner

We have to define Replication Model and Output Mode for every object which we want to send from S/4 Cloud to external system in section Additional Properties.
With Output Mode, we have 2 options
- P : Pooled Output
- D : Direct Output.

Save and Check connection to SAP CPI


TEST SCENARIO SEND DATA TO SAP CPI BY USING REPPLICATION APP
In this section, we have to test scenario send data to SAP CPI . To do this step, we have to assign ROLE BR_ADMINISTRATOR_DATA_REPL for user
Go to Maintain Business ROLEs App

Create Business Role from Template. Ex : Z_BR_ADMINISTRATOR_DATA_REPL

Assign user into this new business role.

This time, search app with key : REPLICATION
And go to Replicate by Replication Model App


MONITOR STATUS OF MESSAGE REPLICATE INTO EXTERNAL SYSTEM
Go to Monitor Replication App


Check MPL on SAP CPI

SUMMARY
In this article I shared scenario send data from S4 Cloud to external system through SAP CPI. From here, we can explore more detail about integration between SAP CPI and another public cloud platform, in this article is S/4 HANA Public Cloud. Thanks for your reading and any advise kindly leave your comment on this.
Thanks.
JOSEPH.
Hi Joseph,
Much needed article for me 🙂 I’m starting my journey with S4H Cloud editions (Private Cloud). Could you suggest if this holds good for Private cloud as well ? Also I would like to know the IDoc scenario between S4H Cloud to CPI works similar to S4H On Prem to CPI or does it need special setups ?
Thanks,
Sidharth VR
LikeLike