Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

PUBLIC

How to Set Up MES-Driven Staging


EWM in SAP S/4HANA
DOCUMENT HISTORY
Document Version Description

2.1 Added configuration of number range for stock transfers

2.0 • Added BC set for stock transfer for production supply


• Modified steps for SOAP message configurations.
• Attached the template message for SOAP inbound messages
• Other minor changes, e.g. IMG paths etc.

1.1 • Added prerequisites for production material request.


• Added configuration of product group type for PSA assignment.
• Corrected descriptions in chapter Interfaces / Communication Configuration.
• Added mandatory configurations for transaction SPROXY

1.0 First official release of this guide


Table of Contents
1 Business Scenario ........................................................................................................ 4
2 Background Information .............................................................................................. 4
3 Prerequisites ................................................................................................................. 4
4 Master Data Overview ................................................................................................... 5
4.1 Materials..................................................................................................................................... 5
5 Step-by-Step Procedure ............................................................................................... 5
5.1 Configurations in SAP S/4HANA ERP ..................................................................................... 5
5.1.1 Activate FEH Handling for Inbound Message ..................................................................................... 5
5.2 Configurations in SAP S/4HANA EWM ................................................................................... 5
5.2.1 Activate BC Set (/SCWM/PMR_MES_DRIVEN).................................................................................... 5
5.2.2 Define Item Types for Production (BC Set) ......................................................................................... 5
5.2.3 Define Allowed Item Types for Production (BC Set) .......................................................................... 6
5.2.4 Define Product Groups ......................................................................................................................... 6
5.2.5 Map SAP ERP Order Type to EWM Item Type .................................................................................... 6
5.2.6 Define Number Range for Posting Changes and Stock Transfers ................................................... 7
5.2.7 Activate BC Set (/SCWM/DLV_STOCK_TRANS_PS) .......................................................................... 7
5.2.8 Define Document Types for the Stock Transfer Process (BC Set) ................................................... 7
5.2.9 Define Item Types for the Stock Transfer Process (BC Set) ............................................................. 8
5.2.10 Define Allowed Item Types for the Stock Transfer Process (BC Set) .......................................... 9
5.2.11 Define Document and Item Type Determination for MES-Driven Staging................................... 9
5.2.12 Determine Warehouse Process Type for MES-Driven Staging .................................................... 9
5.2.13 Optional: Define Access Sequence for Warehouse Process Type Determination .................. 10
5.2.14 Define Synchronization of Stock Data for MES ........................................................................... 10
5.2.15 Define Warehouse Number-Dependent Settings ......................................................................... 10
5.2.16 Activate Action Profile for Sending Staging Method PPF .......................................................... 11
5.2.17 Activate Action Profile for Sending Warehouse Request Status of Staging to MES PPF ....... 11
5.2.18 Check and Activate BAdIs for Stock Change Notification.......................................................... 11
5.3 Maintain Master Data in SAP S/4HANA ERP ........................................................................ 11
5.3.1 Maintain Product Group for Production Components ..................................................................... 11
5.3.2 Create PSAs in SAP ERP .................................................................................................................... 12
5.4 Maintain Master Data in SAP S/4HANA EWM ....................................................................... 12
5.4.1 Decentralized EWM Only: Replicate the PSA to Decentralized EWM ............................................ 12
5.4.2 Create Storage Bins ............................................................................................................................ 12
5.4.3 Maintain PSA Assignment to Bin by Entitled/Product for Components ........................................ 13
5.5 Configure Interfaces Between EWM and MES ..................................................................... 13
5.5.1 Optional: Configuration in SAP Digital Manufacturing .................................................................... 13
5.5.2 Configure Inbound Message (Service Provider) in P2P Way for EWM .......................................... 13
5.5.3 Configure Outbound Message (Service Consumer) in P2P Way for EWM .................................... 14
5.5.4 Prepare SOAP Message Request Payload for Inbound Message................................................... 15

3 / 15
© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
1 Business Scenario

Staging is the key process to supply the production with required components or semi-finished products as well as with
spare parts in sufficient quantity at the right time.
The following systems are involved in the staging to production process:
• SAP S/4HANA system, where the production orders are created.
• Extended Warehouse Management (EWM) system (EWM based on SAP S/4HANA 2021), where the
warehouse processing takes place.
• SAP Manufacturing Execution System (SAP MES) or an external MES, where the production execution takes
place.
• For simplification purposes, this document will focus on the integration between SAP EWM and SAP Digital
Manufacturing Cloud.

