cancel
Showing results for 
Search instead for 
Did you mean: 

EWM PGI for set of outbound deliveries with same Route programmatically

gs388
Explorer
0 Kudos
181

HI,

I have a business Requirement for doing PGI for set of outbound deliveries in same ROUTE. I am using Class name : /SCWM/CL_GOODS_MOVEMENT method : /SCWM/IF_GM_DLV~POST_DLV .  When i was trying for more than one Outbound deliveries.. it was only processing for first/one delivery from the list and No PGI for remaining outbound DO's.

sample code: 

      /scwm/cl_goods_movement=>post_dlv(
        EXPORTING
          it_dlv       lt_dlv_post
          iv_gmcat     /scwm/if_docflow_c=>sc_gi
          iv_post_part CONV #abap_true )
          iv_keep_data abap_true
        IMPORTING
          eo_message   DATA(lo_message_post)
      ).

      /scwm/cl_dlv_management_prd=>get_instance)->save(
        EXPORTING
*         iv_synchronously      = abap_true     
          iv_do_commit_work     abap_true
          iv_wait               abap_true
        IMPORTING
          ev_rejected           DATA(lf_rejected)
          ev_rollback_work_done DATA(lf_rollback_work_done)
          ev_commit_work_done   DATA(lf_commit_work_done)
          et_message            DATA(lt_message_save)
      ).

Please Suggest and requested to share your expertise /experience on this topic.

View Entire Topic
Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

When the standard transaction VL06G is there to cater your requirement, not sure, whether you explored this