2007 Nov 02 10:12 AM
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
2010 Apr 15 2:18 PM
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
2010 Apr 15 2:55 PM
I have dealt with this in past, and after exploring all the options, finally I wrote a BDC for this.
Regards,
Kaleem.
2012 Jan 05 2:03 PM
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