EWM · Intermediate · Configuration
How to link a warehouse number to embedded EWM in SAP S/4HANA
Create the warehouse number in logistics execution, assign it to plant and storage location, activate it as an EWM-managed warehouse, generate the distribution model, define the EWM warehouse number, map the two numbers and assign the supply chain unit, then test with an inbound delivery.
- APPLICABILITY
- SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition with embedded Extended Warehouse Management in the same system. Decentralized EWM on a separate system needs the same warehouse linkage plus system connections and the ERP version control parameters, which this guide does not cover.
- TOOLS / TRANSACTIONS
- SPRO · /SPE/OL19 · BD64 · /SCWM/LGNBP · VL31N · /SCWM/PRDI
Your project assignment
A hypothetical plant ZP10 moves its finished goods storage location to embedded EWM. The project needs logistics execution warehouse number ZW1 linked to EWM warehouse number ZW10 in the same S/4HANA system so that deliveries for that storage location are processed in EWM.
Where to start: URLs and transactions
- SAP GUI transactions
- /SPE/OL19, BD64, /SCWM/LGNBP, VL31N, /SCWM/PRDI
- IMG path: logistics execution
- Enterprise Structure → Definition → Logistics Execution → Define, copy, delete, check warehouse number; Logistics Execution → Extended Warehouse Management Integration → Basic Setup of EWM Connectivity
- IMG path: EWM
- SCM Extended Warehouse Management → Extended Warehouse Management → Interfaces → ERP Integration → General Settings → Map Warehouse Numbers from ERP System to EWM System
- SAP Learning: Setting Up the Integration Between SAP ERP and SAP EWM
- https://learning.sap.com/courses/basic-customizing-in-sap-s-4hana-ewm/setting-up-the-integration-between-sap-erp-and-sap-ewm
Prerequisites
- Customizing authorization for logistics execution and Extended Warehouse Management, and a customizing transport request.
- Basis prerequisites done: logical system assigned to the client, RFC destination and queue settings for the system's own connection.
- Plant and storage location for the EWM-managed stock, and a business partner and supply chain unit for the warehouse.
Configuration workflow
Two warehouse numbers and the link between them
All steps visible. Play or advance one stage at a time.
Hands-on implementation — step by step
Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.
- 1
Enterprise Structure → Define warehouse number
Create the three-character warehouse number in the logistics execution definition table. It represents the EWM warehouse on the inventory management side.
Enterprise Structure → Define warehouse numberERPClimb · illustrative screen - Warehouse number
ZW1 (hypothetical)- Description
Finished goods warehouse ZP10
Expected result: The warehouse number exists.
Why this matters: A warehouse in the standard warehouse definition table represents the EWM warehouse for inventory management.
- 2
Enterprise Structure → Assign warehouse number to plant and storage location
Assign the warehouse number to the plant and to the storage location whose stock will be managed in EWM.
Enterprise Structure → Assign warehouse number to plant and storage locationERPClimb · illustrative screen - Plant
ZP10- Storage location
ZF01 (hypothetical)- Warehouse number
ZW1
Expected result: The storage location is linked to the warehouse number.
Why this matters: The system decides warehouse relevance of a delivery item from plant and storage location.
- 3
Basic Setup of EWM Connectivity → Configure SAP EWM-Specific Parameters
Activate the warehouse number as an EWM warehouse. Set the communication type and the distribution mode.
Basic Setup of EWM Connectivity → Configure SAP EWM-Specific ParametersERPClimb · illustrative screen - External WM
EWM (Extended Warehouse Management)- Comm. WM
Queued and serialized asynchronous RFC- Dist. Mode
Distribution immediately at document creation
Expected result: The warehouse number is flagged as EWM-managed.
Why this matters: This activation tells logistics execution to hand deliveries of the warehouse to EWM.
- 4
/SPE/OL19 → Generate Distribution Model
Generate the distribution model for the warehouse number. Enter the logical system of EWM, a model view name and select all objects.
/SPE/OL19 → Generate Distribution ModelERPClimb · illustrative screen - Warehouse number
ZW1- Logical system of EWM
Logical system of this client (embedded)- Distribution model view
ZEWM (hypothetical)- Objects
All
Expected result: The model view is created and visible in BD64.
Why this matters: The distribution model ensures that delivery data is transferred to and from EWM.
- 5
EWM → Define warehouse number
Define the four-character warehouse number in EWM, preferably with the copy function for warehouse Customizing from a template warehouse.
EWM → Define warehouse numberERPClimb · illustrative screen - EWM warehouse number
ZW10 (hypothetical)- Template
SAP template or an existing warehouse
Expected result: The EWM warehouse number exists with the copied Customizing.
Why this matters: The warehouse number in EWM is defined separately from the logistics execution number.
- 6
ERP Integration → Map Warehouse Numbers from ERP System to EWM System
Map the logistics execution warehouse number to the EWM warehouse number. The business system is optional.
ERP Integration → Map Warehouse Numbers from ERP System to EWM SystemERPClimb · illustrative screen - Business system
Optional- ERP warehouse number
ZW1- EWM warehouse number
ZW10
Expected result: The mapping is saved.
Why this matters: This mapping is required in decentralized and in embedded EWM.
- 7
/SCWM/LGNBP → supply chain unit and business partners
Assign the supply chain unit with the warehouse business attribute to the EWM warehouse number, and the business partners for custodian and default party entitled to dispose.
/SCWM/LGNBP → supply chain unit and business partnersERPClimb · illustrative screen - Warehouse number
ZW10- Supply chain unit
ZP10 (hypothetical, attribute INV)- Custodian / party entitled
Business partner of the plant (hypothetical)
Expected result: The warehouse number has a unique supply chain unit and its partners.
Why this matters: The supply chain unit and custodian identify the warehouse and the owner of its stock.
- 8
VL31N and /SCWM/PRDI → test
Create an inbound delivery for a purchase order item in the plant and storage location, then display the inbound deliveries in EWM. Check the queues if it does not appear.
VL31N and /SCWM/PRDI → testERPClimb · illustrative screen - Plant / storage location
ZP10 / ZF01- Expected result in EWM
Inbound delivery for warehouse ZW10- If missing
Check SMQ1 and SMQ2
Expected result: The delivery is distributed and visible in EWM.
Why this matters: An end-to-end delivery proves the assignment, activation, model and mapping together.
Project acceptance checklist
Use this checklist to prepare evidence for your project lead.
0 of 4 checks marked. This does not certify the SAP configuration.
Validate your configuration
- The warehouse number is shown as an EWM warehouse with queued and serialized asynchronous RFC, and the distribution model view exists in BD64.
- An inbound delivery for the plant and storage location is distributed and appears as an inbound delivery in EWM.
Common errors and what to check
the delivery is created but never appears in EWM.
Check: The distribution model was not generated for the warehouse number, or the queues are stopped.
the delivery is not EWM-relevant at all.
Check: The storage location of the item is not assigned to the warehouse number.
EWM rejects the delivery because no warehouse can be determined.
Check: The mapping of the logistics execution warehouse number to the EWM warehouse number is missing.
stock cannot be posted in EWM because the owner or custodian is unknown.
Check: The supply chain unit and business partners are not assigned to the EWM warehouse number.
More in the SAP Library
Need help with a configuration error? Open ERPClimb Copilot.
Technical references & further reading
Official documentation for technical verification, release compatibility and further study.