Skip to Content
Author's profile photo Kirti Sherawat

Bin Transfer or Unpack Handling Unit


This one is another in series. This will help ABAP developers to move Handling Unit from one Bin to another in EWM.



At times the requirement is to do bin transfer of a Handling Unit or unpack Handling Unit. To achieve it technically, again class /SCWM/CL_WM_PACKING and its superclass /SCWM/CL_PACK comes to rescue. Below steps need to be followed to transfer bin:

1).  Create object of class /SCWM/CL_WM_PACKING like:

      DATAg_model TYPE REF TO /scwm/cl_wm_packing.
      CREATE OBJECT g_model.

2).  Initialize class with warehouse by calling INIT method of class:

CALL METHOD g_model->init
iv_lgnum = Warehouse_Code

3).  Call static method SET_GLOBAL_FIELDS to globally assign values like Handling Unit                         Application (WME), etc.

CALL METHOD /scwm/cl_wm_packing=>set_global_fields
iv_lgnum = Warehouse_Code.
error = 1

4).  Also we need to call FM /SCWM/TO_INIT_NEW,to initialize WarehouseTask Processing

iv_lgnum = Warehouse_Code.


5).   Afterwards call method MOVE_HU of Interface /SCWM/IF_PACK_BAS by passing existing bin           of a HU and new Storage Bin where HU needs to be transferred, and then call SAVE method.

This same approach can be used to unpack Handling Unit.

Note: This work is carried out on SCM 7.02

This suffice the operations of bin transfer of a Handling unit or unpacking of Handling unit.

In future will try to cover more topics on EWM.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mehmet Ozgur Unal
      Mehmet Ozgur Unal

      Hi  Kirti Sherawat ,

      Thanks for sharing.


      M.Ozgur Unal