Decentralized EWM in S/4HANA - How-To-Guide
Decentralized EWM in S/4HANA - How-To-Guide
How-To Guide
SAP NetWeaver
Document Version: 2.0 - 2019-05-29
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Document History © 2019 SAP AG or an SAP affiliate company. All rights reserved. 2
Table of Contents
1 Business Scenario ......................................................................................................................... 5
3 Prerequisites ................................................................................................................................. 6
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Table of Contents © 2019 SAP AG or an SAP affiliate company. All rights reserved. 3
7.4 Activating BC Sets for Client-Dependent Basic Settings ..........................................................38
7.5 Verifying Synchronization of SAP ERP and EWM Customizing ................................................39
Appendix ................................................................................................................................................ 60
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Table of Contents © 2019 SAP AG or an SAP affiliate company. All rights reserved. 4
1 Business Scenario
This how-to guide describes the detailed configuration for integrating SAP ERP or SAP S/4HANA with
decentralized Extended Warehouse Management (EWM) based on SAP S/4HANA 1809.
It covers the following aspects of the configuration:
· Configuration of system connection and global settings between decentralized EWM based on SAP
S/4HANA and SAP ERP
· Configuration of qRFC communication
· Configuration of IDoc communication
· Customizing settings in decentralized EWM
· Master Data Distribution via ALE/IDoc
· Warehouse Integration into the SAP ERP enterprise structure
· Warehouse creation and integration in EWM
· Additional data transfer and settings in SAP ERP and EWM
Decentralized EWM on an SAP S/4HANA stack is a deployment option of the EWM application on the SAP
S/4HANA on premise stack. It is an SAP S/4HANA on premise system for EWM usage. Compared to an
embedded EWM in SAP S/4HANA, it provides integration capabilities to a remote enterprise management
system, for example an SAP ERP system.
The wording ‘decentralized’ indicates a system landscape with a global enterprise management system which is
hosted in the corporate central data center, and which is integrated with a decentralized deployment of an EWM
system. In this guide, the global enterprise management system is an SAP ERP system or an SAP S/4HANA
system.
'Decentralized' also means that stock for these warehouses does not have active MM-IM stock management in
the same SAP S/4HANA system and client. Non-active MM-IM stock implies that the core enterprise
management logistics applications (PP, SD, MM, etc.) are also not actively used in this system and client for the
decentral warehouse-managed stock.
2 Background Information
Before you continue with this how-to guide, make sure this how-to guide fits to your EWM deployment option:
· Decentralized EWM on an SAP S/4HANA OP 1809 stack, linked to
· SAP ERP 6.0 EhP 5 or higher
You can also use this guide for the following deployment option:
· Decentralized EWM on an SAP S/4HANA OP 1809 stack, linked to
· SAP S/4HANA OP 1611 or higher, used as global enterprise management system
Other guides are available for SAP EWM or other EWM deployment options. For more information, refer to SAP
note 2782080.
Important
This guide is primarily intended for the integration of decentralized EWM with SAP ERP. You can
also use it for the integration of decentralized EWM with an SAP S/4HANA system, even if only SAP
ERP is mentioned in the text. In cases where the integration differs between SAP ERP and SAP
S/4HANA, the differences are mentioned explicitly in the text.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Business Scenario © 2019 SAP AG or an SAP affiliate company. All rights reserved. 5
3 Prerequisites
You have installed and correctly configured the following applications:
· You have a running SAP ERP system with active MM-IM (Inventory Management) and LE-SHP (Logistics
Execution – Shipping).
Minimal release/patch level: EhP 5 for SAP ERP 6.0
As an alternative, you have a running SAP S/4HANA system with active MM-IM and LE-SHP
Minimal release/patch level: SAP S/4HANA 1610
· You have installed an SAP S/4HANA system to run as decentralized EWM.
Minimal release/patch level: SAP S/4HANA OP 1809 FPS 2
· You have set up the decentralized EWM client with configuration content from client 000 (including all
tables of delivery class C and G). The configuration is needed for warehouse-independent master data such
as business partners, vendors, customers, and materials.
Tip
In Appendix D, you will find a list of SAP Notes containing information about BC sets in EWM. The
BC sets may help you with your EWM implementation following the basic integration described in
this guide.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Customizing
Entity Setting Level Transport Comments
RFC Destination Cross-Client No Technical setting for RFC and qRFC communication;
Example: Naming convention: <SID>CLNT<CLIENT>;
ERPCLNT001 See chapter Prerequisites for System Connection
EWMCLNT001
Logical System Cross-Client Yes Technical setting for RFC and qRFC communication;
Example: Naming convention: <SID>CLNT<CLIENT>;
ERPCLNT001 Can be created in the System Landscape Directory;
EWMCLNT001
The logical system is assigned to the RFC destination;
Own logical system assigned to client.
See chapter Configuring Logical Systems in SAP ERP
Business System Client No Used in EWM for master data;
Group 1:N relationship to logical system;
Example: See chapter Configuring Business System Groups in EWM
ERP_BG1
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 7
Procedure
...
1. In the decentralized EWM system, create an RFC destination (ABAP Connection) for the ERP client in
Customizing for SAP NetWeaver under Application Server ® IDoc Interface / Application Link Enabling
(ALE) ® Communication ® Create RFC Connections using the naming convention
<SYS>CLNT<CLIENT>, for example ERPCLNT001.
2. In the SAP ERP system, create an RFC destination (ABAP Connection) for the decentralized EWM client in
Customizing for SAP NetWeaver under Application Server ® IDoc Interface / Application Link Enabling
(ALE) ® Communication ® Create RFC Connections using the naming convention
<SYS>CLNT<CLIENT>, for example EWMCLNT001.
Note
This business function is always active in SAP S/4HANA. There is no need to activate it if you
integrate decentralized EWM with SAP S/4HANA instead of SAP ERP.
Other business functions from SAP ERP may be needed for your warehousing processes. Check the
documentation of the following EWM-related business functions in SAP ERP and decide if they are relevant for
your warehousing processes:
Business Function Description
LOG_PP_EWM_MAN EWM Integration into Manufacturing
LOG_PP_EWM_MAN_2 EWM Integration into Manufacturing 2
LOG_SCM_MEAN_INT SCM, CIF Transfer of Additional GTINs (EANs/UPCs)
for Material
OPS_ADVRETURNS_1 Advanced Returns Management
OPS_ADVRETURNS_2 Advanced Returns Management 2
SPE_CI_1 Service Parts Management: Innovations in ERP
LOG_TM_ORD_INT_II ERP-TMS: Order and Invoice Integration
LOG_SCM_EWM_INT EWM Integration
ISR_RET_CD/FT_EWM Retail, Merchandise Distribution-SAP EWM Integration
/CWM/CM_2 CWM, Variable Valuation Unit of Measure (Reversible)
(available only if IS-CWM is installed)
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 8
Note
Most of these business functions are always active in SAP S/4HANA. There is no need to activate
them if you integrate decentralized EWM with SAP S/4HANA instead of SAP ERP. In transaction
SFW5, you will find them under S/4H_ALWAYS_ON_FUNCTIONS .
Procedure
Contact your system administrator to carry out the following steps in an ERP client allowing cross-client settings
and the creation of workbench requests. If necessary, use the workbench request to transport the settings to
other SAP ERP systems.
...
Procedure
Carry out the first step of the procedure in your ERP customizing client allowing cross-client settings and
transport if necessary the settings to other SAP ERP systems (for example, SAP ERP test system, SAP ERP
productive system). Carry out the subsequent step in all SAP ERP systems (in a client allowing cross-client
settings) that you want to connect to decentralized EWM.
1. Define a logical system for your ERP client (for example, ERPCLNT001) and a logical system for your EWM
client (for example, EWMCLNT001) in Customizing for Integration with Other SAP Components under
Extended Warehouse Management ® Basic Settings for Setting Up the System Landscape ® Name
Logical System.
2. Assign the ERP logical system defined in the first step to the ERP client (for example, in system ERP, assign
ERPCLNT001 to client 001) in Customizing for Integration with Other SAP Components under Extended
Warehouse Management ® Basic Settings for Setting Up the System Landscape ® Assign Logical System
to a Client.
Example
In a landscape with an SAP ERP customizing system (for example ERC, client 001), an SAP ERP test
system (for example ERT client 001) and an SAP ERP productive system (for example ERP, client
001), you define multiple logical systems (for example, ERTCLNT001 and ERPCLNT001) in your
SAP ERP customizing system. The same applies to the decentralized EWM systems (for example
EWTCLNT001 and EWPCLNT001)
Procedure
Carry out the first step of the procedure in your EWM customizing client allowing cross-client settings and if
necessary, transport the settings to other EWM systems (for example, EWM test system, EWM productive
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 9
system). Carry out the subsequent step in all EWM systems (in a client allowing cross-client settings) that you
want to connect to SAP ERP.
1. Define a logical system for your EWM client (for example, EWMCLNT001) and a logical system for your ERP
client (for example, ERPCLNT001) in Customizing for Extended Warehouse Management under SCM
Basis ® Integration ® Basic Settings for Setting Up the System Landscape ® Name Logical Systems.
2. Assign the EWM logical system defined in the first step to the EWM client (for example, in system EWM,
assign EWMCLNT001 to client 001) in Customizing for Extended Warehouse Management under SCM
Basis ® Integration ® Basic Settings for Setting Up the System Landscape ® Assign Logical Systems to a
Client.
Example
In a landscape with an EWM customizing system (for example EWC, client 001), an EWM test
system (for example EWT client 001) and an EWM productive system (for example EWP, client
001), you define multiple logical systems (for example, EWTCLNT001 and EWPCLNT001) in your
EWM customizing system. The same applies to the SAP ERP systems (for example ERTCLNT001
and ERPCLNT001).
Note
These settings cannot be transported from your ERP customizing client to other SAP ERP systems
and clients. Therefore, you must repeat the steps in every ERP client connected to decentralized
EWM.
Procedure
Carry out the following steps in each ERP client you want to connect to decentralized EWM:
...
1. In Customizing for SAP NetWeaver , choose Application Server ® IDoc Interface/Application Link Enabling
(ALE) ® Communication ® Determine RFC Destinations for Method Calls.
2. Select the EWM logical system, for example, EWMCLNT001.
3. Choose Standard BAPI destination.
4. Enter the RFC destination created by your system administrator for the corresponding EWM system and
choose Enter.
5. Save your entries.
Note
Skip this chapter if you integrate decentralized EWM with SAP S/4HANA instead of SAP ERP as the
procedure is not required in SAP S/4HANA.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 10
The additional screens allow you to maintain material master data needed in SAP ERP in the warehousing
processes with Extended Warehouse Management (EWM).
Additional material master screens are used in the standard warehouse with preconfigured processes. For
example, you maintain the handling unit (HU) type for packaging materials on the additional screen WM
Packaging. The data is transferred via IDoc to EWM.
Note
For some material master attributes (for example, HU types) it is necessary to maintain the allowed
values in Customizing for Integration with Other SAP Components under Extended Warehouse
Management ® Additional Material Attributes ® Attribute Values for Additional Material Master
Fields. For more information, see the Customizing documentation and chapter Verifying
Synchronization of SAP ERP and EWM Customizing.
Procedure
Carry out the following steps in your ERP customizing client and if necessary, transport the settings to other ERP
clients or systems.
1. Activate the BC Set /SPE/MATERIAL_SCREENS containing additional entries for screen sequence 21 of the
material master maintenance on the SAP Easy Access screen under Tools ® Customizing Business
Configuration Sets ® Activation of BC Sets.
2. Maintain the screen sequence for the additional material master screens.
1. In Customizing for Logistics – General, choose Material Master ® Configuring the Material Master ®
Maintain Order of Main and Additional Screens .
2. Select sequence 21 and display the details by choosing Goto ® Details in the menu. You can ignore the
warning message that the entry belongs to SAP.
3. For screen number 56, enter 300.
4. For screen number 57, enter 310.
5. Save your entries.
Procedure
Carry out the following steps in your EWM customizing client:
1. In Customizing for Extended Warehouse Management, choose Enable Decentralized EWM.
2. Set the indicator to enable decentralized EWM.
3. Save your entry.
Important
If you receive a STOP message that entries exist in /SPE/V_T340, check why they are there. Make
sure you are in the right system and client. If entries are there by accident (for example, due to
client copy), remove them. Never ignore the STOP message.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 11
4.6.2 Assigning ERP Logical Systems to RFC Destinations in
EWM
You use this procedure to assign the ERP logical systems to RFC destinations in decentralized EWM.
Note
These settings cannot be transported from your EWM customizing client to other EWM systems
and clients. Therefore, you must repeat the steps in every EWM client connected to SAP ERP.
...
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. In Customizing for SAP NetWeaver , choose Application Server ® IDoc Interface/Application Link Enabling
(ALE) ® Communication ® Determine RFC Destinations for Method Calls.
2. Select the ERP logical system, for example, ERPCLNT001.
3. Choose Standard BAPI destination.
4. Enter the RFC destination created by your system administrator for the corresponding SAP ERP system
and choose Enter.
5. Save your entries.
Note
These settings cannot be transported from your EWM customizing client to other EWM systems
and clients. Therefore, you must repeat the steps in every EWM client connected to SAP ERP.
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. Define a business system for the ERP client (for example, ERP_001) and a business system for the EWM
client (for example, EWM_001) in Customizing for Extended Warehouse Management under Interfaces ®
ERP Integration ® General Settings ® Define Business Systems. Assign the SAP ERP business system to
the ERP logical system and the EWM business system to the EWM logical system, and set the Manual
Maintenance indicator.
If you use the System Landscape Directory (SLD), entries already exist for the EWM and SAP ERP system.
In this case, no action is required in this step.
2. Enter the EWM business system defined in the first step as own business system (for example, in system
EWM, client 001, enter EWM_001) in Customizing for Extended Warehouse Management under Interfaces
® ERP Integration ® General Settings ® Define Own Business Systems.
Note
These settings cannot be transported from your EWM customizing client to other EWM systems
and clients. Therefore, you must repeat the steps in every EWM client connected to SAP ERP.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 12
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. Define a business system group for the ERP client (for example, ERP_BG1) in Customizing for Extended
Warehouse Management under SCM Basis ® Integration ® Basic Settings for Creating the System
Landscape ® Maintain Business System Group.
2. Assign the logical systems for SAP ERP and EWM and a queue type to the business system group in
Customizing for Extended Warehouse Management under SCM Basis ® Integration Basic Settings for
Creating the System Landscape ® Assign Logical System and Queue Type.
Create and save the following entries, for example, for the following two clients:
BusSystGrp Logical System SAP Ind. Release Queue Type
ERP_BG1 ERPCLNT001 X <highest ERP Release, Inbound
for example 700> Queues
ERP_BG1 EWMCLNT001 <highest EWM Release, Inbound
for example 70> Queues
You can keep the default setting for field Error Handling in Target System .
If applicable, enter a system role for the SAP ERP system. For example, enter system role CW (Catch
Weight Management ERP System) for SAP ERP systems with installed component IS-CWM.
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
In the EWM system, on the SAP Easy Access screen, call transaction /SAPAPO/ACTVERCREATE. The system
informs you whether the planning version and model already exist, or if the system just created them.
CAUTION
Note that transaction /SAPAPO/ACTVERCREATE requires an authorization for objects C_APO_MOD
and C_APO_VERS with activity 01. You can check failed authorization checks after report execution
with transaction SU53.
Note
If you have specified an output format for material numbers in the SAP ERP system, it is
recommended to specify the same output format for product numbers in EWM.
Procedure
Carry out the following steps in the EWM customizing client:
...
1. In Customizing for Logistics - General, choose Material Master ® Basic Settings ® Define Output Format of
Material Numbers.
2. If not existing yet, create an entry to specify the output format for product numbers. Specify at least the
product number length (recommended in decentralized EWM: 40).
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 13
3. Save your entry.
Recommendation
Even if the material number length in SAP ERP is set to 18 characters, it is recommended to set the
product number length in decentralized EWM to 40 characters as this is the standard setting for
EWM in SAP S/4HANA.
Note
If you connect decentralized EWM to an SAP ERP supporting 40 characters, you must also activate
the field length extension for the communication to this system in Customizing for Cross-
Application Components under General Application Functions ® Field Length Extension ® Activate
Extended Fields (transaction FLETS).
Procedure
Carry out the following steps in the EWM customizing client:
...
1. In Customizing for Extended Warehouse Management, choose Interfaces ® ERP Integration ® ERP
Integration for Decentralized EWM ® Set Control Parameters for ERP Version Control.
2. Create an entry for the SAP ERP business system (for example, ERP_001) and the current SAP ERP
release. The system automatically proposes default settings corresponding to the EWM functions
supported with the given SAP ERP release.
Note
If you integrate decentralized EWM with SAP S/4HANA instead of SAP ERP, choose the appropriate
value in field SAP Release, for example S4_OP_100.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of System Connection and Global Settings © 2019 SAP AG or an SAP affiliate company. All rights reserved. 14
5 Configuration of qRFC Communication
You use this process to configure the queued remote function call (qRFC) communication between decentralized
EWM based on SAP S/4HANA and SAP ERP.
Decentralized EWM communicates transaction data like inbound and outbound deliveries with SAP ERP via
queued remote function call (qRFC). Since the communication is bi-directional, you not only configure the sending
of data to both systems but also the reception of data from both systems.
Prerequisites
You have configured the system connection and global settings as described in the previous chapter. RFC
destinations and logical systems exist both in decentralized EWM and in SAP ERP. Business systems exist in
decentralized EWM.
Procedure
Carry out the following steps (except step 5) in each SAP ERP client you want to connect to decentralized EWM.
Step 5 is a customizing activity, which you carry out in the ERP customizing client.
...
1. Register the RFC destination for EWM in the QOUT scheduler in SAP ERP. This setting is relevant for the
qRFC communication from SAP ERP to EWM.
a. In the SAP ERP system, on the SAP Easy Access screen, call transaction SMQS.
b. On the qRFC Monitor (QOUT Scheduler) screen, choose Registration.
c. Enter the data as shown in the following table:
Field Value
Max. Runtime 60
d. Choose Continue.
2. Register the queue names in the QIN scheduler to configure the execution of inbound queues in SAP ERP.
This setting is relevant for the qRFC communication from EWM to SAP ERP.
a. In the SAP ERP system, on the SAP Easy Access screen, call transaction SMQR.
b. On the qRFC Monitor (QIN Scheduler) screen, choose Registration.
c. Enter the data as shown in the following table:
Field Value
Mode D
Max. Runtime 60
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of qRFC Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 15
Attempts 30
Pause 300
d. Choose Continue.
3. Register display programs for the inbound queue in SAP ERP. This function enables you to display the data
of a queue entry by double-clicking the queue name or to display the application log of a queue entry by
double-clicking the status text in the qRFC monitor for inbound queues. This setting is relevant for the
qRFC communication from EWM to SAP ERP.
a. In the SAP ERP system, on the SAP Easy Access screen, call transaction SMQE.
b. Choose Edit ® Register Display Program.
c. Enter the queue and program names as shown in the following table:
DLW* /SPE/QUEUE_DISPLAY_TOOLS
EWM* /SPE/QUEUE_DISPLAY_TOOLS
QI* /SPE/QUEUE_DISPLAY_TOOLS
QM* /SPE/QUEUE_DISPLAY_TOOLS
WM* /SPE/QUEUE_DISPLAY_TOOLS
4. Configure the queue for the communication of transaction data from SAP ERP to EWM.
a. In Customizing for Integration with Other SAP Components , choose Extended Warehouse
Management ® Basic Settings for EWM Linkage ® Define Queue for Transfer to Extended WM.
b. Create an entry for the EWM logical system with the following data:
Field Value
Field Value
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of qRFC Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 16
Message Type E
c. Save your entries.
6. Check that the log for received messages is not disabled in Customizing for Integration with Other SAP
Components under Extended Warehouse Management ® Basic Settings for EWM Linkage ® Log Sent and
Received Messages.
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP.
...
1. Register the RFC destination for SAP ERP in the QOUT scheduler in EWM. This setting is relevant for the
qRFC communication from EWM to SAP ERP.
a. In the EWM system, on the SAP Easy Access screen, call transaction SMQS.
b. On the qRFC Monitor (QOUT Scheduler) screen, choose Registration.
c. Enter the data as shown in the following table:
Field Value
Max. Runtime 60
d. Choose Continue.
2. Register the queue names in the QIN scheduler to configure the execution of inbound queues in EWM. This
setting is relevant for the qRFC communication from SAP ERP to EWM.
a. In the SAP ERP system, on the SAP Easy Access screen, call transaction SMQR.
b. On the qRFC Monitor (QIN Scheduler) screen, choose Registration.
c. Enter the data as shown in the following table:
Field Value
Mode D
Max. Runtime 60
Attempts 30
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of qRFC Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 17
Pause 300
d. Choose Continue.
3. Register display programs for the inbound queue in EWM. This function enables you to display the data of a
queue entry by double-clicking the queue name or to display the application log of a queue entry by double-
clicking the status text in the qRFC monitor for inbound queues.
a. In the EWM system, on the SAP Easy Access screen, call transaction SMQE.
b. Choose Edit ® Register Display Program.
c. Enter the queue and program names as shown in the following table:
DLV* /SCWM/QRFC_APPL_LOG_DISPLAY
PR* /SCWM/QRFC_DISP_QIN_LOG_PROD
QI* QIE_RFC_DISPLAY_QUEUE_LOG
QM* QIE_RFC_DISPLAY_QUEUE_LOG
TU* /SCWM/QRFC_APPL_LOG_DISPLAY
UL* /SCWM/QRFC_APPL_LOG_DISPLAY
WM* /SCWM/QRFC_APPL_LOG_DISPLAY
X* RSXMB_SHOW_ENTRY
4. Configure the queue for the communication of transaction data from SAP ERP to EWM.
a. In Customizing for Extended Warehouse Management, choose Interfaces ® ERP Integration ®
General Settings ® Control for RFC Queue.
b. Create an entry for the SAP ERP business system with the following data:
Field Value
For more information, see the value help of the single fields.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of qRFC Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 18
6 Configuration of IDoc Communication
You use this process to setup the distribution of following master data from SAP ERP to decentralized EWM on
SAP S/4HANA using SAP Standard technology Application Link Enabling (ALE)-IDoc:
· Materials
· Customers
· Vendors and Carriers
· Addresses
· Batches
· Class system: Characteristics master
· Class system: Classes master
· Class system: Classification master
The master data distribution is always from SAP ERP to decentralized EWM. In the IDoc settings, the sender
system is always SAP ERP and the receiver system is always decentralized EWM.
Note
Even if you use the Customer Vendor Integration (CVI) in SAP ERP, the transfer of customer and
vendor data via ALE to decentralized EWM is based on the customer and vendor master data and
not on the business partner master data.
Important
Some settings described in this chapter, such as the creation of reduced message types with
transaction BD53, require a workbench request. You must therefore clarify with your system
administrator which SAP ERP system and client is appropriate to carry out these steps.
Note
This process contains only an example for the ALE IDoc setup. For more information, refer to the
ALE implementation guide.
Prerequisites
You have configured the system connection and global settings as described in the previous chapter. RFC
destinations and logical systems exist both in decentralized EWM and in SAP ERP.
Procedure
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 19
Basic types for master data are supplied in the standard SAP System. If you want to reduce the basic types, you
use transaction BD53 to select the segments and fields that you want to distribute. To do this you activate the
segments and fields that you require and generate a new message type.
Mandatory segments and mandatory fields cannot be deactivated.
Note
If you change a reduced message type after you have set up filters, some entries may be reset. In
this case, you will receive a warning in transaction BD53. You should then test the transfer again.
For example, you must check new entries in transaction BD59 as they may be removed in case of
changes of an existing reduced message type.
Note
The list of segments and fields mentioned below is just a proposal. It shows a minimum set of fields
EWM requires for main processes. Dependent on your requirements you may add/remove
segments or fields. If you add a new field, check whether allowed values for this field are defined in a
customizing table. If yes, entries for the table are also needed in decentralized EWM.
Procedure
...
The following tables contain a proposal for segments and fields to be distributed to decentralized EWM:
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 20
Fields from Segment E1MARAM Description
MSGFN (mandatory) Function
MATNR (mandatory) Material Number
ERSDA Created On
LAEDA Date of Last Change
PSTAT (mandatory) Maintenance status
LVORM (mandatory) Flag Material for Deletion at Client Level
MTART (mandatory) Material Type
MBRSH (mandatory) Industry Sector
MATKL (mandatory) Material Group
MEINS (mandatory) Base Unit of Measure
BSTME Purchase Order Unit of Measure
GROES (mandatory) Size/dimensions
WRKST (mandatory) Basic material (basic constituent of a material) - obsolete
BRGEW Gross Weight
NTGEW Net Weight
GEWEI Weight Unit
VOLUM Volume
VOLEH Volume Unit
BEHVO Container requirements
RAUBE Storage conditions
TEMPB Temperature conditions indicator
TRAGR Transportation Group
STOFF Hazardous material number
SPART (mandatory) Division
ETIAR Label type
ETIFO Label form
EAN11 International Article Number (EAN/UPC)
NUMTP Category of International Article Number (EAN)
LAENG Length
BREIT Width
HOEHE Height
MEABM Unit of Dimension for Length/Width/Height
PRDHA Product Hierarchy
ERGEW Allowed packaging weight
ERGEI Weight Unit
ERVOL Allowed packaging volume
ERVOE Volume Unit
GEWTO Excess Weight Tolerance for Handling unit
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 21
VOLTO Excess Volume Tolerance of the Handling Unit
KZKFG Configurable Material
XCHPF Batch management requirement indicator
VHART Packaging Material Type
FUELG Maximum level (by volume)
STFAK Stacking factor
MAGRV Material Group: Packaging Materials
BEGRU Authorization Group
QMPUR QM in Procurement is Active
MHDRZ Minimum Remaining Shelf Life
MHDHB Total shelf life
MHDLP Storage percentage
VPSTA (mandatory) Maintenance status of complete material
KZUMW Environmentally Relevant
KOSCH Product allocation determination procedure
PROFL Dangerous Goods Indicator Profile
KZGVH Packaging Material is Closed Packaging
COMPL Material completion level
RDMHD Rounding rule for calculation of SLED
IPRKZ Period Indicator for Shelf Life Expiration Date
MTPOS_MARA General item category group
MATFI Material Is Locked
SATNR Cross-Plant Configurable Material
SLED_BBD Expiration Date
MATNR_LONG Material Number (40 Characters, needed f. technical reasons)
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 22
Fields from Segment E1MARA1 Description
HUTYP_DFLT Standard HU Type
PILFERABLE Pilferable
WHSTC Warehouse Storage Condition
WHMATGR Warehouse Material Group
HNDLCODE Handling Indicator
HAZMAT Relevant for Hazardous Substances
HUTYP Handling Unit Type
TARE_VAR Variable Tare Weight
MAXC Maximum Allowed Capacity of Packaging Material
MAXC_TOL Overcapacity Tolerance of the Handling Unit
MAXL Maximum Packing Length of Packaging Material
MAXB Maximum Packing Width of Packaging Material
MAXH Maximum Packing Height of Packaging Material
MAXDIM_UOM Unit of Measure for Maximum Packing Length/Width/Height
HERKL Country of Origin of Material (Non-Preferential Origin)
MFRGR Material freight group
QQTIME Quarantine Period
QQTIMEUOM Time Unit for Quarantine Period
QGRP Quality Inspection Group
SERIAL Serial Number Profile
PS_SMARTFORM Form Name
CWQPROC EWM CW: Catch Weight Profile for Entering CW Quantity
CWQTOLGR EWM-CW: Catch Weight Tolerance Group for EWM
ADPROF Adjustment Profile
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 23
Fields from Segment E1MARCM Description
MSGFN (mandatory) Function
WERKS (mandatory) Plant
PSTAT (mandatory) Maintenance status
LVORM Deletion Indicator
SSQSS QA Control Key
XCHPF Batch management requirement indicator
PRFRQ Character Field With Field Length 7
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 24
6.2.2 Creating a Reduced Message Type for DEBMAS
You use this procedure to create a reduced message type based on the basis message type DEBMAS for the
distribution of customer master data to decentralized EWM.
Note
The list of segments and fields mentioned below is just a proposal. It shows a minimum set of fields
EWM requires for main processes. Dependent on your requirements you may add/remove
segments or fields. If you add a new field, check whether allowed values for this field are defined in a
customizing table. If yes, entries for the table are also needed in decentralized EWM.
Procedure
...
The following tables contain a proposal for segments and fields to be distributed to decentralized EWM:
Fields from Segment E1KNA1M Description
MSGFN (mandatory) Function
KUNNR (mandatory) Customer Number
ANRED (mandatory) Title
KTOKD (mandatory) Customer Account Group
LAND1 (mandatory) Country Key
LIFNR Account Number of Vendor or Creditor
LOEVM (mandatory) Central Deletion Flag for Master Record
NAME1 (mandatory) Name 1
NAME2 (mandatory) Name 2
ORT01 (mandatory) City
ORT02 (mandatory) District
PFACH (mandatory) PO Box
PSTL2 (mandatory) P.O. Box Postal Code
PSTLZ (mandatory) Postal Code
REGIO Region (State, Province, County)
SORTL (mandatory) Sort field
SPRAS (mandatory) Language Key
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 25
STRAS (mandatory) Street and House Number
TELF1 First telephone number
TELFX Fax Number
Note
The list of segments and fields mentioned below is just a proposal. It shows a minimum set of fields
EWM requires for main processes. Dependent on your requirements you may add/remove
segments or fields. If you add a new field, check whether allowed values for this field are defined in a
customizing table. If yes, entries for the table are also needed in decentralized EWM.
Procedure
...
The following tables contain a proposal for segments and fields to be distributed to decentralized EWM:
Fields from Segment E1LFA1M Description
MSGFN (mandatory) Function
LIFNR (mandatory) Account Number of Vendor or Creditor
KTOKK (mandatory) Vendor account group
KUNNR Customer Number
LAND1 (mandatory) Country of Company
LOEVM Central Deletion Flag for Master Record
NAME1 (mandatory) Employee's last name
ORT01 (mandatory) City
PSTL2 (mandatory) Postal Code
PSTLZ (mandatory) Postal Code
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 26
SORTL (mandatory) Character Field Length = 10
SPRAS (mandatory) Language Key
STRAS Street and House Number
SPERQ Function That Will Be Blocked
ADRNR Address
SCACD Standard carrier access code
Note
Skip this chapter if you do not need additional filters for the reduced message types.
Procedure
Carry out the following steps in an SAP ERP client allowing cross-client customizing changes.
...
1. To create a new filter object type for vendor distribution, call transaction BD59 (Allocation object type ->
IDoc type) in SAP ERP.
2. Enter the reduced message type for vendor distribution, for example ZEWMCREMAS and press Continue.
Create a new entry with the data as shown in the following table:
Field Value
3. Enter the reduced message type for customer distribution, for example ZEWMDEBMAS and press Continue.
Create a new entry with the data as shown in the following table:
Field Value
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 27
Segment Type E1KNA1M
Procedure
...
1. In SAP ERP, call transaction BD71 (Define FM for dependent bus. object).
2. Check that the following entry exist:
Field Value
Field Value
Method SAVEREPLICA
Field Value
Method SAVEREPLICA
Procedure
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 28
Enter the data as shown in the following table:
Field Value
Field Value
5. Batches must be distributed using BAPI instead of messages type BATMAT. To add a BAPI for batch
distribution to the model, select the new model on the list and press Add BAPI.
Enter the data as shown in the following table:
Field Value
Method SaveReplica
6. Addresses must be distributed using BAPI instead of messages type ADRMAS. To add a BAPI for address
distribution to the model, select the new model on the list and press Add BAPI.
Enter the data as shown in the following table:
Field Value
Method SaveReplica
7. To create a filter group for the reduced message type for materials, for example ZEWMMATMAS, double-
click No filter set or Data Filter Active under message type ZEWMMATMAS in the tree, then press Create
Filter Group on the dialog box.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 29
You can, for example, filter the materials to be distributed to decentralized EWM by plant. For this purpose,
double-click filter object type Plant and enter the plants that will be linked to a decentralized EWM
warehouse.
You can also filter the materials by material type or material group.
Important
The plant filter defined in this step will only prevent the distribution of plant-specific material master
data (table MARC). If you want to filter the distribution of the complete material master by plant,
you must implement BAdI IDOC_CREATION_CHECK. Refer to the appendix for an example
implementation of this BAdi.
Press Continue.
8. To create a filter group for reduced message type for vendors, for example ZEWMCREMAS, double-click No
filter set or Data Filter Active under message type ZEWMCREMAS in the tree, then press Create Filter
Group on the dialog box.
You can, for example, filter the vendors and carriers to be distributed to decentralized EWM by account
group. For this purpose, double-click filter object type Account group, and enter the account groups you
use for vendors and carriers working with the decentralized warehouse, for example 0005 and LIEF.
Press Continue.
9. To create a filter group for reduced message type for customers, for example ZEWMDEBMAS, double-click
No filter set or Data Filter Active under message type ZEWMDEBMAS in the tree, then press Create Filter
Group on the dialog box.
You can, for example, filter the customers to be distributed to decentralized EWM by account group. For
this purpose, double-click filter object type Account group, and enter the account groups you use for
customers working with the decentralized warehouse, for example KUNA.
Press Continue.
10. To create filter groups for BAPI method AddressOrg.SaveReplica (addresses), double-click Receiver
determination under BAPI AddressOrg.SaveReplica in the tree, then press Create Filter Group on the dialog
box.
In the dialog box, create two filter groups. In the one group, select the message type ZEWMCREMAS. In the
second group, select the message type ZEWMDEBMAS. Two groups are needed to achieve an OR
expression between both message types.
11. To create a filter group for BAPI method Batch.SaveReplica (batches), double-click Receiver determination
under BAPI Batch.SaveReplica in the tree, then press Create Filter Group on the dialog box.
You can re-use the same filter logic defined for message type ZEWMMATMAS for filtering batches via
dependency. For this purpose, select attribute Dependent Distribution for message type ZEWMMATMAS in
the same dialog box.
Press Continue.
12. To create a filter group for message type CLSMAS (classes), double-click No filter set or Data Filter Active
under message type CLSMAS in the tree, then press Create Filter Group on the dialog box.
Double-click filter object type Class Type and enter the class types 022 and 023 for batch classes.
Press Continue.
13. To create a filter group for message type CLFMAS (classifications), double-click No filter set or Data Filter
Active under message type CLFMAS in the tree, then press Create Filter Group on the dialog box.
Double-click filter object type Class Type and enter the class types 022 and 023 for batch classes.
To ensure that only classifications for existing materials are transferred, select attribute Dependent
Distribution for message type ZEWMMATMAS in the same dialog box.
Press Continue.
14. Save the distribution model.
15. Choose Edit ® Model view ® Distribute to transport the distribution model to other systems.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 30
6.4.1 Creating Partner Profile in Sender System Manually
You use this procedure to create a partner profile in the sender system (SAP ERP).
Procedure
...
Field Value
Partner Type LS
Language EN
Field Value
Basic Type Use value help and select the last entry from the list, for example CHRMAS05
Procedure
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 31
Field Value
Partner Type LS
Language EN
Field Value
Trigger Immediately X
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 32
Procedure
Carry out the following steps in SAP ERP:
...
1. Create a conversion rule in Customizing for SAP NetWeaver under Application Server ® IDoc Interface /
Application Link Enabling (ALE) ® Modelling and Implementing Business Processes ® Converting Data
Between Sender and Receiver ® Create Rule.
Enter the data as shown in the following table:
Field Value
Conversion rule Enter a name for conversion rule, for example ZEWM_PSTAT_MARC
Field Value
Ty, (Sender) LS
Sender ERPCLNT001
Ty, (Receiver) LS
Receiver EWMCLNT001
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 33
Tip
As an alternative to the BAdI implementation, you can create a conversion rule for fields PSTAT and
VPSTA of the E1MARAM segment as described in the previous chapter, setting the values for both
fields to the needed material master views, for example KLEVQ (K = Basic data, L = Storage, E =
Purchasing, V = Sales, Q = Quality Management).
Procedure
Activate change pointers at client level in Customizing for SAP NetWeaver under Application Server ® IDoc
Interface / Application Link Enabling (ALE) ® Modelling and Implementing Business Processes ® Master Data
Distribution ® Replication of Modified Data ® Activate Change Pointers - Generally in SAP ERP.
Procedure
Carry the following steps in SAP ERP:
1. Activate change pointers for the following reduced message types:
¡ Reduced message type for vendors, for example ZEWMCREMAS
¡ Reduced message type for customers, for example ZEWMDEBMAS
¡ Reduced message type for materials, for example ZEWMMATMAS
For this purpose, call transaction BD53, enter a reduced message type, and press Activate change
pointers.
2. Activate change pointers for the following message types in Customizing for SAP NetWeaver under
Application Server ® IDoc Interface / Application Link Enabling (ALE) ® Modelling and Implementing
Business Processes ® Master Data Distribution ® Replication of Modified Data ® Activate Change
Pointers for Message Types:
¡ CHRMAS: Class system: Characteristics master
¡ CLSMAS: Class system: Classes master
¡ CLFMAS: Class system: Classification master
¡ BATMAS: Batch
¡ ADRMAS: Address
Important
The activation of change pointers per message type creates entries for the fields of the message
type in another table. For batches (message type BATMAS) it might happen that an entry for the
batch status is missing as this depends on the setup of the system whether batch status
management is activated or not. To verify this, start transaction BD52 for message type BATMAS
and check that an entry exists for object CHARGE, table name MCHA, field name ZUSTD.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Configuration of IDoc Communication © 2019 SAP AG or an SAP affiliate company. All rights reserved. 34
7 Customizing Settings in Decentralized
EWM
7.1 Checking Basic Table Entries in EWM
Basic tables like units of measures, currencies, countries, and languages are used both in SAP ERP and in
decentralized EWM. You use this procedure to check that the entries (especially the ISO codes) needed in the
warehousing processes are identical in all systems that are part of your system landscape.
Procedure
Carry out the following steps in your EWM customizing client.
1. On the SAP Easy Access screen, choose Tools ® Administration ® Administration ® Client Administration
® Customizing Objects ® Object Comparison.
2. Compare the information in the following tables between the EWM client and the ERP customizing client.
Compare the entries you plan to use in your warehousing processes. Adjust the tables in SAP ERP or EWM
Customizing, if necessary.
Note
You can find the settings related to Customer/Vendor Integration in Customizing for Cross-
Application Components under Master Data Synchronization ® Customer/Vendor Integration.
Procedure
Carry out the following steps in your EWM customizing client.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 35
FLCU00 Business Partner FI Customer (FS: BP) X
Group BP Role
DEBI FLCU00
DEBI FLCU01
KUNA FLCU00
KUNA FLCU01
Save your entries.
0001 DEBI X
0002 KUNA X
GPEX DEBI X
GPIN DEBI X
DEBI 0001
KUNA 0002 X
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 36
BP Role Category Description Vendor-Based
BBP000 Vendor X
CRM010 Carrier X
Group BP Role
0005 CRM010
KRED BBP000
KRED FLVN01
LIEF BBP000
KRED FLVN01
Save your entries.
0001 KRED
0002 LIEF X
GPEX LIEF
GPIN KRED
ZCRR 0005 X
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 37
0005 ZCRR X
KRED 0001
LIEF 0002 X
CAUTION
Use this procedure only if you have not created any of those objects in the EWM client yet, as it
invalidates the previous number range status.
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. In the EWM system, on the SAP Easy Access screen, choose Tools ® Customizing ® Business
Configuration Sets ® Activation of BC Sets. Alternatively, call transaction SCPR20.
2. Enter the following BC set and choose Activate BC Set:
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. In the EWM system, on the SAP Easy Access screen, choose Tools ® Customizing ® Business
Configuration Sets ® Activation of BC Sets. Alternatively, call transaction SCPR20.
2. Activate the following BC sets:
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 38
/SCWM/PRC_10_30 Basic Settings (Client) – 30
/SCWM/BASIC_LIME LIME Basic Settings for EWM
3. If you have created number ranges in chapter Activating BC Sets for Client-Dependent Number Ranges,
activate additionally the following BC set in each EWM client you want to connect to SAP ERP:
Note
If the activation of a BC set fails due to missing entries in dependent tables, repeat the activation.
Note
Some customizing tables (for example, table T137 below) are not used in any warehouse processes
but they may be used as check table for mandatory IDoc fields. Therefore, you must also
synchronize them to avoid IDoc errors.
Procedure
Check if you use some of the settings listed in the following table in your warehousing processes. Compare the
entries between your EWM and your ERP customizing client and adapt if needed the entries in the EWM or in the
ERP client. Depending on your settings and processes, you may need to synchronize additional tables.
1. On the SAP Easy Access screen, choose Tools ® Administration ® Administration ® Client Administration
® Customizing Objects ® Object Comparison (or call transation SCMP).
2. Compare the information in the following table between the EWM client and the ERP customizing client.
Compare the entries you plan to use in your warehousing processes. Adjust the tables in SAP ERP or EWM
Customizing, if necessary.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 39
TSPA (V_TSPA) Organizational Unit: Sales Divisions Material master
V_T077K Vendor account group Vendor master
V_T077D Customer Account Group Customer master
T134 Material Types Material master
T137 (V137) Industries for materials Material master
T142 (V_142) Storage Conditions for Materials Material master
T143 (V_143) Temperature Conditions for Material master
Storing Materials
T144 (V_144) Container Requirements for Material master
Storing Materials
T023 (V023) Material groups Material master
TCSCP_COMP_LVL Material completion levels Material master
(V_TCSCP_COMP_LVL)
TTGR (V_TTGR) Material transportation groups Material master
T179 Materials: Product Hierarchies Material master
T190S (V_T190S) Product Allocation: Definition Material master
Procedure
TVEGR Material Group: Packaging Material master
Materials
THUTYP Handling Unit Types Material master
TWHMATGR Warehouse Material Group Material master
TWHSTC Warehouse Storage Condition Material master
THNDLCD Handling Indicator Material master
TPTM Materials: Item Category Groups in Material master
Material Master
TMFG Material freight groups Material master
TQGRP Quality Inspection Group Material master
TCWQTOLGR EWM-CW: Tolerance Groups Material master
TCWQPROC EWM-CW: EWM-CW: Catch Weight Material master
Quantity Input Control
V_TAPROF Merchandise Distribution - Material master
Adjustment Profile
TNTP International Article Number (EAN) Material master
Categories
TDG41 (DGV_TDG41) DG Indicator Profiles for Material Material master
Master
T6WP3 (V_6WP3) Labelling Type Material master
T6WP4 (V_6WP4) Label Shape Material master
TQ08 (V_TQ08) Control of QM in procurement - Material master
Control Key
TQ04A (V_TQ04A) Control of QM in procurement - Vendor master
Delivery Block
V_TPRIO Delivery Priority Delivery
V_TINC Incoterms Delivery
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 40
V_TVSB Shipping Conditions Delivery
TSERIAL Serial Number Profile Material master
TCUCH Batch Level and Batch Status Batch master
Management
V_CMG Characteristics Groups Classification
V_CMS Characteristic Status Classification
V_CPS Define Characters in Templates Classification
V_CPA Templates Classification
V_CLO Key Fields of Objects Classification
V_CLT Object Table Classification
V_CLA Class Types Classification
V_CLAO Objects Classification
V_CLU Class Status Classification
V_CLS Organizational Areas Classification
V_CLX Text Types Classification
V_CLC Classification Status Classification
V_CLR Functions/Filters for Finding Classification
Objects
V_CLG Class Groups Classification
3. In Customizing for SAP ERP and in Customizing for decentralized EWM, compare the information in the
following table between the EWM client and the ERP customizing client. Compare the entries you plan to use
in your warehousing processes. Adjust the entries in SAP ERP or EWM Customizing, if necessary.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Customizing Settings in Decentralized EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 41
8 Master Data Distribution via ALE/IDoc
You use this process to start the distribution of master data via ALE/IDoc from SAP ERP as sender system to
decentralized EWM as receiver system.
Note
Refer to appendix B of this document for a list of transactions you can use to monitor and process
IDocs. For example, you use transaction BD87 in SAP ERP and in decentralized to check the IDoc
status after transfer.
Procedure
Carry the following steps in SAP ERP:
1. Call transaction BD91 (Distribute All Characteristics Using ALE ).
2. Enter the data as shown in the following table:
Field Value
3. Press Execute
Procedure
Carry the following steps in SAP ERP:
...
Field Value
3. Press Execute
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Master Data Distribution via ALE/IDoc © 2019 SAP AG or an SAP affiliate company. All rights reserved. 42
Procedure
Carry the following steps in SAP ERP:
...
Field Value
Class Leave empty. Enter an interval only if you use material classification
Message Type (Standard) Reduced message type for materials, for example ZEWMMATMAS
3. Press Execute or, if you expect a big amount of data to be transferred, choose Program ® Execute in
Background.
Tip
If a material master field is set as mandatory field in decentralized EWM but is not sent via IDoc, the
IDoc is erroneous in EWM. In this case, you must either transfer the field by changing the reduced
message type, or you must set the field as optional in decentralized EWM. For this purpose, check
the selection group of the field in Customizing for Logistics – General under Material Master ® Field
Selection ® Assign Fields to Field Selection Group and change the field to optional under Material
Master ® Field Selection ® Maintain Field Selection for Data Screens.
Prerequisites
SAP note 2745236 is implemented in your SAP ERP system.
Procedure
Carry the following steps in SAP ERP:
...
Field Value
3. Press Execute or, if you expect a big amount of data to be transferred, choose Program ® Execute in
Background.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Master Data Distribution via ALE/IDoc © 2019 SAP AG or an SAP affiliate company. All rights reserved. 43
8.1.5 Executing Initial Transfer of Customers
You use this procedure to transfer customer master data.
Procedure
Carry the following steps in SAP ERP:
...
Field Value
Output Type Reduced message type for customers, for example ZEWMDEBMAS
3. Press Execute or, if you expect a big amount of data to be transferred, choose Program ® Execute in
Background.
Procedure
Carry the following steps in SAP ERP:
...
Field Value
Message Type Reduced message type for vendors, for example ZEWMCREMAS
3. Press Execute or, if you expect a big amount of data to be transferred, choose Program ® Execute in
Background.
Procedure
Carry the following steps in SAP ERP:
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Master Data Distribution via ALE/IDoc © 2019 SAP AG or an SAP affiliate company. All rights reserved. 44
1. Call transaction BD21 (Creating IDoc Type from Change Pointers)
2. Enter one of the following message types:
o CHRMAS: Class system: Characteristics master
o CLSMAS: Class system: Classes master
o CLFMAS: Class system: Classification master
o Reduced message type for vendors, for example ZEWMCREMAS
o Reduced message type for customers, for example ZEWMDEBMAS
o Reduced message type for materials, for example ZEWMMATMAS
o BATMAS: Batch
3. Press Execute
Procedure
Carry the following steps in SAP ERP:
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Master Data Distribution via ALE/IDoc © 2019 SAP AG or an SAP affiliate company. All rights reserved. 45
Enhancement VSV00002 Used to transfer only addresses linked to vendor or
(customer exit EXIT_SAPLKD03_001) and customer master data
enhancement VSV00003
(customer exit EXIT_SAPLVV01_002)
You will find example implementations in Appendix A - Example BADI Implementations for IDoc/ALE.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Master Data Distribution via ALE/IDoc © 2019 SAP AG or an SAP affiliate company. All rights reserved. 46
9 Warehouse Integration into the SAP ERP
Enterprise Structure
You use this process to integrate a warehouse into the enterprise structure in SAP ERP or SAP S/4HANA
Important
As the procedure for integrating decentralized EWM with SAP ERP differs from the procedure for
integrating decentralized EWM with SAP S/4HANA, they are described in different chapters.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Warehouse Integration into the SAP ERP Enterprise Structure © 2019 SAP AG or an SAP affiliate company. All rights reserved. 47
Periods ® Posting Periods ® Open and Close Posting Periods. Check that the last posting period allowed is
in the future.
· The current fiscal year is defined in the plan version assigned to the controlling area. This setting is only
necessary if the Profit Center Accounting is active in the controlling area assigned to the company code.
You can check this setting as follows:
¡ In Customizing for Controlling under Cost Center Accounting ® Activate Cost Center Accounting in
Controlling Area, you can check whether the Profit Center Accounting is active in the controlling
area.
¡ In Customizing for Controlling under Profit Center Accounting ® Basic Settings ® Controlling Area
Settings ® Activate Direct Postings ® Plan Versions ® Maintain Plan Versions, you can check the
settings for each fiscal year.
· A cost center is assigned to the cost elements used for scrapping. You can check this setting in
Customizing for Controlling under Cost Center Accounting ® Actual Postings ® Manual Actual Postings ®
Edit Automatic Account Assignment. If you use the standard chart of account INT in the company code,
check that a cost center is assigned to the cost elements used for scrapping, for example cost elements
400001 and 890001 for the scrapping of trading goods.
Note
You can use the Customer Vendor Integration (CVI) in SAP ERP but it is not a prerequisite for the
integration with decentralized EWM as the data transfer via ALE is based on customer and vendor
master data and not on the business partner master data. In decentralized EWM, CVI is always
active, meaning that the business partners are created automatically in EWM with the transfer of
customer or vendor master data from SAP ERP.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Warehouse Integration into the SAP ERP Enterprise Structure © 2019 SAP AG or an SAP affiliate company. All rights reserved. 48
g. Choose Goto ® General Data
h. Check the assigned plant in the Vendor: General Data tab page
· A shipping point and a goods receiving point assigned to the plant, for example shipping point 0001 also
used as receiving point and assigned to plant PL01. The shipping point should be allocated to the desired
combinations of shipping condition and loading group for each plant.
You can check this setting as follows:
¡ In Customizing for Enterprise Structure under Definition ® Logistics Execution ® Define, copy,
delete, check shipping point
¡ In Customizing for Enterprise Structure under Assignment ® Logistics Execution ® Assign
shipping point to plant
¡ In Customizing for Logistic Execution under Shipping ® Basic Shipping Functions ® Shipping Point
and Goods Receiving Point Determination ® Assign Shipping Points
¡ In Customizing for Logistic Execution under Shipping ® Basic Shipping Functions ® Shipping Point
and Goods Receiving Point Determination ® Assign Goods Receiving Points for Inbound Deliveries
· The current posting period for materials management is set for the company code. You can check this
setting in Customizing for Logistics – General under Material Master ® Basic Settings ® Maintain
Company Codes for Materials Management.
· The current posting period for materials management is included in the interval defined for the posting
period variant assigned to the company code. You can check this setting in Customizing for Financial
Accounting (New) under Financial Accounting Global Settings (New) ® Ledgers ® Fiscal Year and Posting
Periods ® Posting Periods ® Open and Close Posting Periods. Check that the last posting period allowed is
in the future.
· The current fiscal year is defined in the plan version assigned to the controlling area. This setting is only
necessary if the Profit Center Accounting is active in the controlling area assigned to the company code.
You can check this setting as follows:
¡ In Customizing for Controlling under Cost Center Accounting ® Activate Cost Center Accounting in
Controlling Area, you can check whether the Profit Center Accounting is active in the controlling
area.
¡ In Customizing for Controlling under Profit Center Accounting ® Basic Settings ® Controlling Area
Settings ® Activate Direct Postings ® Plan Versions ® Maintain Plan Versions, you can check the
settings for each fiscal year.
· A cost center is assigned to the cost elements used for scrapping. You can check this setting in
Customizing for Controlling under Cost Center Accounting ® Actual Postings ® Manual Actual Postings ®
Edit Automatic Account Assignment. If you use the standard chart of account INT in the company code,
check that a cost center is assigned to the cost elements used for scrapping, for example cost elements
400001 and 890001 for the scrapping of trading goods.
Procedure
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Warehouse Integration into the SAP ERP Enterprise Structure © 2019 SAP AG or an SAP affiliate company. All rights reserved. 49
Example:
Field Value
4. Assign the 3-digit warehouse number to the 4-digit EWM warehouse number in Customizing for Integration
with other SAP Components under Extended Warehouse Management ® Assign Warehouse Number to
Warehouse Number of Decentralized SCM System.
Example:
W01 W001
Note
This setting is optional but recommended. It is currently not used in the ERP-EWM integration, but
it has the advantage of a higher data transparency in SAP ERP and may be needed for future
processes.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Warehouse Integration into the SAP ERP Enterprise Structure © 2019 SAP AG or an SAP affiliate company. All rights reserved. 50
10 Warehouse Creation and Integration in
EWM
You use this process to create a warehouse in decentralized EWM and assign it to the organizational units from
SAP ERP. This includes:
· Warehouse definition and assignment to the 3-digit warehouse number
· Assignment of following organizational units to the EWM warehouse:
¡ Supply chain unit (SCU) of the warehouse
¡ Custodian
¡ Parties entitled to dispose (plants) linked to the warehouse
¡ Default party entitled to dispose (optional)
· Activation of BC sets for warehouse-dependent basic settings and warehouse-dependent number ranges
· Assignment of EWM stock types to the corresponding plants and storage locations by means of availability
groups
· Alignment of handling unit numbering
Procedure
Carry out the first step of the following procedure in your EWM customizing client and transport, if necessary, the
settings to other EWM clients or EWM systems. Carry out the subsequent steps in each EWM client you want to
connect to SAP ERP.
...
W01 W001
3. Create a supply chain unit for the warehouse as follows:
a. In the EWM system, on the SAP Easy Access screen, choose Master Data ® Maintain Supply Chain
Unit. Alternatively, call transaction /SCMB/SCUMAIN.
b. Enter a supply chain unit, for example SCU_W001 and a supply chain unit type, for example 1008
(Warehouse), and press Create.
c. Enter a description for the supply chain unit
d. Enter an address for the warehouse on the Address tab page
e. Create the following business attributes on the Alternative tab page:
Business Attribute Description
PLOC Planning Location
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Warehouse Creation and Integration in EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 51
INV Warehouse
SO Shipping Office
RO Goods Receipt Office
f. Save your entries
4. Assign a party entitled to dispose to each plant you want to link to an EWM warehouse. The party entitled to
dispose is a business partner. It is used in EWM as an attribute of each stock you manage in the warehouse.
a. In Customizing for Extended Warehouse Management, choose Interfaces ® ERP Integration ®
General Settings ® Assign Party Entitled to Dispose to Plant
b. Create and save for example the following entry:
Note
In this example, the party entitled to dispose is the business partner linked to the vendor assigned
to the plant. The business partner was created automatically in EWM with the initial transfer of
vendors from SAP ERP. As an alternative, you can create a business partner manually in EWM only
and assign it to the plant in this step.
5. Assign the organizational entities to the warehouse in Customizing for Extended Warehouse Management
under Master Data ® Assign Warehouse Numbers, for example:
Field Value
Supply Chain Unit <SCU of the warehouse>, for example SCU_W001
Custodian <Business partner of the plant>, for example, BPPL01V or
BPPL01, or a business partner you created manually for the warehouse in
EWM
Default Party Entitled <Business partner of the plant>, for example, BPPL01V or
BPPL01, if the warehouse is only linked to one plant
CAUTION
Use this procedure only for a newly created warehouse, as it invalidates the previous number range
status.
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. In the EWM system, on the SAP Easy Access screen, choose Tools ® Customizing ® Business
Configuration Sets ® Activation of BC Sets. Alternatively, call transaction SCPR20.
2. Enter the following BC set and choose Activate BC Set:
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Warehouse Creation and Integration in EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 52
The Activation Options screen appears.
4. On the Activation Options screen, press Enter to continue the activation.
Procedure
Carry out the following steps in each EWM client you want to connect to SAP ERP:
...
1. In the EWM customizing system, on the SAP Easy Access screen, choose Tools ® Customizing ®
Business Configuration Sets ® Activation of BC Sets. Alternatively, call transaction SCPR20.
2. Activate the following BC sets in your warehouse:
Note
If the activation of a BC set fails due to missing entries in dependent tables, repeat the activation.
Recommendation
For a better visibility of the plants and storage locations in the warehouse, use the alternative
procedure described in the next chapter.
Procedure
Carry out the following steps in the EWM customizing system:
...
1. On the SAP Easy Access screen, choose Tools ® Customizing ® Business Configuration Sets ® Activation
of BC Sets. Alternatively, call transaction SCPR20.
2. Activate the following BC set in your warehouse:
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Warehouse Creation and Integration in EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 53
Field First Entry Second Entry
Plnt PL01 PL01
SLoc ROD AFS
Logical System ERPCLNT001 ERPCLNT001
Warehouse Number W001 W001
Avail.Grp 001 002
Procedure
Carry out the following steps in the EWM customizing system:
...
1. In Customizing for Extended Warehouse Management, choose Goods Receipt Process ® Configure
Availability Group for Putaway ® Define Availability Group.
2. Create an entry for each storage location linked to the warehouse. For example, create and save the
following entries in your warehouse:
Avail.Grp Description
<plant/storage location>, Stock in <plant / storage location>, for example
for example PL01/ROD Stock in PL01 / ROD
<plant/storage location>, Stock in <plant / storage location>, for example
for example PL01/AFS Stock in PL01 / AFS
3. In Customizing for Extended Warehouse Management, choose Interfaces ® ERP Integration ® Goods
Movements ® Map Storage Locations from ERP System to EWM.
4. Create an entry for each storage location linked to the warehouse. For example, create and save the
following entries:
Field First Entry Second Entry
Plnt PL01 PL01
SLoc ROD AFS
Logical System ERPCLNT001 ERPCLNT001
Warehouse Number W001 W001
Avail.Grp PL01/ROD PL01/AFS
5. In Customizing for Extended Warehouse Management, choose Goods Receipt Process ® Configure
Availability Group for Putaway ® Configure Stock Type
6. Create EWM stock types for each storage location linked to the warehouse. For example, create and save
the following entries in your warehouse:
Stock Non-Dep. Stock
Type Description Avail.Grp Type Rl
F1 Unrestricted in PL01/ROD PL01/ROD FF Normal Stock
F2 Unrestricted in PL01/AFS PL01/AFS FF Normal Stock
Q3 Quality Insp. in PL01/ROD PL01/ROD QQ Normal Stock
Q4 Quality Insp. in PL01/AFS PL01/AFS QQ Normal Stock
B5 Blocked in PL01/ROD PL01/ROD BB Normal Stock
B6 Blocked in PL01/AFS PL01/AFS BB Normal Stock
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Warehouse Creation and Integration in EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 54
S5 Scrapping in PL01/ROD PL01/ROD BB Scrapping Stock
S6 Scrapping in PL01/AFS PL01/AFS BB Scrapping Stock
R7 Returns in PL01/ROD PL01/ROD RR Normal Stock
R8 Returns in PL01/AFS PL01/AFS RR Normal Stock
Tip
For more information, see IMG activity documentation in Customizing for Extended Warehouse
Management under Goods Receipt Process ® Configure Availability Group for Putaway, and field
help of availability group.
Important
If you create a second warehouse and link it to other plants or storage locations, for example W002
linked to plant PL02 and storage locations ROD and AFS, you can reuse the same stock types but
enter a different stock type description in each warehouse, for example F1 with description
‘Unrestricted in PL02/ROD’ in warehouse W002.
Decentralized EWM (warehouse- 800000000 - 899999999 (9 None (all numbers outside the
specific) digits) internal number ranges allowed)
1000000 - 1999999 (7 digits)
If you use several warehouses to the same SAP S/4HANA system, you must check manually that the warehouse-
specific number ranges do not overlap, especially if you use stock transport orders for the transfer of goods
between warehouses.
For this purpose, we review the basic rules for HU numbering and give an overview of the applications (Logistics
Execution or EWM) in which HUs are created and of the ways the HUs are created (using internal or external
numbers).
Basic Rules for HU Numbering in EWM in SAP S/4HANA
· Logistics Execution (LE) accepts all HU numbers from EWM except if they are within the free internal LE
number range. For example, in case of an internal LE number range from 1000 to 7999 with a current
number range status 1555, LE accepts all numbers from EWM except in the interval of free numbers 1556-
7999.
· EWM accepts HU numbers from LE if they are within the external EWM number range or within the
assigned internal EWM number range (reusing existing HUs).
· If no external number range is defined explicitly in EWM, all numbers outside the free internal number
range belong to the external number range. This is an implicit external number range.
Recommendation
It is technically not necessary to define an external number range in Logistics Execution for HU
numbers communicated by EWM. When working with multiple warehouses, however, we
recommend defining external number ranges in Logistics Execution for documentation purposes.
The following table lists the number range definitions based on where and how you create HUs:
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Warehouse Creation and Integration in EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 55
New HU Created In Number Range Definition
EWM (internal) EWM: internal number range necessary
LE: external number range not necessary. EWM
number must be outside the free internal LE number
range
Recommendation
If you receive advanced shipping notifications (ASNs) from vendors and want to reuse the HU
number from the vendors in the warehouse, we recommend using Serial Shipping Container Code
(SSCC) instead of HU numbers from HU number ranges. The SSCC number ranges should not
overlap with the HU number ranges.
In addition to the definition of the HU number ranges, you can use this procedure to activate the lean HU status
update and the non-unique HU numbering in Logistics Execution. This setting is necessary for stock transport
order (STO) processes involving cross-delivery HUs.
Procedure
If you implement your own warehouse or if you implement the standard warehouse in a more complex system
landscape, carry out the following steps:
...
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Warehouse Creation and Integration in EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 56
11 Additional Data Transfer and Settings in
SAP ERP and EWM
You use this process to activate the data transfer from SAP ERP to decentralized EWM.
You activate the following types of data transfer:
· Transaction data transfer from SAP ERP using queued remote function call (qRFC)
This data transfer is triggered in SAP ERP.
· Transfer of additional data (material valuation data) from SAP ERP to EWM
This data transfer is triggered in EWM (according to a “pull” principle).
· If you use batch-managed products in EWM, you also use this process to configure additional settings
related to batch-specific data.
Procedure
...
1. Define delivery split by warehouse in SAP ERP in Customizing for Logistics Execution under Shipping ®
Deliveries ® Define Split Criteria for Deliveries ® Delivery Split by Warehouse Number:
a. In Delivery Split by Warehouse Number , choose the activity Define delivery split per delivery type.
b. Select the Delivery Split checkbox for all delivery types you use in your warehouse.
In the standard warehouse with preconfigured processes, select the checkboxes for the following
delivery types:
§ EL (Inbound Delivery)
§ LF (Outbound Delivery)
§ LO (Delivery w/o Ref )
§ LR (Returns Delivery)
c. In Delivery Split by Warehouse Number , choose the activity Determine delivery split per warehouse
number.
d. Select the Delivery Split checkbox for your warehouse.
2. Generate the distribution model for the 3-digit warehouse:
a. In Customizing for Logistics Execution, under SAP EWM Integration ® Basic Setup of Connectivity
® Generate Distribution Model from SAP ERP to SAP EWM.
Note
In SAP S/4HANA, choose the following Customizing path instead: Logistics Execution ® Extended
Warehouse Management Integration ® Basic Setup of Connectivity ® Generate Distribution Model
from SAP S/4HANA to SAP EWM
b. Enter data in the following fields:
§ Warehouse Number, for example, W01
§ Logical System of SAP EWM, for example, EWMCLNT001
§ Distribution Model View, for example, EWM
c. In the Objects screen area, select All to create entries for inbound deliveries, outbound deliveries
and production material requests.
d. In the Action screen area, select Create Entries.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Additional Data Transfer and Settings in SAP ERP and EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 57
e. Choose Execute.
A protocol for all selected warehouses is created.
Result
You have activated the data transfer to EWM. If you create an inbound delivery or an outbound delivery in a plant
and storage location linked to the EWM warehouse, the system transfers the delivery data to EWM.
Note
If you have not yet completed the configuration of the warehouse requests used for deliveries on
the EWM side, the automatic distribution might lead to queue errors. You can prevent this by
stopping temporarily the distribution of deliveries for the warehouse in Customizing for Logistics
Execution under SAP EWM Integration (or Extended Warehouse Management Integration) ® Basic
Setup of Connectivity ® Configure SAP EWM-Specific Parameters.
Procedure
...
1. On the SAP Easy Access screen, choose Extended Warehouse Management ® Interfaces ® ERP
Integration ® Determine and Set Prices from ERP.
2. Enter the EWM warehouse number, for example, W001.
3. Save as a variant, for example, VW001.
4. Define a background job for program /SCWM/R_VALUATION_SET. In this example, the job runs daily:
a. On the SAP Easy Access screen, choose System ® Services ® Jobs ® Define Job.
b. Enter the name of the job, for example, EWMVAL_W001 (naming convention:
EWMVAL_<warehouse>).
c. Create step number 1 by choosing Step.
d. In the ABAP program screen area, enter program /SCWM/R_VALUATION_SET and variant
VW001.
e. Save your entries.
The Step List Overview screen appears.
5. Go back.
6. Choose Start Condition.
The Start Time screen appears.
7. Choose Date/Time.
8. Enter the scheduled start date and time.
9. Select the Periodic job checkbox.
10. Choose Period values.
The Period Values screen appears.
11. Select for example Daily and save your entries.
12. On the Start Time screen, save your entries.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Additional Data Transfer and Settings in SAP ERP and EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 58
13. On the Define Background Job screen, save your entries.
Procedure
Carry out the following steps:
1) Check batch level in SAP ERP and EWM as follows:
a) In Customizing for Logistics – General, choose Batch Management Specify Batch Level and Activate
Status Management .
b) Choose Batch Level and check that batch numbers are unique on material level or client level for a
material.
c) If you change the batch level, a conversion is always necessary, even if you have not created a batch in
your system yet.
2) Check internal number ranges for batches in SAP ERP and EWM.
a) In Customizing for Logistics – General under Batch Management Batch Number Assignment , check
if you use internal batch number assignment and how the internal number range is defined.
b) In Customizing for Extended Warehouse Management under Cross-Process Settings Batch
Management Batch Management for Decentralized EWM -> Define Number Range for Batch , check
that the internal number range for batches (if existing) does not overlap with the internal number range in
SAP ERP. Change if necessary the internal number range in EWM.
3) Copy standard characteristics LOBM_* from client 000 to the SAP ERP and EWM client. Carry out this step in
all ERP clients linked to EWM and the decentralized EWM client as well.
a) Customizing for Logistics – General under Batch Management Batch Valuation Update Standard
Characteristics , execute the update.
b) On the SAP Easy Access screen under Cross-Application Componentsà Classification
SystemàMaster Data, use the value help of field Characteristic to check that characteristics beginning
with LOBM_* now exist in the ERP client.
More Information
Check also the application help http://help.sap.com/S4HANA: select in section Product Assistance English
Navigate to Enterprise Business ApplicationsàSupply ChainàExtended Warehouse Management (EWM)àBatch
Management.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLI C
Additional Data Transfer and Settings in SAP ERP and EWM © 2019 SAP AG or an SAP affiliate company. All rights reserved. 59
Appendix
In this section, you will find additional information for the integration of decentralized EWM with SAP ERP:
· Appendix A - Example BAdI Implementations
· Appendix B - Additional Information about IDoc/ALE
· Appendix C - List of EWM-Related BC Sets in SAP ERP
· Appendix D - Additional Information about BC Sets in EWM
Sample code:
METHOD if_ex_idoc_creation_check~idoc_data_check.
* type definition for EWM
TYPES: BEGIN OF lty_ewm_receiver,
rcvpor TYPE edi_rcvpor,
mestyp_matmas TYPE edi_mestyp,
mestyp_batmas TYPE edi_mestyp,
mestyp_clfmas TYPE edi_mestyp,
fobjtype_plant TYPE fobjtype,
END OF lty_ewm_receiver.
************************************************************************************
*
* Example coding for enhanced selection based on plants to decentralized EWM
* This coding is only an example. You may need to adjust it to your own needs.
*
* The coding enables that ALE filtering by plant for material and/or batch as well as
* classification transfer is enhanced
* Usually a ALE filtering by plant will only cause that E1MARCM segments will be filtered out
* from the data transfer
* But as default the material header (E1MARAM) will not be affected by the plant filter
* If the requirement is that material headers are only sent if the material is at least defined
* for one plant contained in the plant filters, this can be done by the following coding
* If a plant filter is used for the material the coding in the BAdI will cause the following
* - materials for the below defined systems and message types are only sent if the material is
* defined for at least one plant in the plant filter (additional ALE filters like material
* group,... are of course also used upfront by ALE )
* - for batches (BATMAS) if an ALE filter is defined with reference to the material ALE filter
* (and there a plant filter is used),
* then also only batches are sent for materials that are defined for at least one plant
* contained in the filter
* - The same/similar logic as for batches applies for sending of classifications (CLFMAS).
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
* define which systems are a decentral EWM in S/4 and which message types are used for transfer
* TODO by consultant/who sets this up.
* You must adjust this to your systems and message types or alternative logic to define which
* systems/message types are relevant
CLEAR ls_ewm_receiver.
ls_ewm_receiver-rcvpor = 'EWMLNT001'.
ls_ewm_receiver-mestyp_matmas = 'ZEWMMATMAS'.
ls_ewm_receiver-mestyp_batmas = 'BATMAS'.
ls_ewm_receiver-mestyp_clfmas = 'CLFMAS'.
ls_ewm_receiver-fobjtype_plant = 'WERKS'.
APPEND ls_ewm_receiver TO lt_ewm_receiver.
CLEAR ls_ewm_receiver.
ls_ewm_receiver-rcvpor = 'EWMCLNT002'.
ls_ewm_receiver-mestyp_matmas = 'ZEWMMATMAS'.
ls_ewm_receiver-mestyp_batmas = 'BATMAS'.
ls_ewm_receiver-mestyp_clfmas = 'CLFMAS'.
ls_ewm_receiver-fobjtype_plant = 'WERKS'.
APPEND ls_ewm_receiver TO lt_ewm_receiver.
********************************************************************
* handling for material.
* avoid that a material header segment is sent and no MARC (plant) segment is contained.
* The plant filter is defined for MARC segment. Without this coding MARC segments would be
* filtered out, but MARA segment would still be sent. This coding avoids that a MARA is sent
* without that a relevant MARC exists
IF idoc_control-mestyp = ls_ewm_receiver-mestyp_matmas.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
* check if any MARC segement exists for the product that is forseen to be transferred
* if yes, this means that also the batches for it can be sent
SELECT matnr FROM marc INTO TABLE lt_matnr FOR ALL ENTRIES IN lt_plants
WHERE matnr = lv_matnr AND
werks = lt_plants-werks.
IF sy-subrc <> 0 OR lt_matnr IS INITIAL.
create_idoc = abap_false.
RETURN.
ENDIF.
ENDIF.
ENDIF.
********************************************************************
********************************************************************
* handling for batch.
* check if batch shall be transferred based as reference to material.
* The plant filter is defined for MARC segment. Without this coding MARC segments would be
* filtered out, but MARA segment would still be sent. This coding avoids that a MARA is sent
* without that a relevant MARC exists
IF idoc_control-mestyp = ls_ewm_receiver-mestyp_batmas.
SELECT SINGLE * FROM tbd06 INTO ls_tbd06_batmas WHERE
sndsystem = idoc_control-sndprn AND
rcvsystem = idoc_control-rcvpor AND
bobjtype = 'BUS1001002' AND
method = 'SAVEREPLICA' AND
ftype = '3' AND
fobjtype = 'MATNR'.
IF sy-subrc <> 0.
* if no distribution based on reference to matmas => do not do additional filtering
RETURN.
ENDIF.
* check if any MARC segement exists for the product that is forseen to be transferred
* if yes, this means that also the batches for it can be sent
SELECT matnr FROM marc INTO TABLE lt_matnr FOR ALL ENTRIES IN lt_plants
WHERE matnr = lv_matnr AND
werks = lt_plants-werks.
IF sy-subrc <> 0 OR lt_matnr IS INITIAL.
create_idoc = abap_false.
RETURN.
ENDIF.
ENDIF.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
* check if any MARC segement exists for the product that is forseen to be transferred
* if yes, this means that also the batches for it can be sent
SELECT matnr FROM marc INTO TABLE lt_matnr FOR ALL ENTRIES IN lt_plants
WHERE matnr = lv_matnr AND
werks = lt_plants-werks.
IF sy-subrc <> 0 OR lt_matnr IS INITIAL.
create_idoc = abap_false.
RETURN.
ENDIF.
ENDIF.
ENDMETHOD.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
METHOD if_ex_badi_matmas_ale_cr~change_matmas.
* check if for message type and receiver an adjustment of PSTAT should be done
* you must adjust this to your own needs. So e.g. for your elevant receiver systems
* and/or the message types for which a PSTAT replacement should be done
IF NOT
(
( f_idoc_header-rcvprn = 'EWMCLNT001' AND f_idoc_header-mestyp = 'ZEWMMATMAS' ) OR
( f_idoc_header-rcvprn = 'EWMCLNT002' AND f_idoc_header-mestyp = 'ZEWMMATMAS' )
).
RETURN.
ENDIF.
* check which of the values in PSTAT are relevant for EWM. Only keep those
lv_number_char = strlen( ls_e1maram-pstat ).
DO lv_number_char TIMES.
lv_index = sy-index - 1 .
IF NOT ls_e1maram-pstat+lv_index(1) CA lv_pstat_ewm_fields .
ls_e1maram-pstat+lv_index(1) = ' '.
ENDIF.
ENDDO.
* check which of the values in VPSTA are relevant for EWM. Only keep those
lv_number_char = strlen( ls_e1maram-vpsta ).
DO lv_number_char TIMES.
lv_index = sy-index - 1 .
IF NOT ls_e1maram-vpsta+lv_index(1) CA lv_vpsta_ewm_fields .
ls_e1maram-vpsta+lv_index(1) = ' '.
ENDIF.
ENDDO.
ENDMETHOD.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
Double click on EXIT_SAPLKD03_001. The source code appears. Double click on the INCLUDE name (here
ZXVSVU05)
· You will be asked if you want to create the include. Confirm this an save it.
· In the include for EXIT_SAPLKD03_001 enter the following coding (adjust the yellow parts by your own
sender, receiver systems, view name and message types). You can get this from what you have entered
in BD64.
*&---------------------------------------------------------------------*
*& Include ZXVSVU05
*&---------------------------------------------------------------------*
LOOP AT filter_object_type.
CLEAR filter_object_value.
filter_object_value-objtype = filter_object_type-objtype.
CASE filter_object_type-objtype.
WHEN fobject_ktokk.
IF vendor_general_data-ktokk IS NOT INITIAL.
filter_object_value-objvalue = vendor_general_data-ktokk.
APPEND filter_object_value.
ENDIF.
ENDCASE.
ENDLOOP.
· Do the same for enhancement function EXIT_SAPLVV01_002. In the function module double-click on
Include ZXVSVU06
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
LOOP AT filter_object_type.
CLEAR filter_object_value.
filter_object_value-objtype = filter_object_type-objtype.
CASE filter_object_type-objtype.
WHEN fobject_ktokd.
IF general_data-ktokd IS NOT INITIAL.
filter_object_value-objvalue = general_data-ktokd.
APPEND filter_object_value.
ENDIF.
ENDCASE.
ENDLOOP.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
ALE documentation:
Documentation for ALE is available under IDoc Interface/ALE. For example, periodic tasks are explained under
IDoc Interface/ALE ® Administration ® Administration of ALE Functions ® Periodic Tasks
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
The following SAP Notes may help you with your EWM implementation:
SAP Note Description / Comment
2450387 Which document type or item type for which warehouse request?
The SAP Note contains as attachment an overview of available BC Sets for EWM warehouse
requests.
2464460 Restricted usage of BC sets in embedded EWM in S/4HANA and in de-central EWM
2775345 Restrictions of Decentralized EWM on S/4HANA 1809 FPS02
2782080 Overview of Guides or Best Practices Documents for Extended Warehouse Management
The SAP Note contains a list of available guides for each EWM deployment options.
Integration of SAP ERP or SAP S/4HANA with decentralized EWM in S/4HANA PUBLIC
www.sdn.sap.com/irj/sdn/howtoguides