2 Background Information
This document describes the necessary configurations to run the MES-Driven Staging processes.
The processes are integrated into the preconfigured warehouse described in scenario “Warehouse Management with
Preconfigured Processes”. Also based on the Advanced Production Integration process.

3 Prerequisites
You have EWM system based on SAP S/4HANA 2021 or higher and done the following configurations:
• Warehouse management with preconfigured processes.
• Production integration has been set up in system. See Advanced Production Integration.

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
4 Master Data Overview

4.1 Materials
This document contains examples using certain materials to illustrate configurations related to them.
However, these materials do not exist in the preconfigured warehouse. Therefore, it is necessary for you to
define your own materials accordingly.
Material Description Comment
This is a finished product for the production process,
complete with advanced production integration
settings such as the production version, routing,
MES_FERT1 Finished product for production operations, Bill of Materials (BOM), and control cycles,
among others. These production setting details will be
employed to generate a Production Material Request
(PMR) document in EWM.
MES-Relevant production
MES_COMP01 Raw material for finished product MES_FERT1
component 01
MES-Relevant production
MES_COMP02 Raw material for finished product MES_FERT1
component 02
MES-Relevant production
MES_COMP03 Raw material for finished product MES_FERT1
component 03

5 Step-by-Step Procedure

5.1 Configurations in SAP S/4HANA ERP

5.1.1 Activate FEH Handling for Inbound Message


You use this procedure to activate the FEH handling for inbound message, so that you can do trouble-shootings when
you got errors for SOAP inbound messages.
Procedure
1. In Customizing, choose Cross-Application Components -> General Application Functions -> Error and
Conflict Handler -> Activate Error and Conflict Handler.
2. Activate the ECH for Clients.
3. Save the change.

5.2 Configurations in SAP S/4HANA EWM

5.2.1 Activate BC Set (/SCWM/PMR_MES_DRIVEN)


You can use this procedure to activate a BC Set in SAP S/4HANA OP. This BC Set will provide the
configuration for a new PMR item type (PCME), which is meant for MES-driven staging. Other PMR
document or item types should have been configured already during the setup of advanced production
integration.
Procedure
1. In the easy access menu for SAP EWM, choose Tools -> Customizing -> Business Configuration Sets ->
Activation of BC Sets or use transaction SCPR20.
2. Enter BC Set /SCWM/PMR_MES_DRIVEN (Production Material Request for MES-Driven Staging).
3. Press Activate.
4. In next screen choose to copy values.

5.2.2 Define Item Types for Production (BC Set)


You use this procedure to define item types in production material requests.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Goods Issue Process -> Production Material Request -> Define Item Types for
Production.
2. Check by positioning the following item type and document category. If necessary, create the following entry:
Item Type PCME
Doc. Categ. PWR
Item Category CMP
Description Component Stage from MES
Status Profile /SCWM/PWR_CMP_WHR
Qty. Offset Prf /SCWM/PWR_CMP_WHR
FldContProf
Incompl. Prof
RefDocCat Prof
Partner Profile
Date Profile /SCWM/PWR_CMP
Process Profile /SCWM/PWR_CMP
Apply ERP AUoM as SUoM X
3. Save your entry.

5.2.3 Define Allowed Item Types for Production (BC Set)


You use this procedure to define allowed item types in production material requests.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Goods Issue Process -> Production Material Request -> Define Allowed Item Types for
Production.
2. Check by positioning the following document type and item type. If necessary, create the following entry:
Doc. Type PMR
Item Type PCME
3. Save your entry.

5.2.4 Define Product Groups


You use this procedure to define new product group for MES relevant single order staging components.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> SCM Basis Master Data ->
Product -> Product Groups -> Define Product Groups.
2. Create the following entry:
ProdGrType PS
Product group MES_SINGLE

3. Save your entry.

5.2.5 Map SAP ERP Order Type to EWM Item Type


Similar to advanced production integration, the item type for MES-driven staging in the production material
request document should be 'PCME' (Component Stage from MES) for single-order staging products, and
'PCCO' (Component Stage from MES) for cross-order staging products.
Procedure

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Interfaces -> ERP Integration -> Production -> Map SAP ERP Order Type to SAP EWM
Item Type.
2. Maintain the following entries:
Item Cat. CMP CMP
Order Type PP01 PP01
Business System - -
Warehouse Number W001 W001
Product Group CROSS_ORDER MES_SINGLE
Doc. Type PMR PMR
Item Type PCCO PCME

