Skip to Content
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:

  1. 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.

  1. 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 System –>API –> Destinations –>  Consumed Destination.

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 Integration –> SAP Base Store Configuration

  1. In the Sales Order Simulation tab, select the options as needed, for availability check, credit check, synchronous pricing for catalog and cart.
  2. Indicate whether you want to use the cache feature for synchronous catalog pricing.
    If cache option is enabled in the Backoffice, then the price is picked from cache. If not enabled, the price is fetched directly from the SAP S/4HANA back-end system.

 

  • 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.

 

  1. 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!!!! 🙂 🙂

2 Comments
You must be Logged on to comment or reply to a post.
  • Thanks for putting this together, very informative and structured.

    A couple of comments:

    1. What use case/scenario are you are trying to address
    2. Can you provide links to a set of resources such as what extensions need to be included in commerce to support this communication
  • 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