Skip to Content
avatar image
Former Member

Issue in Packing In Program in EWM

Hi ,

I am packing the Outbound Delivery item with the /scwm/cl_wm_packing->repack_stock but the problem the values go_prot & gv_lgnum unable to intialize.

in the program system is checking these values while running through transaction system is filling these values but while running through Z Program i am unable to fill these values even if i fill in the program also system is not initialising these values.

error2.jpg (168.8 kB)
error1.jpg (207.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 19, 2017 at 02:50 PM

    Hi Vamsi,

    Please check with the below code for initialize .

    /scwm/cl_wm_packing=>set_global_fields(iv_lgnum= " WH No").

    /scwm/cl_wm_packing=>get_instance( IMPORTING eo_instance=DATA(Instance)).

    Kind Regards,

    Ajit

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vamsi,

      /SCWM/CL_LOG=>get_instance( IMPORTING eo_instance=DATA(go_prot)).

      Or

      Data: go_prot type ref to /SCWM/CL_LOG.

      /SCWM/CL_LOG=>get_instance( IMPORTING eo_instance= go_prot ).

      Please check with above code.

      Kind Regards,

      Ajit