3. Save your entry.

5.2.6 Define Number Range for Posting Changes and Stock Transfers
You can use this procedure to define a number range for internal stock transfer documents, then assign it to
the internal stock transfer document type.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Cross-Process Settings -> Delivery - Warehouse Request -> Number Ranges -> Define
Number Range for Posting Changes and Stock Transfers.
2. Press Change Intervals.
3. Insert below number range interval if not yet maintained:
Number Range No. 04
From No. 00000000910000000000
To Number 00000000919999999999
NR Status -
External -
4. Save your entry.

5.2.7 Activate BC Set (/SCWM/DLV_STOCK_TRANS_PS)


You can follow this procedure to activate a BC Set in SAP S/4HANA OP. Within this BC Set, you will find the
configuration for the document/item type used for stock transfer - production supply, along with its relevant
settings.
Procedure
1. In the easy access menu for SAP EWM, choose Tools -> Customizing -> Business Configuration Sets ->
Activation of BC Sets or use transaction SCPR20.
2. Enter BC Set /SCWM/DLV_STOCK_TRANS_PS (Delivery: Stock Transfer Prod. Supply).
3. Press Activate.
4. In next screen choose to copy values.

5.2.8 Define Document Types for the Stock Transfer Process (BC Set)
You use this procedure to define document type for creation of internal stock transfer document in MES-driven staging
process.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Internal Warehouse Processes -> Delivery Processing -> Stock Transfers -> Define
Document Types for the Stock Transfer Process.
2. Create the following entry:
Header:

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
Document Type SPS
Doc. Categ. WMR
Document Types:
Stock Transfer for Production
Description:
Supply
04 (Number Range object:
Int.No.RngeInt. /SCDL/PRD)
Change Documents X
Ret.Period 365
Profile:
Action Profile /SCWM/WMR
Status Profile /SCWM/INT_WMR_STANDARD
Text Profile /SCWM/INT_WMR
FldContProf /SCWM/INT_WMR_STANDARD
Partner Profile /SCWM/ST_PRD
Date Profile /SCWM/ST_PRD
Incompl. Prof. /SCWM/INT_WMR_STANDARD
Qty. Offset Prf /SCWM/WMR
RefDocCat Prof /SCWM/ST_PRD
Process Profile /SCWM/ST_PRD_PS
3. Save your entry.

5.2.9 Define Item Types for the Stock Transfer Process (BC Set)
You use this procedure to define item type for creation of internal stock transfer document in MES-Driven Staging
process.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Internal Warehouse Processes -> Delivery Processing -> Stock Transfers -> Define Item
Types for the Stock Transfer Process.
2. Create the following entry:
Header:
Item Type SDPS
Doc. Categ. WMR
Document Types:
Item Category DLV
Stock Transfer Item for
Description: Production
Profile:
Status Profile /SCWM/INT_WMR_DLV_STANDARD
Qty. Offset Prf /SCWM/WMR_DLV
FldContProf /SCWM/INT_WMR_DLV_PS
Incompl. Prof. /SCWM/INT_WMR_DLV_PS
Text Profile /SCWM/INT_WMR_DLV
RefDocCat Prof /SCWM/ST_PRD_DLV
Partner Profile /SCWM/ST_PRD_DLV
Date Profile /SCWM/ST_PRD_DLV
Proc.Code Prof. /SCWM/ST_PRD_DLV
© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
Process Profile /SCWM/ST_PRD_DLV
3. Save your entry.

5.2.10 Define Allowed Item Types for the Stock Transfer Process (BC Set)
You use this procedure to define the allowed document/item type for stock transfer process.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Internal Warehouse Processes -> Delivery Processing -> Stock Transfers -> Define
Allowed Item Types for the Stock Transfer Process.
2. Maintain the following entry:
Doc. Type SPS
Item Type SDPS
3. Save your entry.

5.2.11 Define Document and Item Type Determination for MES-Driven Staging
You use this procedure to define the determination rule for the document/item type at the warehouse number
level for the MES-driven staging process.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Internal Warehouse Processes -> Delivery Processing -> Stock Transfers -> Warehouse
Request for MES-Driven Staging -> Define Document and Item Type Determination for MES-Driven
Staging.
2. Maintain the following entry:
Warehouse Number W001
Doc. Type SPS
Item Type SDPS
3. Save your entry.

