cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Packing In Program in EWM

0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

landedasilva
Explorer
0 Kudos
    /scwm/cl_tm=>set_lgnum( iv_lgnum ).
    CALL FUNCTION '/SCWM/TO_INIT_NEW'
      EXPORTING
        iv_lgnum = iv_lgnum.

This in the beginning of my method resolved the issue.

former_member813375
Discoverer
0 Kudos

Can some one tell how this issue was resolved.We are also getting same issue

0 Kudos

Hi Vamsi,

I am also facing the same issue. May I know the solution to initialize GO_PROT.

ofcourse it is getting initialized in my code but somehow before raising the message it is dumping with error message " no object reference".

Appreciate your help !!

0 Kudos

Hi Keerthi,

Simple use /scwm/cl_tm=>cleanup with passing hu application.....

0 Kudos

Hi,

Calling FM '/SCWM/TO_INIT_NEW' before the repack method could solve your issue. Give it a try...

Cheers,

Branko

Ajit_Routray
Active Contributor
0 Kudos

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

0 Kudos

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.

Ajit_Routray
Active Contributor
0 Kudos

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 Kudos

Hi Ajit ,

Let me try that.

Thank you.

0 Kudos

Hi Ajit,

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

Ajit_Routray
Active Contributor
0 Kudos

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