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
168

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Ajit_Routray
Active Contributor
0 Kudos

Hi @gs388,

Did you check the standard Report - /SCWM/R_ODO_POST_GI ? I think Route is also there in selection.

Please check and let us know your thoughts.

Kind Regards,

Ajit

Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

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

Ajit_Routray
Active Contributor
0 Kudos

Hi @gs388 ,

Its hard to say why it is locked, my guess would be like that Cross Delivery HU( Contains multiple delivery items) or may FDO document or product ...Could you please try PGI for multiple ODO in standard PRDO or Monitor ( if you are technical , please take help of your function people) , notice the behaviour and let us know so someone can help you to fix.

Kind Regards,

Ajit