5.2.12 Determine Warehouse Process Type for MES-Driven Staging


This procedure is used to determine the warehouse process type for MES-driven staging. The supply area
and warehouse process type (WPT) should be pre-configured before they are used. For WPT, only category
3 - Internal Warehouse Movement is acceptable.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Internal Warehouse Processes -> Delivery Processing -> Stock Transfers -> Warehouse
Request for MES-Driven Staging -> Determine Warehouse Process Type for MES-Driven Staging.
2. Maintain the following entry:
Warehouse Number W001 W001
Doc. Type SPS SPS
Item Type SDPS SDPS
ProTypeDet - -
Del.Prio. 1 2
Supply Area PSA-001 /PL01 PSA-001 /PL01
Proc. Type P320 P32P
3. Save your entry.

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
5.2.13 Optional: Define Access Sequence for Warehouse Process Type
Determination
You use this procedure to define the access sequence for warehouse process type determination for MES-driven
staging.
Procedure 10. ...

1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Internal Warehouse Processes -> Delivery Processing -> Stock Transfers -> Warehouse
Request for MES-Driven Staging -> Define Access Sequence for Warehouse Process Type
Determination.
2. Create the following entries, for example:
Warehouse
W001 W001 W001
Number
Access Seq. No. 1 2 3
Use Prio. X X -
Use PTDet X X -
Use PSA X - X
3. Save your entries.

5.2.14 Define Synchronization of Stock Data for MES


You use this procedure to activate the notification to synchronize the stock change in specific production supply area to a
manufacturing execution system (MES).
Procedure 11. ...

1. In Customizing for EWM, choose Extended Warehouse Management -> Interfaces -> MES Integration ->
Define Synchronization of Stock Data for MES.
2. Find following entry and select Synchronize Stock Data:
PSA in ERP PSA-MES-01 PSA-MES-02
ERP System e.g. QXXCLNT101 e.g. QXXCLNT101
Plnt PL01 PL01
Warehouse Number W001 W001
Supply Area PSA-MES-01/PL01 PSA-MES-02/PL01
ME System - -
Synchronize Stock Data 1 Synchronized 1 Synchronized
Note: Value “ME System” is only used by MES stock change notification via RFC, in this guide we use the
SOAP messages.
3. Save your entries.

5.2.15 Define Warehouse Number-Dependent Settings


You use this procedure to activate the notification that synchronizes the status of a warehouse request item
for staging with a Manufacturing Execution System (MES). If you select the 'Act. Asyn.' checkbox, EWM will
asynchronously send messages to the MES using a transactional Remote Function Call (tRFC). This setting
can be used to enhance the performance of certain system operations.
Procedure 12. ...

1. In Customizing for EWM, choose Extended Warehouse Management -> Interfaces -> MES Integration ->
Define Warehouse Number-Dependent Settings.
2. Find entry for your warehouse and set the checkboxes accordingly:
Warehouse Number W001
Act. Asyn. - (Optional)
Send Sts. X
3. Save your entries.

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
5.2.16 Activate Action Profile for Sending Staging Method PPF
You use this procedure to active PPF action for sending staging method.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Cross-Process Settings -> Delivery - Warehouse Request -> Actions -> Change Actions
and Conditions -> Define Action Profiles and Actions.
2. Find and select the action profile /SCWM/PWR_COMMON.
3. Double click on the Action Definition in dialog structure.
4. Check action definition /SCWM/SEND_STGMETHOD. Press the back button (F3) to display the list view.
Deselect the Inactive checkbox.
5. Save your entry.

5.2.17 Activate Action Profile for Sending Warehouse Request Status of Staging to
MES PPF
You follow this procedure to activate the PPF (Post Processing Framework) action for sending the
warehouse request status of staging.
Procedure
1. In Customizing for EWM, choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Cross-Process Settings -> Delivery - Warehouse Request -> Actions -> Change Actions
and Conditions -> Define Action Profiles and Actions.
2. Find and select the action profile /SCWM/WMR.
3. Double click on the Action Definition in dialog structure.
4. Check action definition /SCWM/WMR_STATUS_CHANGE.
5. Deselect the Inactive checkbox.
6. Save your entry.

5.2.18 Check and Activate BAdIs for Stock Change Notification


