SAP Cloud for customer Integration With S/4 HANA on-Premise

Systems Involved

SAP S/4HANA 1909 || SAP Cloud Platform Integration 1911 || SAP Cloud

Connector || SAP Cloud for Customer 2002

Recommended Prerequisites:

S4HANA Version: S/4 HANA 1909

Cloud for Customer Version: 2002

Scope of Integration Scenarios:

  • Replicate Materials from S/4HANA to Cloud for Customer
  • Replicate Business Partners from S/4HANA to Cloud for Customer
  • Request External Pricing during from S/4HANA during creation of Quotation/Sales Order in Cloud for Customer
  • Submit for External Document from cloud for customer which in turns creates either sales quotation or sales order based on the document type received
  • Replicate Sales Orders from S/4HANA to Cloud for Customer

Flowchart:



Let’s consider two scenarios from the above in detailed which can be followed to the other scenarios as well.

Scenario I :

  • Replicate Materials from S/4 HANA System

Scenario II :

  • Submit for External Document from cloud for customer which in turns creates either Sales quotation or sales order based on the document type received

Scenario I : Replicate Materials from S/4 HANA System

Source System : SAP S/4 HANA	Target System : SAP Cloud for Customer

Step 1: Make sure, Cloud Connector is reachable 



Step 2: In Cloud Platform Integration, Identify the right iFlow to deploy 

  • Login to CPI
  • Login to CPI


Navigate to Artifact => Replicate Material from SAP Business Suite



Step 3: In S/4 HANA system, create the outbound configuration from SOAMANAGER for respective SOAP Service

SOAP Service: CO_MDM_PRD_BULK_REPL_REQ_OUT



Step 4: In S/4 HANA, make sure your outbound service ping is successful



Step 5: In Cloud for Customer, Create Communication Arrangement for the respective artifact



Note: If it is for the very first time, maintain communication systems as well



Step 6: In Cloud Platform Integration, deploy the iFlow by maintaining right sender and receiver details

As mentioned in Step 2, For the artifact “Replicate Material from Business Suite” we need to maintain Sender and Receiver details as shown below





Step 7: Maintain Replication Models Transaction: DRFIMG Refer below link

https://help.sap.com/viewer/8308e6d301d54584a33cd04a9861bc52/1909.000/en- US/4847a6908fda4e3ba6be8c81202e349c.html

Step 8: In S/4 HANA, Execute Data Replication transaction and pass required Material Numbers that needs to be replicated in S/4 HANA system

Transaction : DRFOUT



Step 9: Once the Material is successfully replicate you will see below Success

Message Success Messages in S/4 HANA





Success Message in Cloud Platform Integration ( Overview => Monitor Message Processing )



Success Message in Cloud for Customer ( Administrator => Webservice Monitoring )



Step 10: The Material has been successfully replicated in Cloud for Customer



Scenario II: Submit for External Document from cloud for customer which in turns creates either Sales quotation or sales order based on the document type received

Source System : SAP Cloud for Customer	Target System : SAP S/4 HANA On-Premise

Step 1: Make sure, Cloud Connector is reachable



Step 2: In Cloud Platform Integration, Identify the right iFlows to deploy

  • Login to CPI
  • Navigate to Package => SAP Cloud for Customer Integration with SAP S/4 HANA


  • Navigate to Artifact => Create Sales quote Follow Up Document in SAP Business Suite


Step 3: In Cloud for Customer, Maintain Code List mapping



Step 4: In Cloud for Customer, Create Communication Arrangement for the respective artifacts

  • Sales Quote Replication to SAP Business Suite
  • Sales Quote Replication from SAP Business Suite
  • Pricing in Sales Quote Replication Scenario in SAP Business Suite
  • Sales Order Replication from SAP Business Suite
  • Pricing in Sales Quote Follow Up Scenario in SAP Business Suite
  • Request Sales Document Data from SAP Business Suite
  • Creation of Sales Quote Follow Up Document in SAP Business Suite

Sample Communication Arrangement for Creation of Sales Quote Follow Up Document in SAP Business Suite: Outbound communication to be maintained here as shown below

Similarly maintain communication arrangement for all above mentioned ( Based on your scenario )





Step 5: In Cloud Platform Integration, deploy the relevant iFlow by maintaining right sender and receiver details

As mentioned in Step 5, For the artifact “Create Sales Quote Follow Up Document in SAP Business Suite” we need to maintain Sender and Receiver details as shown below

Similarly maintain Sender and Receiver details for all other iFlows in CPI.





Step 6: In S/4 HANA If the Sender adaptor type is of “IDOC”, need to maintain below configuration Transactions: WE20 & WE21

WE21 : Maintain Port



WE20 : Maintain Partner Profiles

Inbound should be :

SALESORDER_CREATEFROMDAT2 Outbound

should be : COD_REPLICATE_SALES_ORDER



Step 7: In S/4 HANA, Check the NACE Configuration for

Sales “V1” Output Type to be configured



Step 8: We are executing below scenario from Cloud for Customer to S/4 HANA

Opportunity => Create Sales Quote (C4C) => Request External Pricing (From S/4 HANA) => Price will be replicated successfully in Cloud for Customer => Submit for External Document => Sales Order is created in S/4 HANA => Above created Sales Order is replicated in Cloud for Customer

Opportunity => Create Sales Quote (C4C)



In Cloud for Customer, Enter Document Type



In Cloud for Customer, Request External Pricing



In CPI, respective iFlow is deployed successfully



Price is calculated successfully from S/4 HANA



In Cloud for Customer, Submit for External Document



Replicated Price Screenshot



In CPI, respective iFlow is deployed successfully



Sales Order “195” is successfully created in S/4 HANA



Sales Order “195” is successfully replicated, screenshot from Cloud for Customer



Step 9 : Once the IDOC is successfully processed for both Inbound and

Outbound Transaction: WE05