Application Development and Automation 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: 
Read only

Goods movement using handling unit

Former Member
0 Likes
1,517

Hi all ,

I am trying to do two operations in sequence in one of my requirement.

That is creating the handling unit and posting the goods movement for that handling unit,.

For this I am using two FM's

BAPI_HU_CREATE and HU_CREATE_GOODS_MOVEMENT in sequence. however when I test them from SE37 they seem to work fine, but when I do them in a program they give a short dump saying "Handling unit assignment"

Has anyone ever faced the same problem. Can you please let me know how I should go about this.

Thanks,

Ben.

Hi all ,

I am trying to do two operations in sequence in one of my requirement.

That is creating the handling unit and posting the goods movement for that handling unit,.

For this I am using two FM's

BAPI_HU_CREATE and HU_CREATE_GOODS_MOVEMENT in sequence. however when I test them from SE37 they seem to work fine, but when I do them in a program they give a short dump saying "Handling unit assignment"

Has anyone ever faced the same problem. Can you please let me know how I should go about this.

Thanks,

Ben.

4 REPLIES 4
Read only

Former Member
0 Likes
1,030

Hi Daniel Ben,

It sounds like your code problem , where you call the Function modules using some export and import parameter. Check all the Export and Import parameters and make sure you have properly defined the data types simillar to the FM data types for a Export and Import parameters.

Hope this helps.

If you are not able yo figureout the problem copy the dump analysis frin ST22.

Thanks,

Greetson

Read only

0 Likes
1,030

Hi Greetson.

I think I am passing the input parameters in the right order, when I pass the same data and run in SE37 it works fine. But in the program it is giving me an issue.

Do you want me to post the code from ST22 for your analysis ?

Ben.

Read only

0 Likes
1,030

Yes Please ... Give some details about the St22

Thanks,

Greetson

Read only

0 Likes
1,030

Hi Greetson,

It is throwing this error message "Handling unit assignment".

When I wrote an independent program it worked fine, when I am trying to use it with BAPI_HANDLE_CREATE it is throwing me the problem . Also I debugged the transaction VLMOVE and found standard code is even using the same FM. No idea hy it is failing when I am using it.

Thanks,

Ben,