on 2022 May 19 4:02 PM
Hello Gurus,
Am new to EWM development. I have below requirement.
In system one HU called HU1 with product MAT1 having stock 10 KG. Another HU called HU2 with empty.
Now, I need to move the product MAT1 from HU1 to HU2(empty HU) and then need to empty HU1.
I am using the class /scwm/cl_wm_packing with repack_stock method by passing source HU(HU1) destination HU(HU2) and Stock GUID with quantity 10 KG. However am getting an error in repack_stock method stating that no HU items present. However I debug the method and I came to know there is one buffer internal table which is having HUitem in that there are no entries which is the reason why it is failing. But am not able to understand where those entries filling. The code where exactly it is failing is below
In FM /SCWM/HUITM_READ -
* read exact item
IF NOT iv_guid_stock IS INITIAL.
READ TABLE go_hugm->gt_xhuitm INTO es_huitm
WITH KEY guid_parent = iv_guid_hu
guid_stock = iv_guid_stock
BINARY SEARCH.
IF NOT sy-subrc IS INITIAL.
READ TABLE go_hugm->gt_xhuhdr WITH KEY guid_hu = iv_guid_hu
ASSIGNING <huhdr> BINARY SEARCH.
IF sy-subrc IS INITIAL.
WRITE <huhdr>-huident TO sy-msgv1.
ENDIF.
MESSAGE i142(/scwm/hugeneral) WITH sy-msgv1 '3' RAISING no_item.
ENDIF.
RETURN.
ENDIF.
go_hugm->gt_xhuitm in this internal table there are no entries populated.
Can you please light me on the issue.
Thanks and Regards,
Muralikrishna Peravali
Request clarification before answering.
Was there a resolution for this issue ? We are also facing same issue. Any inputs would be appretiated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 28 | |
| 14 | |
| 13 | |
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.