‎2010 Jun 30 6:43 AM
Hi All,
I have to move the goods from storage location 110D to 116D.
For that Iu2019m using BAPI: BAPI_GOODSMVT_CREATE with GM_CODE = 4 (Transfer posting)
After executing the BAPI, Iu2019m checking the RETURN value, if there is no error message, Then Iu2019m committing using BAPI_TRANSACTION_COMMIT.
Result of my program:
Before the BAPI is called, the storage location stge_loc is 110D and move_stloc = 116D. Which is correct.
I can see that expected result in MB51 transaction where goods is moved from storage location 110D to 116D, which is correct. But when I runned IW32 with that order, Iu2019m seeing the goods moved to different location, which is incorrect.
Using MB51, when i checked, the storage location from(110D) and to(116D), both are showing correctly and it is correctly updated in MSEG table. But in RESB table, it is still showing 110D
So, could you pls suggest me where I went wrong and suggest me any other logic.
Thanks & Regards,
Harsha Ramaiah
Edited by: Harsha Ramaiah on Jun 30, 2010 8:11 AM
‎2010 Jun 30 7:15 AM
Please check the contents of BAPI return table in debug mode. I think it would give you cause of the error.
‎2010 Jun 30 7:45 AM
‎2010 Jun 30 8:01 AM
Hi,
Data in RESB is Reservation data(Tcode:MB21/22/23), it has no actual effect on storage(means that the movement is not actually happened), so in your case , maybe you need to change the reservation , not to do transfer posting.
regards,
Pole