Setting Up the Integration Between SAP ERP and SAP EWM

Objective

After completing this lesson, you will be able to set up the integration between SAP ERP and SAP EWM

Integration Settings

A key step in linking an SAP ERP system and an SAP EWM system is configuring the necessary application link enabling (ALE) settings. Most steps are not really EWM specific, they are required in general for the communication between two SAP systems. Also, in an SAP S/4HANA with embedded EWM, most of these settings are required. The details are a little different, but, in general, the requirements are the same.

Note

"SAP ERP" refers to an SAP Business Suite ERP as well as to an SAP S/4HANA system that is only being used for ERP.

These are settings probably not done by a person responsible for the application settings, but from someone in the system administration, as the overall system landscape and settings are to be considered. The most important settings include the following steps:

  1. Define a logical system for each system and assign it to the client being used in each server. In our example, we assign ZMECLNT800 to client 800 of the SAP ERP system, and assign T43CLNT800 to client 800 of the SAP EWM system.
  2. Define an RFC user in each target system / client (not pictured).
  3. In ALE customizing for both systems, define RFC destinations with the same name as the logical systems (in our example, ZMECLNT800 and T43CLNT800).

This is a very simple view on the settings, as a regular system landscape, consisting of a development, test, and productive system uses different names in each landscape and changes are required accordingly after transports or copies of systems.

Note

The technical settings and the settings for integration described in these sections are explained in detail in several SAP Software release depended notes. A list of these notes can be found in the note "2782080 - Overview of Guides or Best Practices Documents for Extended Warehouse Management".
Illustrates Integration settings in ERP and EWM and the qRFC connection between the systems

Note

All the names in the slide "Integration Settings" are the ones used in our training landscape for EWM classes. They can and should be different in a customer system.

SAP EWM specific settings

There are some settings required only on the EWM side.

Some transactions in EWM call data directly from ERP and therefore do not use the standard RFC connection. For these you assign which RFC destination should be used for method calls. One example for these transactions is Determine and Set Prices from ERP (/SCWM/VALUATION_SET). You don't have to define a separate RFC connection, the standard connection can be used, but it must be assigned.

You define a business system for the EWM and for the ERP system. The SAP EWM system stores the business system in the document flow tables of the cross-system and cross-partner document flow. The business system is a system key that you define in the system landscape directory (SLD).

You map the business systems to their corresponding logical systems, because the delivery documents sent from the SAP ERP system to the SAP EWM system contain only the logical system number of the SAP ERP system. Since SAP EWM stores the business system in the warehouse request document, it uses this table to map the logical system to the business system.

The business system group (BSG) is a mandatory element in the product. You define a business system group and assign both logical systems.

The business system group, like some other settings in EWM, is a heritage coming from SAP SCM, the original platform of EWM. The BSG can be used to either separate materials coming from two different systems with the same material number, or combine materials coming from two different system with different material numbers.

You maintain integrated-related settings in the SAP EWM system to complete the link between both systems. You set control parameters to indicate various data transfer options between the systems. These settings are dependent on the business system of the connected SAP ERP system, and the release and support package. This table is in Customizing for SCM Extended Warehouse Management under Extended Warehouse ManagementInterfacesERP IntegrationERP Integration for Decentralized EWMSet Control Parameters for ERP Version Control. SAP provides standard entries for this table. For any changes the system changes the color of the indicator to show that it is not standard anymore. The system also sets the indicator Data Fields Modified in the Modification Log screen area.

Note

It is actually optional to create an entry for the ERP system in this table. If there is no entry in your EWM system, EWM will behave as if SAP ERP 6.0 EHP3 is connected.

This table is not used for embedded EWM. However, as some of the settings can be changed in embedded EWM as well, these settings are also available in the document Process Profile.

SAP ERP-SAP EWM Warehouse Linkage

