Transferring Master Data from SAP ERP to SAP EWM

Objective

After completing this lesson, you will be able to transfer master data from SAP ERP to SAP EWM

Data Transfer Between SAP ERP and SAP EWM

There are two kinds of data that are transferred between an SAP ERP system and an decentralized SAP EWM system: master data and transactional data. How master data is transferred depends on the SAP EWM release.

Note

SAP ERP here refers to an SAP Business Suite ERP as well as to an SAP S/4HANA system, connected to an decentralized EWM. In an SAP S/4HANA using embedded EWM, a transfer of master data is not required.

There is different master data which can or has to be transferred:

  • Location-Related Master Data.

    This is divided into:

    • Plants and shipping points:

      Plants and shipping points are actually customizing data in ERP.

    • Customers and vendors
  • Material Master Data:

    Material master related data also includes batches, which are a own set of master data.

Diagram illustrating the distribution of master data between ERP and EWM. ERP Master Data

Master Data Transfer up to SAP EWM 9.5

To transfer location and material-relevant master data to a SCM based EWM system, you define a Core Interface (CIF) model in the SAP ERP system. CIF has always been used for the integration between an ERP system and a SCM system, which was the basis for EWM up to release 9.5.

Shows process for transferring location and material-relevant master data up to release EWM 9.5

The plant and the shipping points are optional to be transferred through CIF. The plant is required for the creation of the location product and can be used for the SCM route determination in SAP EWM. The location product itself is not really required for EWM, but it is possible to transfer QM data to the warehouse product (since EWM9.2), and then the location product also needs to be created. The SCU which is automatically created for the location of the plant, can be used as SCU for the warehouse number, but it can also be created manually (see the section about supply chain units in a previous unit).

The SCU created for the location for the shipping point can be used to create a SCU hierarchy to model the shipping office and receiving office for a warehouse, but also this can be done differently by simply assigning the business attributes SO and RO to the SCU of the warehouse number.

The warehouse product is an additional segment of the product. It can be created automatically when the product is created through CIF (since EWM9.3), or through slotting, or manually. Details of the warehouse product are discussed later.

For the transfer of customers and vendors through CIF you have to decide if only locations, business partners, or both are created. Business partners are the more important objects for EWM (they have to be created). Locations are used for the route determination in EWM.

The transfer of packing instructions into packaging specifications is not a standard CIF feature, but can be enabled through the implementation of some notes on ERP and EWM side.

Generate Integration Model

The following figure shows the basic information required in the CIF model:

Shows the basic information required to populate the CIF model

You identify an integration model using 3 key fields as shown in the figure: the Name, Target Sys. and Application fields. Within the model you indicate which location and material relevant master data you want to transfer. You indicate to the system the data records you want to transfer by inputting selection criteria.

After the integration model is created, you execute and save it. This process builds an internal file of the selected data. The next step is to activate the model. During this step, you transfer the data to the SAP SCM system. After activating the model, any changes to the master data cause the corresponding data fields to update the corresponding data in SAP EWM automatically. This is done by using BTEs (Business Transaction Events).

Master Data in SAP S/4HANA with embedded EWM

In an SAP S/4HANA embedded EWM, the master data is generally not transferred from SAP ERP to SAP EWM, but simply shared. It can be enhanced by specific, EWM related data.

Shows transfer of Master Data with SPA S/4 HANA Embedded EWM

A location for the plant like in a decentralized EWM does not exist in embedded EWM, so there is never a location product. You create the SCUs for the warehouse and the shipping points / receiving points manually depending on your requirements.

For the SCM product, the system just uses the material. The warehouse product is created manually or through slotting.

The transfer of packing instruction to create packaging specifications is possible since S/4HANA 1809 SP03. For this option CIF is used inside S/4HANA.

Master Data Transfer to an SAP S/4HANA-based Decentralized EWM

If the decentralized EWM system is based on SAP S/4HANA, it is not possible to use the Core Interface for master data transfer from ERP. The reason for that is that the EWM part in S/4HANA again uses the master data in the ERP part of the decentral system, just like an embedded EWM. And the CIF can not create this master data, it can only create SCM-based master data.

Because of this the master data is transferred either through an ALE distribution model using IDOCs or the Data Replication Framework (DRF) using services.

Shows a Master Data Transfer to an SAP S/4HANA Decentralized EWM

