Skip to Content
Author's profile photo Raghavendran Venkatesan

Addition of the new field (No. of Containers) in the Good Receipt transaction in EWM (Extended Warehouse Management) system and transfer it to S/4 HANA 1511 system.

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.

Transaction: /SCWM/GR

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.



Method: MAPOUT

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.

Transaction: QA03

hence we have updated the Number of containers and UOM in S4HANA 1511 system successfully.


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Dalibor Riger
      Dalibor Riger

      Hi Raghavendran,

      I'm trying to implement the same scenario on S4 1709 and I'm stuck with the last step, updating inspection lot. I have all the data in the FM SPE/INB_DELIVERY_CONFIRM_DEC in the table extension2, but  I don't know what to do next.

      Could you please provide more details how did you update the inspection lot.

      Regards, Dalibor


      Author's profile photo Raghavendran Venkatesan
      Raghavendran Venkatesan
      Blog Post Author

      Hi Dalibor,

      Sorry for the very late reply.

      Please use am FM to update inspection lot with the values you have.