Data Hub – SAP ERP Integration Use Case

Data Hub plays a vital role in simplifying the data integration between the SAP Commerce Cloud platform and SAP ERP systems.

As a part of the SAP ecosystem, SAP Commerce Cloud is the natural choice for companies already heavily invested in SAP back-end systems. The companies include ones who now also wish to expand their footprint into digital commerce channels. Extending SAP ERP to interchange data with SAP Commerce Cloud ordinarily creates challenges for data management. Leveraging the Data Hub and the out-of-the-box SAP Commerce Cloud-SAP integration, companies have the solution to simplify, extend, and develop these vital data integrations.

A Simple Use Case Overview

Companies have invested considerable resources and time into implementing their SAP ERP systems and customizing them to suit their particular business needs. It is natural, then, to want to build upon this system and its data that forms the basis of critical business processes. Using the Data Hub, transactional, customer, pricing, and product data can be bi-directionally integrated between SAP ERP and SAP Commerce Cloud.

SAP Commerce Cloud-SAP ERP Integration Overview

When a customer places an order in SAP Commerce Cloud, the customer and order details are stored in the SAP Commerce Cloud database. The data is then propagated to Data Hub by Data Hub Adapter core extension. Data Hub processes the data, mapping it to SAP customer, order, product, and other data fields. Then it exchanges the data with the SAP ERP system using SAP-native IDOC format. With asynchronous integration, the processing of data has no impact on the responsiveness of the SAP Commerce Cloud front end. Data Hub ensures data integrity between front and back end systems, while the customer experience is preserved.

The SAP ERP system then handles this data according to its pre-defined business processes. It sends an order confirmation back to SAP Commerce Cloud through Data Hub in a similar process. Later it may update the customer view in SAP Commerce Cloud periodically with the order status or delivery notifications.

The SAP ERP system also serves as an authoritative master data source for pricing information. The pricing information includes campaigns and discounts, product information, and inventory, as well as anticipated future stock. Data Hub can propagate this product and pricing data from SAP ERP to SAP Commerce Cloud as it evolves. By doing so, it ensures that customers always have the most up-to-date view. In addition, the event-driven architecture of Data Hub ensures that the propagation happens in near-real time.

The SAP Integration Workflow

Data Hub is shipped with out-of-the-box SAP integration extensions. These extensions provide a path to move data to and from SAP ERP and Data Hub using the native SAP IDOC format.

Support for SAP integration includes the extensions to receive inbound data and send outbound data, and also a complete set of data model extensions. These extensions provide for the mapping of raw data fragments to canonical items, and then to target data for SAP systems. Data models are also provided for data flowing from SAP ERP to SAP Commerce Cloud. Components marked in color in the following graphic represent current out-of-the-box supplied integration extensions.

The Integration Workflow for Data Flowing from SAP Commerce Cloud to SAP ERP
The Integration Workflow for Data Flowing from SAP ERP to SAP Commerce Cloud

With data flow in both directions, it is possible to deploy the SAP Commerce Cloud solution as the responsive, transactional front-end. SAP ERP remains the authoritative master data source. Some customization may be necessary to adapt this workflow to specific environments. However, the SAP Commerce Cloud software package includes out-of-the-box adapters and handlers for this scenario. The complete package greatly simplifies the effort involved by reducing both time-to-market and total project costs.

Data Integration in a Commerce Environment

Data Hub is able to integrate and consolidate various types of data between SAP ERP and commerce front-end systems. Types of data that may be integrated include the following:

Customer Data

With asynchronous integration, customer data is replicated between the SAP Commerce Cloud solution and SAP ERP. When a customer submits an order, there is the option to create a profile in SAP Commerce Cloud. The unique customer data, along with preferences and transaction history, is stored in SAP Commerce Cloud. It is also replicated to the SAP ERP with an asynchronous call along with the order data. The replication enables a responsive customer experience while ensuring all master data in the SAP ERP is up-to-date. Existing customer data in the SAP ERP can similarly be replicated to SAP Commerce Cloud using either a bulk data transfer or a change event trigger.

Order Data

Submission of a customer order from SAP Commerce Cloud to SAP back-end systems is a critical part of the SAP Commerce Cloud-SAP integration solution. Asynchronous order updates may be triggered by a periodic cron job or an event. The ability to pause between the submission of the order and update to SAP has the added benefit. It allows a window of time for updates to the order. This window could be used as a "buyer's remorse" period, for example.

Product Data

In most cases, considerable time has been invested in specifying, organizing, updating, and classifying product data in the SAP ERP. Such product data may be imported into SAP Commerce Cloud. Once there, it is available in the SAP Commerce Cloud Product Information Management (PIM) solution through the SAP Commerce Cloud Product Cockpit. It is also available to customers during the search and transaction process. This import can be done in bulk, either manually or triggered by an automated process. It can also be updated at the time of a customer transaction as described previously. PIM plays a vital role in the overall MDM strategy.

Pricing Data

SAP Commerce Cloud provides extensive support for B2B pricing scenarios. In these scenarios, a single price for a product applies to all customers and discounts or campaign strategies applied across the board. In such a scenario, basic pricing data, including discounts and campaigns, can be stored in SAP Commerce Cloud. The information is then updated to the SAP ERP on a per-transaction basis with the customer order.

In a B2C scenario, pricing is determined on a per-customer basis depending on various, complex, factors. It therefore may be the SAP ERP that is best equipped to be the source of the master pricing data. In such a scenario, you may opt for synchronous integration between SAP ERP and SAP Commerce Cloud. Synchronous integration also depends on how often these prices are updated. An asynchronous integration solution always means faster response times, decreased load on the SAP ERP back end, and a better customer experience.

Inventory Data

Your SAP ERP system is ordinarily the master data store for inventory, including availability, shipping locations, back orders, and number of items in stock. The business processes in place here already are not replicated in SAP Commerce Cloud. How and where to calculate inventory data is a decision based on factors such as performance and customer satisfaction. The solution may be implemented either in the SAP ERP or the SAP Commerce Cloud solution. It is then presented to the customer through the SAP Commerce Cloud product details page, at checkout, or through the order history.

Order Status

After submitting an order, both B2C and B2B customers want to track the status of their order. The order status data stored and updated in SAP ERP is potentially vast as notifications are issued at every stage of the order fulfillment process. How and if each of statuses are mapped to order status updates in SAP Commerce Cloud is a matter of choice in your implementation. Out-of-the-box, Data Hub provides support for data mapping using one of several pre-built extensions. As with other aspects of the SAP ERP integration scenario, these extensions may be customized to suit your business processes and customers' needs.

A More Detailed Data Flow Model

Getting data from SAP Commerce Cloud to SAP ERP and back again involves more than simply inbound and outbound transport adapters. Data Hub ships complete with a dedicated suite of extensions for a typical SAP Commerce Cloud-SAP integration use case. Each of the extensions has a specific role to play in the preparation and manipulation of data on its path towards and through Data Hub.

The data flow models in the following diagram outline this path, and the role of the various extensions in more detail. Extensions indicated with blue titles are standard SAP Commerce Cloud or Data Hub extensions, while the yellow titled ones are for SAP integration use cases. All the extensions included in these data flow models can be shipped together with Data Hub. They can be used out-of-the-box as the foundation for a SAP Commerce Cloud-SAP data integration. Having out-of-the-box solutions greatly simplifies and reduces the effort involved in your integration project. Click each of the image thumbnails for a larger view.

Publishing a customer order from SAP Commerce Cloud to SAP ERP
Publishing data from SAP ERP to SAP Commerce Cloud