To create the link between Inventory Management in the SAP ERP system and SAP EWM, you maintain certain configuration settings in the SAP ERP system. These settings allow the system to determine warehouse management relevancy based on the plant and storage location information in source documents such as inbound and outbound delivery documents. These settings are also used to determine the SAP EWM warehouse used for processing.

Diagram illustrating the organizational relationships and link creation between ERP (Enterprise Resource Planning) and EWM (Extended Warehouse Management) systems

You create a warehouse in the standard warehouse management (WM) definition table to represent the SAP EWM warehouse in the SAP ERP system. When you create this warehouse, assign it to the plant and storage locations used to represent the inventory management stock balances of the materials or products managed in the SAP EWM warehouse.

This warehouse is then activated as an EWM warehouse and a distribution model is created to ensure the transfer of SAP ERP delivery data to and from the SAP EWM system.

At the activation of the warehouse as an EWM warehouse, you have the following options:

  • Comm. WM (Communication external WM):

    The correct entry for EWM is Queued and Serialized Asynchronous RFC.

  • UD (Unchecked Deliveries):

    With this flag you can control if unchecked deliveries are to be distributed. An unchecked delivery is a delivery with a reduced scope of check. This reduced scope of check refers mainly to the availability checks, but can also affect other checks. CRM can create unchecked deliveries in ERP.

  • Dist. Mode (Distribution Mode):

    The distribution mode controls if a delivery is distributed immediately at creation (default entry) or not (Stop distribution). If the distribution is not done immediately, you trigger the distribution in the Outbound Delivery Monitor (For Distribution) or with transaction VL06D. You can override this default setting through the entry in the Distribution Mode of the delivery type. Additionally, a form routine controls the distribution. By manipulating this form routine, you can implement specific checks and requirements. You can find this by using the transaction code VOFM and choosing RequirementsSubsequent functionsDistribution.

    Note

    SAP Note "2927356 - Automatic delivery distribution to EWM system cannot be stopped" describes limitations where the distribution happens despite settings in the delivery type which are meant to stop the distribution. Also see note "1239277 - Delayed distribution of inbound deliveries to an EWM system"
  • SN Dec. WM (Allow Serial Numbers in Decentralized WMS):

    When you have selected that the warehouse number is an EWM warehouse, this indicator is set and not changeable anymore. It means that you can work with serial numbers in EWM, the details are controlled by the serial number profiles.

  • BatchDetEW (Batch Determination in EWM via Batch Attribute Replication):

    This indicator controls the behavior of the automatic batch determination in ERP outbound deliveries.

  • GR fr. EWM only (Goods Receipt from EWM Only):

    This indicator enables you to control whether the process of posting the goods receipt for a manufacturing order into an EWM-managed warehouse can be started from both ERP and EWM or from EWM only.

  • Deliv.Chg (ERP can change delivery after distribution)

    This enables the SAP S/4HANA system to change a delivery while it is already being processed by the SAP EWM system.

    Note

    This flag is only available if the ERP system is an SAP S/4HANA system, but it does not matter if you use embedded EWM or a decentral EWM deployment.

For the distribution model you enter:

  • The ERP warehouse number
  • The logical system key of the EWM system
  • A distribution model view:

    The distribution model view is how you can later locate the distribution model in the transaction BD64 - Maintenance of Distribution Model.

You can select any of the following as Objects for the distribution model:

  • Inbound Delivery
  • Outbound Delivery
  • Production Material Request

    or

  • All

It is not helpful to have separate models, so All is the correct choice. Only in case you would know that the advanced production integration will not be used, it could make sense to select Inbound Delivery and Outbound Delivery separately.

EWM Settings

The warehouse number in SAP EWM is defined separately, details are discussed later.

You connect the two warehouse numbers through a mapping table. Here, you map the business system (optional), the SAP ERP warehouse, and the SAP EWM warehouse. This table is in Customizing for SCM Extended Warehouse Management under Extended Warehouse ManagementInterfacesERP IntegrationGeneral SettingsMap Warehouse Numbers from ERP System to EWM System.

Note

This mapping is required in decentralized as well as in embedded EWM.