cancel
Showing results for 
Search instead for 
Did you mean: 

Create Handling Unit FROM ABAP PROGRAM

former_member193460
Contributor
0 Kudos

Hi Experts,

    i have a requirement to create handling unit from a custom program. i have the productID (material number) and i need to create a handling unit.

Please let me know any BAPI or FM to create the Handling unit.

i have seen the below class but i am not sure how to use it /SCWM/CL_PACK

Thanks & Regards,

Tashi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Tashi,

You can use FM HU_PACKING_CREATE .

There are some more FM which you can check in SE37 by putting HU_* and do F4. Check the FM which is suitable for you.

FM documentation as also available.

Regards,

Praphul

Former Member
0 Kudos

Hi Tashi,

In which process you need HU to be created? is it inbound or outbound? based on what criteria you want to create these handling units?

HU's can be created automatically in standard system using packaging specifications and cartoonizations.

BR

Anoop S

shimank_jain3
Explorer
0 Kudos

Hi Tashi,

You can use:


CLASS   : /SCWM/CL_WM_PACKING

METHOD: CREATE_HU.

* creating nested HU

      CALL METHOD go_wm_packing->create_hu

        EXPORTING

          iv_pmat      = < Packing Material ID >

          iv_huident   = < HU Number >

          i_location   =  < Location / Bin >

        RECEIVING

          es_huhdr     = < Declaration as per Method Parameters >

        EXCEPTIONS

          error        = 1

          OTHERS = 2.

Hope it may helps you.

BR,

Shimank Jain

former_member193460
Contributor
0 Kudos

Hi Shimannk,

There seems to be lots of FM and Class method which can be used but i am not sure which one i have to use.

The scenario i have is priority plus shipping.

Small packages are to be sent .Tracking number from courier company needs to be saved and the items to be shipped needs to be linked with a new handling unit.

i am not sure how to create the handling unit and how i can link the deliveries with the handling unit.

Regards,

Tashi

Former Member
0 Kudos

Hi Tashi,

you can create Handling unit using FM HU_PACKING_CREATE and to link delivery use the parameter IS_OBJECT. pass the object type corresponding to delivery in OBJECT , you can get that in value range for domain HU_OBJECT. e.g. 01 for outbound delivery, 03 for inbound delivery etc. and pass the delivery number in OBJKEY.

Regards,

Praphul

former_member193460
Contributor
0 Kudos

Hi Praphul,

i am trying to accomplish the requirement in EWM system. i dont find the FM you have mentioned in the system and in ECC its available.

Please let me know if know of anything in EWM system.