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

EWM FM to perform goods issue for outbound delivery

former_member746094
Participant

Accepted Solutions (0)

Answers (2)

Answers (2)

Daniil
Active Contributor

Hi Jacky, try it out with PPF. This functionality is used to perform some actions automatically, goods issue as well.

It depends on your process if it fits or not. But you can use as well code from PPF implementation if you need it.

But if you still would like to use coding, it could be

    /scwm/cl_goods_movement=>post_dlv(
      EXPORTING
        it_dlv       = lt_dlv
        iv_post_part = lv_post_part
        iv_keep_data = abap_true
        iv_gmcat     = /scwm/if_docflow_c=>sc_gi
      IMPORTING
        eo_message = lo_message ).

BR,

Daniil

former_member746094
Participant
0 Likes

Hi Daniil,

I tried to implement the code, but it still not work properly. I am not sure what going on.

I checked the results on /SCWM/PRDO, goods issues still "Not started", but return message seems not error.

eo_message:

it_dlv:

Daniil
Active Contributor

Hi Jacky try to call SAVE after you post GI

/scwm/cl_dlv_management_prd=>get_instance( )->save(
    EXPORTING
      iv_synchronously  = abap_false
      iv_do_commit_work = abap_true
      iv_wait           = abap_true
    IMPORTING
      ev_rejected = lv_rejected
      et_message  = et_message ).<br>
former_member746094
Participant
0 Likes

Thanks Daniil, it work!!

katrin_kraemer
Product and Topic Expert
Product and Topic Expert
0 Likes

/SCWM/IF_API_WHR_OUTBOUND (available with S/4HANA 2020)