cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create HU, Pack HU, Receive HU...

jisley365
Discoverer
0 Kudos
394

I have been successful in creating and packing HUs for this task(Create HU, Pack HU, Receive HU) utilizing SAP EWM Methods thanks to Mehmet Ozgur Unal and Juergen Pitz(Function Module / Class EWM - Inbound delivery order / Create Hu , Pack Hu , GR | SAP Community). I would like to "receive"(GR the HU) the material at the dock into a specified location using SAP EWM Methods. Has anyone accomplished this request in SAP EWM? Thank you for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Daniil
Active Contributor
0 Kudos

Hi Jim,

what do you mean with "SAP EWM Methods" ABAP? If yes, something like this should work

    DATA(lo_delivery) = /scwm/cl_dlv_management_prd=>get_instance( ).

    /scwm/cl_goods_movement=>post_hu(
      EXPORTING
        it_hu        = lt_hu_list_gr
        iv_gmcat     = /scwm/if_docflow_c=>sc_gr
       IMPORTING
         eo_message   = DATA(lo_message)   ).

    lo_delivery->save(
      EXPORTING
        iv_synchronously  = abap_false
        iv_do_commit_work = abap_true
        iv_wait           = abap_false
      IMPORTING
        et_message  = lt_messages ).
jisley365
Discoverer
0 Kudos

Thank you Daniil. I am looking for additional Class/Methods similar to the SAP EWM Methods and Function Modules found in the link I added to the question.

Daniil
Active Contributor
0 Kudos

In this case you can try my example, it should work