Professional Documents
Culture Documents
How To Set Up MES-Driven Staging
How To Set Up MES-Driven Staging
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
© 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
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.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.
© 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.
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.
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.
© 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
© 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.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.
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.