Skip to Content
0

Issue in Packing In Program in EWM

Jun 19, 2017 at 11:26 AM

139

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ajit Routray Jun 19, 2017 at 02:50 PM
0

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

Show 5 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Ajit,

First of all Thanks for your reply brother, i did the both in the program already but still those are not getting initialised.

error3.jpg (92.4 kB)
error3.jpg (92.3 kB)
error4.jpg (168.4 kB)
0

Hi Vamsi,

You wrote wrong coding.

Class is /scwm/cl_wm_packing.

Initialize will be using below static method.

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

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

after getting this instance use to repack_stock.

Kind Regards,

Ajit

0
Former Member
Ajit Routray

Hi Ajit ,

Let me try that.

Thank you.

0
Former Member

Hi Ajit,

Still getting the dump because i am unable to initialise the go_prot any idea ?

0

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

0