cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Repack of product stock from 1HU to another empty HU in EWM Development

former_member267445
Participant
0 Kudos
2,575

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

View Entire Topic
former_member813375
Discoverer
0 Kudos

Was there a resolution for this issue ? We are also facing same issue. Any inputs would be appretiated

former_member267445
Participant
0 Kudos

Hi Sandeep,

Is it resolved or still waiting for inputs?. Sorry for the delay.

Thanks and Regards,

Muralikrishna Peravali.