Supply Chain Management Blogs by Members
Learn about SAP SCM software from firsthand experiences of community members. Share your own post and join the conversation about supply chain management.
cancel
Showing results for 
Search instead for 
Did you mean: 
4,214
Summary:

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

 

Introduction:

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
EXPORTING
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
EXPORTING
iv_lgnum = Warehouse_Code.
EXCEPTIONS
error = 1
OTHERS = 2.

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

CALL FUNCTION ‘/SCWM/TO_INIT_NEW’
EXPORTING
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.
1 Comment
Labels in this area