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: 

Problem in 'HU_CREATE_GOODS_MOVEMENT'/ HU02

0 Kudos

Hi All,

We are trying to create a HU and move the stock to a destination storage location.This provision exists in transaction HU02.

But the 'BAPI_HU_CREATE' has no field where i can enter the destination storage location.So after creating the HU's with the above bapi we are using FM 'HU_CREATE_GOODS_MOVEMENT' to do the movement.

My problem is that the above mentioned FM is not working properly.

Its giving me errors/dumps based on the HU details iam entered into it.

Can somebody give me a solution for the same.

It would be great if i get some sample code for the above mentioned FM .

Kindly help, its really urgent.

Thank You

3 REPLIES 3

Former Member
0 Kudos

Hi Sharad, did you ever get a solution for using this FM? I have the exact same issue. I'd very much appreciate your comments.

Thanks

Rafael

Former Member
0 Kudos

I have dealt with this in past, and after exploring all the options, finally I wrote a BDC for this.

Regards,

Kaleem.

Former Member
0 Kudos

Hi, Sharad.

I was facing a similar problem.

In my program i use BAPI_HU_PACK and then HU_CREATE_GOODS_MOVEMENT.

As the code above gives a dump then i created a testing program where i use the BAPI HU_CREATE_GOODS_MOVEMENT isolated. It works perfectly.

So the problem must be some variable that is not cleared

To solve my problem i added the following FM's before HU_CREATE_GOODS_MOVEMENT:

CALL FUNCTION 'HU_PACKING_REFRESH'.

CALL FUNCTION 'SERIAL_INTTAB_REFRESH'.

CALL FUNCTION 'L_SAPLL03A_INIT_INT'.

Regards,

Pedro