on 2017 Jun 19 12:26 PM
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.
Request clarification before answering.
/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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can some one tell how this issue was resolved.We are also getting same issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
10 | |
5 | |
4 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.