You use this procedure to activate the standard BAdI implementation for stock change notification. There are two BAdIs
for stock movements and stock posting.
Procedure
1. In Customizing for EWM choose SCM Extended Warehouse Management -> Extended Warehouse
Management -> Business Add-Ins (BAdIs) for Extended Warehouse Management -> Interfaces -> MES
Integration
2. Activate the following BAdIs:
Notifying MES of Stock
BAdI Notifying MES of Stock Posting
Movements
Enhancement
/SCWM/ESI_STOCK_MOVEMENT_NOTIF /SCWM/ESI_STOCK_CHANGE_NOTIFY
Implementation
BAdI
/SCWM/EI_STOCK_MOVEMENT_NOTIFY /SCWM/EI_STOCK_CHANGE_NOTIFY
Implementation
Notifying MES of Stock Send stock change notification
Description Movements via SOAP via SOAP service

5.3 Maintain Master Data in SAP S/4HANA ERP

5.3.1 Maintain Product Group for Production Components


You use this procedure to add production components to specific product groups for determination of MES-Relevant
PMR item types.
Procedure
1. In the easy access menu for SAP ERP, choose Logistics -> Materials Management -> Material Master ->
Material -> Change -> Immediately (T-code MM02).

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
2. Create the following three materials:
In view of Basic Data 2
Product MES_COMP01 MES_COMP02 MES_COMP03
Product Group Type PS PS PS
Product Group MES_SINGLE CROSS_ORDER CROSS_ORDER

3. Save your data.

5.3.2 Create PSAs in SAP ERP


You use this procedure to create PSAs for staging the MES-relevant production components.
Procedure
1. In the easy access menu for SAP ERP, choose Logistics -> Logistics Execution -> Master Data ->
Warehouse -> Production Supply -> Production Supply Area -> Create/Change (or use transaction PK05).
2. Create the following PSAs:
Plant PL01 PL01
Supply Area PSA-MES-01 PSA-MES-02
Description PSA-MES-01 PSA-MES-02
Stor.Location AFS PSWM
Responsible 001 001
3. Save your entries.

5.4 Maintain Master Data in SAP S/4HANA EWM

5.4.1 Decentralized EWM Only: Replicate the PSA to Decentralized EWM


You use this procedure to replicate the PSA from SAP ERP to decentralized EWM.
Procedure
1. In the easy access menu for SAP EWM, choose Interfaces -> ERP Integration -> Replicate Production
Supply Area.
2. Start the report and enter the following data and:
Warehouse No. Your Warehouse, e.g. W001
Ent.ToDispose BPPL01VC
Only EWM Stor.Loc. Don’t select
Plant PL01
For example, your system + client:
Logical System
XXXCLNT001(ERP logical system)
Create Entries Yes
3. Select all PSAs and press Replicate (F8).

5.4.2 Create Storage Bins


You use this procedure to create storage bins to be assigned to your PSAs.
Procedure
1. In the easy access menu for SAP EWM, choose Master Data -> Storage Bin -> Create Storage Bin (Or use
transaction /SCWM/LS01).
2. Create the following entries:
Warehouse No. W001 W001 W001
Storage Bin T105-PSA-MES-01-01 T105-PSA-MES-01-02 T105-PSA-MES-01-03
Storage Type T105 T105 T105

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
Storage Section S001 S001 S001
3. Save your data.

5.4.3 Maintain PSA Assignment to Bin by Entitled/Product for Components


You use this procedure to maintain PSA bin assignment for MES-relevant production components.
Procedure
1. In the easy access menu for SAP ERP, choose Logistics -> SCM Extended Warehouse Management ->
Extended Warehouse Management -> Master Data -> Production Supply Area (PSA) -> Assign Bin to
PSA/Product/Entitled in Warehouse Number (T-code /SCWM/PSASTAGE or /SCWM/PSASTAGE2).
2. Create the following entries:
Example in /SCWM/PSASTAGE2, with PSA-MES-01
Product Group - - -
Product MES_COMP01 MES_COMP02 MES_COMP03
Storage Bin T105-PSA-MES-01-01 T105-PSA-MES-01-02 T105-PSA-MES-01-03
Stag. Det. Outb - - -
4 Single-Ord. Stag. 2 Cross-Order Not Relevant for
Staging Method
w/ Whse Req. Staging Staging
MES-Relevant Yes Yes -
No Quantity No Quantity No Quantity
Qty Calc. Type Calculation Calculation Calculation
Qty Classific. - - -
No. Containers - - -
Min. No. Cont. - - -
Replmt Qty - - -
Min.Prd.Qty PSA - - -
Unit - - -
Staging WPT P320 P320 P320
Clear PSA WPT P325 P325 P325
3. Save your data.

