Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HU_PACKING_AND_UNPACKING

Former Member
0 Kudos

Hi all,

I would like to use the function called HU_PACKING_AND_UNPACKING,

to pack one or more Handling Units of an outbound delivery into another Handling Unit.

Normally this can be done through transaction vl02n and than go to packing (of HU's).

I need to make a programm which contains the packing of HU's.

The function HU_PACKING_AND_UNPACKING calls the function V51P_FIND_HEADER,

which in turn uses a global table called GT_XVEKP.

In the VL02N I see the table contains the HU's involved in the packing,

but when (in SE37) I test the function the table is empty and I get the error message,

that the HU into which I want to pack cannot be found.

Of course in my own programm the table is empty, how do I get the table filled with the right data?

Or am I going the wrong way with the function to pack HU's?

Swetha

2 REPLIES 2

maciej_domagaa
Contributor
0 Kudos

I would suggest you not to use function modules from function group V51P directly, but instead use modules from group V51E if possible.

Generally the following call sequence works:

1. call function 'HU_GET_HUS' - to initiate data (internal tables of function group V51P, GT_XVEKP among them)

2. call some module from function group V51E to create/change data

3. call function 'HU_POST' - to save tha data to database

Maybe fm HU_PACKING_CREATE is the one you need (I haven't used it but you can try).

Alternatively, instead of using FMs you can create HUs with batch input using "single entry" screen (it works fine).

regards

0 Kudos

Thank u. It helped me in solving my prolem