Technical Articles
Integration of Commerce Cloud with SAP S/4Hana
Hi Guys,
Hope you are staying safe and healthy. Though the integration of commerce with SAP S/4 Hana Cloud is not new, I could not find any relevant blogs or articles, so I just thought of posting one.
Here , i will explain about integration between Commerce Cloud and SAP S/4 Hana.
This consists of the following sections:
- Introduction
2. Step by step process on how to replicate orders from Commerce to S4Hana.
3. Configurations on Commerce,CPI and S/4 Hana.
4. Configurations required for S/4 Hana On premise.
- INTRODUCTION
SAP Commerce organizes data like product information to be propagated using multiple communication channels in a consistent and efficient way. This enables businesses to sell products across multiple distribution channels.It is very important for business as it attempts to satisfy human needs and wants by providing them required products and services.
SAP Commerce provides a suite of tools for both system and business administration. Manage system configuration with the Administration Console. Create users and define roles and access permissions, and manage any aspect of your business in the Backoffice Administration Cockpit, Product Management Cockpit, Adaptive Search or other available Backoffice administration perspectives.
SAP Commerce Cloud features
SAP S/4 HANA is a future-ready enterprise resource planning (ERP) system with built-in intelligent technologies, including AI, machine learning, and advanced analytics. It transforms business processes with intelligent automation and runs on SAP HANA – a market-leading in-memory database that offers real-time processing speeds and a dramatically simplified data model.
Integration between SAP Commerce Cloud and SAP S/4 Hana Cloud is achieved through iFlows in SAP Cloud Platform Integration.
2. Step by Step Process on how do we replicate orders from Commerce to S/4 Hana:
Note: For account payment,You can use any PO while you are checking out but the PO number in the front-end should match the PO number in the backend,then only Sales order will be successfully sent from commerce to SAP S/4 Hana via CPI.If issues come with your PO number,then you need to check in the commerce backoffice backend if its same or not.
My scenario works only for the products and subscriptions mentioned in the video.
The status of “In process” shows that commerce has received the response from SAP S/4 hana cloud of successful sales order creation. The status of “created” shows that commerce is still trying to send the sales order.
3. Configurations in Commerce,CPI and S/4 Hana Cloud:
- Commerce:
Commerce Configurations are done in Commerce Backoffice with administrator role.
Login to Commerce Backoffice.
Go to
Configure the following entries:
Give ID as an unique value.Set Active to true.Give Url as CPI Iflmap url.Give an unique name for the Destination target and Endpoint.
Go to
- SAP CPI
Search for this package in the Discover tab of SAP CPI:
Copy to workspace and open the artifacts:
Here we will deal with two iflows which replicate sales order from Commerce Cloud to SAP S/4 Hana Cloud and send notification back to Commerce Cloud:
Replicate-Orders-From-SAP-Commerce-Cloud-To-SAP-S4HANACE:
Configure the sender as shown:
Configure the receiver(use your SAP S/4 Hana Cloud system) with the S/4 Hana Cloud url along with cxf path used in the communication arrangement (configuration given later in the blog post):
Replicate OMS Order Notifications From S4HANACE To SAP Commerce Cloud:
Maintain the address in the sender as maintained in S/4 Hana Communication arrangement (given later here):
Maintain the receiver with the Commerce Cloud URL:
- SAP S/4 Hana Cloud:
Communication User,Communication system and Communication arrangement setup:
Communication User:
Communication System:
Communication Arrangement:
Make sure below entries are active in the outbound services to send notfication back from S/4 Hana Cloud to Commerce:
4. Configurations for S/4 Hana On premise.
Since we do not have communication arrangements for on premise scenario,data flows here through idoc channel.So we have to make all the necessary configurations for idocs.
- Go to Transaction BD54 and create Logical System.
2. In transaction WE20,create partner profile for the following inbound and outbound idocs:
Outbound:
ORDERS
Inbound:
SALESORDER_CREATEFROMDAT02
3. Create RFC Destinations in transaction SM59
4. Create port in WE21
5. In BD64,configure the distribution model and add the message types for the idocs mentioned above.
Conclusion:
SAP Commerce cloud can be integrated to SAP Marketing Cloud,subscription billing system,etc in similiar ways.Only configurations for the marketing cloud or subscription billing system are different.
You can try exploring these configurations and let me know what diffculties or challenges you face.
Thanks alot!!!! 🙂 🙂
Thanks for putting this together, very informative and structured.
A couple of comments:
Hi David Boyd,
Thank you
1.The use case here is replciation of sales order from commerce to SAP S/4 Hana.
2.I dont have such links for now.But i will surely share when i will get any.
Thanks alot
Srishti
Hi Srishti,
How the Order replication trigger from Commerce? after just creating order? or any thing we need to configure?
Please suggest, I had followed the same but Order is not triggering from Commerce.
Regards,
Nagaraju.
Nagaraju Goranti : I am also trying to do the same. Could you please provide some document links which would help with this integration. Were you able to sort it out
Hi Akshay,
There are extensions as part of integration pack, download the pack and include the required extensions and configure the connections.
Reference:
https://help.sap.com/viewer/9b7fba7fb23645fcb03d294ddee98752/2005/en-US/6a8e8be39e864789800f0d1d92c45ea3.html
Nagaraju Goranti : Thank you. I'll try the same
Nagaraju Goranti : I am also stuck here. Everything is configured but still I don't see iFlow being triggered. I have integrated Commerce Cloud with Marketing and there was some cron job which was taking care of it but for Commerce cloud to S4HANA order replication I haven't found any cron job. Although we have configured the iFlow and consumed destination but when will that trigger and how will that trigger is still a mystery to me. I have followed SAP Document on the same
https://help.sap.com/viewer/9b7fba7fb23645fcb03d294ddee98752/2005/en-US/983f044a2e464311a49da70572ac12cc.html?q=Replicating%20Outbound%20Order%20Data%20from%20SAP%20Commerce%20Cloud%20to%20SAP%20S%2F4HANA
but in this also there is nothing mentioned about the same.
Could you please help me if you have completed this integration.
Not a clear article and difficult to understand. It seems like you got a running system with CPI and SAP Commerce, then you just executed a happy flow to post here.