5.5 Configure Interfaces Between EWM and MES

5.5.1 Optional: Configuration in SAP Digital Manufacturing


This step is optional, you may not have an SAP Digital Manufacturing system, or you want to integrate to
your own ME system. For more information about configurations for MES-driven staging in SAP Digital
Manufacturing, please refer to Connecting to EWM in SAP S/4HANA 2021.

5.5.2 Configure Inbound Message (Service Provider) in P2P Way for EWM
You use this procedure to configure the inbound SOAP messages for EWM in a point-to-point way. For an end-to-end
MES-Driven Staging process below SOAP message should be configured:
• Warehouse Staging Request In (WarehouseStagingRequest_In)

Procedure
1. Open transaction with T-code SOAMANAGER.
2. From the main screen of SOA Manager, go to the Service Administration tab.
3. Select Web Service Configuration.
4. Search for a service definition with object name.
5. Click the internal name of the service definition to display details.
6. To create a new service and a binding, choose Create Service. If you want to create a new binding for an
existing service, select the service from the list and choose the Create binding icon in the Service Actions
column.
© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
7. Specify a name for the service, a service description, and a name for the binding. If you are creating a binding
only, the service name is displayed, and you only enter a binding name.
8. Choose Next.
9. Specify the following provider security settings:
• Transport Level Security – None(http)
• Transport Channel Authentication – User ID/Password
10. Choose Next.
11. Click Finish to save your service and binding.
12. Choose the Display Binding icon.
13. Choose Transport Settings tab.
14. Note down the Calculated Access URL.
15. Open transaction with T-code SMICM.
16. Choose Services icon to check the Host Name + Port for HTTP protocol.
17. Assemble the final access URL Host Name + Port + Calculated Access URL.

Important
The final access URL can be provided to the MES or API test tool to send the http request to EWM. Please repeat
all the procedures to finish the configuration for all other SOAP inbound messages.

5.5.3 Configure Outbound Message (Service Consumer) in P2P Way for EWM
You use this procedure to configure the outbound SOAP messages for EWM in point-to-point way. For end-to-end MES-
Driven Staging process, there are three outbound SOAP messages should be configured:
• Warehouse Staging Method Out (WarehouseStagingMethod_Out),
• Warehouse Request Status Out (WarehouseRequestStatus_Out)
• Warehouse Stock Change Notification Out (WarehouseStockChangeNotification_Out)

Procedure
1. Open transaction with T-code SOAMANAGER.
2. From the main screen of SOA Manager, go to the Service Administration tab.
3. Select Web Service Configuration.
4. Specify or search for a consumer proxy with object name.
5. Select the consumer proxy from the overview and click the internal name to display configuration and design
time information about the consumer proxy.
6. Go to the Configurations tab.
7. To create a new logical port, choose Create and select Manual Configuration (there are more configuration
types please check SAP Help).
8. In Manual Configuration page:
A. Specify the logical port name and select Logical Port is Default.
B. Specify the consumer security settings. User ID / Password for basic authentication (get from message
consumer e.g., MES)
C. Choose Next.
D. Specify the URL (get from message consumer e.g., MES).
E. Change SOAP Protocol settings.

• RM Protocol – SAP RM
• Message ID Protocol – SAP Message ID
• Data transfer scope – Basic Data Transfer
• Other fields please keep as default.

9. Click Finish to save your logical port.


10. Check the port you created is active and is set as default port.

Important
Please repeat the procedures to finish the configuration for all other SOAP outbound messages.
For testing purpose, the outbound message configuration in SOAMANAGER can be skipped, that means EWM will
trigger the message sending procedure but no actual destinations, but you still can monitor relevant SOAP message
in SXI_MONITOR.

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.
5.5.4 Prepare SOAP Message Request Payload for Inbound Message
For testing purpose without a real MES, you can use below SOAP message (XML) template to simulate the MES-Driven
Staging process.
Procedure
1. Download the template ZIP file in the attachment of this SAP Note 3137363.
2. Import to your API test tool.
3. For each SOAP message, all necessary information for message payload needs to be filled based on your
system configuration. For more information, see Technical Fields Help.

© 2023 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences.

You might also like