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

BAPI_GOODSMVT_CREATE + Transfer posting

Former Member
0 Likes
2,234

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,154

Please check the contents of BAPI return table in debug mode. I think it would give you cause of the error.

Read only

0 Likes
1,154

Hi,

I checked, there is no error in return table.

Read only

pole_li
Active Participant
0 Likes
1,154

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