Skip to Content
author's profile photo Former Member
Former Member

How to unassign handling unit in outbound delivery?

(Don't Want to delete HU onlu unassign it from delivery: WM requirement)

I would like to unassign HU in an outbound delivery.

code i'm using make the handling unit disappear in the overview of HU.

but corresponding line in the "item overview" are still existing.

And when I want to copy pack quantities as delivery quantities, system tell me that "50.000 M have already been packed. Quantity cannot be changed. "

How can I do, to do as if i pushed button "delete assignment" in HU overview?

Here the code I'm using:

CALL FUNCTION 'HU_PACKING_REFRESH'.

CALL FUNCTION 'HU_GET_HUS'

EXPORTING

  • if_lock_hus = 'X'

it_venum = I_VENUM "it_venum contains l_venum

IMPORTING

ET_ITEM_SERIALNO = o_item_serialno .

CALL FUNCTION 'V51P_DELETE_RELATIONSHIP'

EXPORTING

  • IF_CONTROL = 'X'

IT_HUS = i_venum

IMPORTING

ET_NEW_HUS = LT_HUS

et_messages = lt_messages

EXCEPTIONS

FATAL_ERROR = 01 .

CALL FUNCTION 'HU_POST' .

call function 'BAPI_TRANSACTION_COMMIT'.

Please let me know the function module if anybody has idea to unassign from delivery.

Edited by: Akshay Kale on May 4, 2010 7:04 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2011 at 02:21 PM

    Hi Akshay,

    This question is marked as Answered , can you please let me know how you have resolved this error .

    My Requirement is to remove HU assignment from inbound Delivery . If possible can u provide me the code snapshot to remove assignment for inbound delivery.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.