Interoperability of Batches Between ERP and EWM
Interoperability of Batches Between ERP and EWM
SAP SCM 7
EHP7 FOR SAP ERP 6.0 EHP7 FOR SAP ERP 6.0
Purpose
The purpose of this blog is unravel the ‘’Batch Determination Process’’ in SAP EWM and further
asynchronous interoperability/update of batches in ERP delivery documents.
Overview
Batch management is deployed primarily for below reasons
● For Traceability, usage of Real batches (Inventory managed) or Documentary batches(Non
Inventory managed) can be used.
● For recording the characteristics of batches like SLED(Shelf Life Expiration Date, Country of
Origin, Status of Batch and Production date) in Warehouse and delivery documents
● For valuation of Batch, when product is either procured externally or produced internally. Usage
of Split valuation,
● In earlier version before EWM 9.2, first Batch entry was mandatorily created in ERP which is the
leading system and later batches were updated asynchronously in EWM.
● From EWM 9.2 and ECC 6.06 SP13 / ECC 6.07 SP06 the following option is also available: if the
Switch CIF_SWFS_BATCH_INT in the Business Function LOG_SCM_EWM_INT on ECC side is
Active then CIF transfers the used Batch Class and Type and these are stored on SCM side in
the Product Master (so not in the standard Classification table) • EWM can use this information to
create the first Batch already with characteristic values
Even EWM can work without any classification system, in this case SAP ERP only transfers the
characteristics as batch selection criteria to SAP EWM. In our example, we are not transferring any
characteristics from ERP to EWM.
Batch activation is Material level or at client level before SAP EWM 9.40. We have used activation at
material level.
Now, in SAP EWM 9.4(SAP ERP 6 Enhancement Pack 6) and higher version, Batch can be activated at
Plant level, consulting note, 2221258 - Integration of SAP EWM 9.40 and higher to a Batch on Plant
SAP ERP System
Modus Operandi of Batch determination in EWM
● Determine batch in outbound process during Warehouse Task creation in EWM and
asychonoulsy update batch in ERP
Note:->The flag "Batch Determination in EWM" field T340D-BATCH_DETERM_EWM, is set for the
warehouse 150 ensure that no sales batch determination occurs in ERP.
-->In case - If for the selected warehouses - the flag "Batch Determination in EWM" is NOT set, batch
determination occurs in Sales order ERP not in EWM.
Customization in EWM
● Extended Warehouse Management-->Cross-Process Settings-->Batch Management-->Define
Number Range for Batch
● Number range should be internal
Note:-
● If "No Split" is ticked. This indicator determines whether an automatic batch split of a delivery item
is carried out during picking WT and posting change confirmation.
● If it is blank ' ' (Space) then, a subitem for the batch of the picking WT is created and the batch is
written on the subitem, in case of full quantities as well. As a result, if batch split has happened,
cancel pick deletes the batch split item and only the main item remains, which is not batch
relevant.
Set Update Control (Centralized, Decentralized)
It is mandatory settings required to create the first batch in EWM, maintain the customization in table
/SCWM/TBATCHUPD
Note:-
● It is recommended to use value as 3 by SAP.
● SAP consulting note 2569979(Batch valuation does not exist yet, message
/SCWM/BATCH047 in /SCWM/WM_BATCH_MAINTAIN), 1875500(Asynchronous batch
replication from EWM to ECC not possible)
Assign the document category Outbound Delivery Order PDO. Other fields are non mandatory but it can
be used.
Note:-
The batch selection criteria in EWM cannot be changed at all and it is transferred from the outbound
delivery in the ERP to the PDO in EWM. So it is always greyed out.
However, for specific requirement BADi can be used.
->SCWM/BT_BATCH_SEL - Determine Batch Selection Criteria and Transfer to the Batch Search to
change de selection criteria.
The BAdI uses the interface /SCWM/IF_EX_BT_BATCH_SEL.
Using this, the user can select batches, that do not meet the selection criteria.
Master data required.
3. CIF the material from ERP to EWM without selecting any class/ characteristics.
Combination should be Product/Batch only in CFM1.
Process Flow chart
1) Create a Sales order in ERP
Maintain the partner number as your ERP warehouse number which is connected to EWM 4 digit
warehouse.
Enter, material, plant and Quantity, it can be observed that Batch field is not filled in SO.
Save the delivery it is distributed to EWM system. It can be observed that Batch field is till not filled.
2)Go to EWM system, logon to Outbound delivery request /SCWM/ODR : Delivery is activated in EWM
system
3)Go to /SCWM/PRDO - Outbound Delivery -> Maintain Outbound Delivery Order and check the
outbound delivery. Create warehouse task from Follow on Function.
Note:It can be seen that batches with stock is appearing in Tab( Stock that can be removed). Here
batches were directly created in EWM system by Production Order Confirmation CO15.
4)Check the Warehouse order in Monitor screen, and it can be seen the Batch is picked in WT.
7) Check the status of Outbound delivery in EWM, Picking is completed and Goods issue is not started.
Since, packing and loading activity is not used, so not required to conduct these steps.
Click on Goods Issue.
8) Check the status of delivery in EWM in PRDO, all relevant activities are completed.
8) Check corresponding Outbound delivery in ERP, goods movement is posted and status is updated as
C through PPF action from EWM.
What if Analysis for Storage type settings in following cases
● Batch neutral
● Batch specific
There is batch 0000000114 stock in storage type 5001, storage bin 01-01-01
Try to create a Warehouse task by moving Product from one storage type to another storage type by
/SCWM/ADPROD
Batch is picked during Warehouse task creation if setting is Batch Specific.
Note:- Batch is not picked during Warehouse creation and system gives error, So, always try to keep
‘’Batch Specific’’ setting in case of Product which is Batch Managed else warehouse task will not be
created for batch neutral settings
Written By:
Shailesh Mishra
Principal Consultant-SAP EWM
Linkedin URL- https://www.linkedin.com/in/shailesh-mishra-6b138894/
Email Id: shailesh02nov@gmail.com
Contact number: +91-8956035667