Introduction
Production Integration with SAP EWM enables timely staging of material components, posting their consumption, and receiving final products into the warehouse.
SAP EWM offers two ways to integrate production processes.
Delivery-Based Integration: The ERP system creates deliveries for materials to be staged and consumed. The quantities are specified in the ERP deliveries, which are then sent to EWM for physical movement execution.
Advanced Production Integration: This method begins with a manufacturing order in SAP ERP, generating a Production Material Request (PMR) in EWM. EWM manages all steps from the initial staging request to the completion of the manufacturing order through the PMR, allowing warehouse execution to be independent of SAP ERP. It is used mainly for consumer products or process industry.
Below diagram summarizes the process flow between S/4 ERP and EWM in an advanced production integration setup.

Important master data in production integration includes the Production Supply Area (PSA) and Control Cycle.
Production Supply Area (PSA): The PSA is the shop floor area where product staging and withdrawal occur. It contains information about the work center and storage location. The PSA is always created in ERP and can either be replicated in EWM or manually created in EWM with maintained mapping. The name of the EWM PSA, by default "ERP PSA name / ERP Plant," can be controlled during replication using the BAdI /SCWM/EX_ERP_PSA_NAME.
Control Cycle: Control cycles define how different components are staged. The different control cycles used for SAP EWM are:
1. Pick Parts: Trigger material staging from the warehouse to production based on the production order. The staged quantity directly references the production order. Relevant only for delivery-based production integration.
2. Release Order Parts: Request material from the warehouse for several production orders without predefined quantities. Quantities are requested manually. Relevant only for delivery-based production integration.
3. Crate Parts: Material stored in crates or standard containers, requested independently of specific production orders. Crate part staging is defined in the PSA in SAP EWM and can be used for both advanced production integration and delivery-based production supply, but only within a single warehouse.
4. EWM Staging: Specific to advanced production integration. In EWM, you choose between "single-order staging" (similar to pick parts) and "cross-order staging" (similar to release order parts).
In this blog, we will see how to setup master data in both ERP and EWM side and the steps to execute the entire flow using process order.
MASTER DATA SETUP
Configuration on ERP (S/4 HANA)
1) MM01 - Create component materials with MRP view mandatory. We will be using materials following different staging methods
Single Order Staging – PROD-CP-S-ROH1
Cross Order Staging – PROD-CP-C-ROH1
Not relevant for staging - PROD-CP-N-ROH1

2) MM01 - Create Finished material with MRP view, Work Scheduling view, Accounting view mandatory.

3) CS01 – Create BOM for the final product. The BOM usage is for production and enter the components of with required quantity.


4) PK05 - Create PSA

5) CR01 – Create Work Center RES-001 with Work Center category as 0008 for process Industry and assign your PSA with usage as 009 (for all task types).

6) C201 – Create Master Recipe for the final product along with operation details (Control key PI01 for Process Industry).


7) MM02 - Maintain the production scheduling profile and production version in the work scheduling view of final Product. Verify the production scheduling profile, as it decides when the PMR should get created(Tcode-OPKP).


For process industry, the task list type is a master recipe. Carry out the check to verify if the production version (BOM & Task List) is intact.

8) LPK1 – Create Control cycle for the components, For the materials to be staged using EWM, choose 5 (EWM staging). In case if the production stock is managed in a separate storage location than other stock, then the source and destination storage location would be different and EWM would execute a posting change when the staging happens. In our example, the warehouse has only one storage location that manages both production and other stock.

EWM Side Master Data Setup:
Prerequisite:
1) Extend the components & Finished Product with PTDI (Process Type Determination Indicator), PACI (Put away Control Indicator), Storage section indicator, SRCI (Storage Removal Control Indicator) and maintain stock for components in EWM Warehouse through standard inbound process.
2) SCPR20 - Ensure /SCWM/PMR* BC sets are activated (This takes care of the document type, item types, profiles settings related to PMR. This can be verified in SPRO under Goods Issue Process-> PMR, verify the mapping of ERP to EWM order document & item types under Interfaces->ERP Integration->Production)
Steps:
1) /SCWM/PSA_REPLICATE - Replicate ERP PSA into EWM. We can verify if PSA is defined and the mapping of S4 PSA to EWM PSA is done automatically through transactions /SCWM/PSA & /SCWM/PSAMAP.

After replication, the PSA definition and mapping is automatically done.


