Transfer Number of containers and UOM from EWM system to S/4HANA 1511.
This document explains you how to transfer data from EWM system to S/4 HANA 1511 system at time of Post goods receipt in EWM system through enhancements. We need to implement enhancement in both the systems to update the values. The following are the steps,
Perform Goods receipt for an inbound delivery in EWM system.
The following screen shot for Goods receipt in EWM system.
The following Enhancement is used.
Enhancements in EWM system:
BADI Implementation: /SCWM/ES_DLV_GM
The parameters used in the method are follows.
Read the importing table IT_DLV_ITEM index 1 as the document id will be same for all the entries.
Pass the document id to the Inbound Delivery header table /SCDL/DB_PROCH_I and fetch document id.
Pass the ware house number and document id to a custom table and check whether the document id is maintained with active status.
If document id is active, then loop the IT_DLV_ITEM table and get the Number of containers and unit of measure values for all the entries and store it in an internal table. Else throw an error message using CO_MESSAGE and exit.
Pass the internal table values to a method attribute of following BADI and use the values there.
BADI Implementation: /SCWM/EX_ERP_MAPOUT_ID_CONFDEC
The parameters for the method are.
Loop the changing parameter table CT_BAPI_INB_ITEM_DATA_CONF and read the table
IS_DLV_INFO-T_ITEM where delivery number and delivery item number IS_DLV_INFO-T_ITEM is equal to the reference number and reference item number of CT_BAPI_INB_ITEM_DATA_CONF.
Read the table where you have passed the number of containers and UOM values and transferred to current BADI.
Update the extension table CT_BAPI_EXTENSION2 with delivery details and Container details.
The extension table will be transferred from EWM system to S/4HANA 1511 system.
S/4 HANA 1511 system.
Use the following enhancement to handle the extension table which we receive from EWM system.
Extension2 table in the following method contains the details from EWM system
Update the inspection lot by passing the number of containers and UOM values.
The following screen shot displays the inspection lot created with updated No of containers and UOM.
Which is transferred from EWM to S/4HANA 1511 system.
hence we have updated the Number of containers and UOM in S4HANA 1511 system successfully.