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

Unable to unassign HU with FM

0 Kudos
416

Hi guys! I'm trying to delete HU from inbound delivery using FM.

I got it, but when I go to the VL32N I cannot delete this cuz appears a message saying

"Delivery still contains handling units"

But HUs are deleted.

I think that I I get unassign HU before delete it, it'll work, but i don't know how.

Any ideas?

Thanks!

I'm using this FM

CALL FUNCTION 'HU_PACKING_REFRESH'.
it_venum = it_venum.
CALL FUNCTION 'HU_GET_HUS'
EXPORTING
if_lock_hus = 'X'
it_venum = it_venum. "it_venum contains l_venum
LOOP AT it_venum INTO l_venum.
CALL FUNCTION 'V51F_DELETE_HU'
EXPORTING
if_venum = l_venum.
ENDLOOP.
CALL FUNCTION 'HU_POST'.
COMMIT WORK.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Solved using batch input, still not working with abap