While the use of an ALE distribution model and IDOCs is technically not as comfortable as the use of CIF, especially in regards to master data changes, it was necessary due to the above explained behavior in the SAP S/4HANA EWM, and actually very simple, because this technology exists already for some time. The possibility to use the DRF depends on the availability for distribution of the different objects through DRF. In the first release of the decentralized EWM based on SAP S/4HANA only the distribution through IDocs was available. The other objects were planned to be enabled for distribution by DRF step-by-step. For details of the available options, please check the release notes for the SAP S/4HANA release you are deploying and the implementation guides.

If an ALE distribution model is used for the customer and vendor transfer, it is not necessary, but possible, to use the Customer/Vendor Integration in ERP. For the distribution with DRF it is necessary to activate the Customer/Vendor Integration.

The distribution of changes with ALE requires the activation and evaluation of change pointers (whereas after the initial distribution of master data, also the creation of new master data works like changes). That means the evaluation of these change pointers needs to be scheduled and is usually done in fixed intervals. When using the DRF for distribution, the transfer of changes can also be scheduled. When the ERP system is an ECC 6 EhP7 or an SAP S/4HANA system, changes of business partners can also be distributed immediately with DRF. This is controlled by the "output mode", which you define for the business object type.

Note

It is possible to distribute batch information through IDocs immediately. Details are described in the SAP Note "2881061 - Decentralized EWM: Enhanced Settings for ALE Data Transfer".

The plant has to be created in the decentralized EWM as in the ERP system. This is necessary for plant related information in the material or batch. The SCUs for the warehouse and shipping point / receiving point are created manually. You can also use just a single SCU for each warehouse, with the business attributes for warehouse, shipping office, and goods receipt office.

As an exception it is again possible to transfer packaging instructions from ERP through CIF to create packaging specifications in EWM.

Note

For simplification reasons the slides in this lessons always show the transfer of batches from ERP to EWM - which has never really been limited. It was always possible to create batches and to change batches in EWM and to transfer this data back to ERP (with some limitations in the early S/4HANA based decentral EWM releases).

IDoc Communication for Master Data Distribution

To transfer master data from an ECC or SAP S/4HANA system to a decentralized EWM-based on SAP S/4HANA, you use ALE / IDocs.

Note

We want to discuss only briefly the concepts of master data distribution through ALE in this unit. For a detailed description and a step-by-step instruction you should use the document Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA. This document is part of the SAP Note "3376455 - Release information and restrictions of Decentralized EWM on S/4HANA 2023 FPS00" (there are similar notes for other SAP S/4HANA releases available).

The following master data can be distributed through ALE:

  • Materials
  • Customers
  • Vendors and Carriers
  • Addresses
  • Batches
  • Class system: Characteristics master
  • Class system: Classes master
  • Class system: Classification master

ALE communication with IDocs uses a lot of settings which are anyway required for EWM, like RFC destinations, but instead of a qRFC as we use for delivery documents, IDocs use a tRFC (transactional RFC). Additionally you need to define a port for IDoc processing in the sender system and receiver system, partner profiles, and a distribution model for the different message types. It might be necessary to define some additional filter object types and it might also be required to implement some BAdIs for reducing the master data selection.

Diagram illustrates Master Data Distribution communication between Sender and Receiver using iDocs

Reduced message types

The existing message types for materials (MATMAS), customers (DEBMAS), and vendors (CREMAS) contain several fields which are not required in the decentralized EWM system. Several of these fields also require the maintenance of allowed values for proper distribution. For this reason SAP recommends to define reduced message types for these objects to reduce the maintenance effort and issues with IDoc processing. The Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA document includes lists of the proposed fields for the reduced messages types.

Accelerate System Integration

SAP S/4HANA offers enhancements for a simpler IDoc integration. Reports are available to:

  • Create the reduced message types
  • Create the required ALE definitions in the sender and the receiver system

Initial and Delta Transfer

The initial master data transfer for the different objects is triggered manually.

  • Characteristics with transaction BD91
  • Classes with transaction BD92
  • Materials with transaction BD10
  • Batches with transaction BD90
  • Customers with transaction BD12
  • Vendors with transaction BD14

After that you use change pointers to create IDocs for transferring master data changes. This can be done manually, but it is expected that you automate this by scheduling the program RBDMIDOC with variants for the different message types.

Note

"Master data changes" in this context also means master data which is created new. So the transactions for the initial master data transfer are really only required once for a warehouse. They might only be required again when you add for example a plant to a warehouse and need to transfer already existing, but previously not transferred, master data.

SAP EWM actually uses IDoc technology for some time already, for the distribution of transportation information from ERP to EWM and back when you use Transportation Planning (LE-TRA) in ERP.