2) SPRO & /SCWM/LS01 - Setup storage type (Storage type role - K) and bins for this EWM PSA.
3) /SCWM/PSASTAGE - A bin is assigned to a combination of party entitled to dispose / PSA and product / product group (or none, if it is generic). This step decides the staging method, and Quantity Calculation Type, WPTs to be used for product staging and withdrawal (here we use, custom WPTs to move the products in pallets, we can also use standard WPTs 2100 for staging single order and 3010 for cross order part).

Here, if we use Quantity Based Calculation Replenishment for staging, the replenishment process starts as soon as the current product quantity falls short of the defined minimum.
4) Repeat the above step for the other component material PROD-CP-C-ROH1 with staging method as Cross order staging.

Execution Steps:
1) COR1 - Create Process Order in ERP, save and release the process order and then perform WM Material Staging.
Material List



2) /SCWM/MON or /SCWM/PMR - PMR is created in EWM once the WM staging is executed in ERP Process Order.

3) /SPE/EGR in ERP - Create EGR in EWM using EGR report from ERP using push method.


This creates QRFC entry for the FM INBDLV_SAVE_REPLICA in EWM and once it’s processed system will create EGR.

4) /SCWM/STAGE - Schedule staging for Production. Create Staging WTs for the PMR in EWM. This can also be done with Fiori Application “Staging for Production”.


When executing the staging, if warning “All staging proposal quantities are 0; no staging needed” appears, check the following.
- Check if proper picking strategy is defined for the staging relevant WPT
- Check if the component has available stock for the staging WT to get created, check in ERP also in MMBE Tcode.
- Staging WTs won’t be created or will be created with less than PMR quantity for the cross order stock, if it is already available in the PSA.
5) /SCWM/MON - Confirm the Staging WTs from the monitor. Single order component can be identified with reference to manufacturing order.

For Cross order component, identify the open WTs with either WPT or product, since there won’t be any process order reference.

6) Now, all the required components are at PSA. To consume the products, we can use a Fiori application “Consumption by Production” or follow the below RF menu path Tcode - /SCWM/RFUI ->Logon-> outbound processes -> Consumption -> Consumption by Manufacturing Order-> Enter Manufacturing Order.

7) Enter the HU or the PSA bin where the products are located, and enter the quantity to be consumed. Repeat this step for all three components.
Single order

Cross Order

Not relevant to staging

8) We can see the consumption has triggered goods issue posting for the components

Each of this GI posting creates an inbound queue entry in S/4 under queue WMPGIEWM* and the function module /SPE/GOODSMVT_CREATE is used to post the goods receipt.


As you can see, the EWM movement code 03 is equivalent to movement type 261 in ERP.
We can also check the documented goods movement in the process order header.

MB51 – we can see the material documents created for all three components.

9) Now, post the goods receipt of the completed product in RFUI /SCWM/RFUI ->under Inbound Process-> Receiving of Handling Units-> Rec.HU by Manufacturing Order-> Rec. HU by Order and log onto Work center.

10) Enter the manufacturing order and choose the final product.

Verify the received final product qty, click on create HU to complete the Goods Receipt.

If you want to put away the products immediately, you can use the RF transaction Receive HU by Order with Putaway.
11) You can see the inbound delivery created for the final product after the GR was posted in RF, with reference to our process order.


Also, an open put away WT already exists (Created via PPF /SCWM/PDI_02_WT_CREATE when GR is posted), which we can confirm in the monitor or in the RF.


This Goods Receipt posting in EWM sends GR posting via PPF /SCWM/PDI_02_GR_POST, that creates a QRFC entry in ERP under name WMPGREWM*.

The EWM movement code 02 is equivalent to movement type 101 in ERP.

Once the queue entry is processed, you can verify the same in process order header and the material document.

If the goods movement is not reflected from EWM into ERP, the PPF and queues can be checked for errors.
12) COR2 -Now, Change the Process order status from Released to Technically completed to mark the completion of that manufacturing Order. This will in turn complete the PMR too.
Before the technical completion of process order, the production status is released in PMR.


Production status in PMR is updated to Technically Completed.

After completion, no change will be allowed in the process order, but we can reverse the completion in the same path.
13) Now clear the PSA and bring back any unused materials into the warehouse to free up the PSA space.
For products staged using the single-order staging method, you must first release the reference document to clear the reference in the stock, so the stock can be used for another PMR.
You can use either “Clear Production Supply Area” Fiori app or release the stock reference in monitor /SCWM/MON and create an ad hoc HU task to the required destination.

14) Now, we set the process order status to closed in ERP, that automatically closes the PMR in EWM.

Comments