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

Former Member
0 Likes
431

Hi,

My requirement is I need to transfer the stock from one batch and one material to another batch and another material both the cases plant and storage location is same. For this what I am doing is In the initial screen of mb11 I am giving plant as AA(let us say) storage location as 7000 movement type as 309 and if I press enter in the second screen I am entering receiving plant as AA(same) receiving storage location as 7000(same) and receiving material as 12345. and in the same screen I am entering sending material as 6789 quantity as 100 and sending batch as 20715/5033 and If I press enterIn the third screen I need to give receiving batch as 20234/1234 but the system by default taking sending batch only that is 20715/5033 suppose if I change manually it is working fine that means it is moving the stock 100 from material 12345(sending) batch 20715/5033(sending) to 6789(receiving) batch 20234/1234(receiving). The same I am able to see in mmbe transaction also. But through bdc i am not able to do this I mean even if I pass receiving batch to screen field mseg-umcha system is by default taking sending batch and the stock is moving to same bath. I have cleared the screen field mseg-umcha also in bdc program but it is not working. Please help me how to solve this.

Or please tell me BAPI which I can use for the same.

Thanks .

3 REPLIES 3
Read only

alejandro_bindi
Active Contributor
0 Likes
397

Try with BAPI_GOODSMVT_CREATE.

Regards

Read only

Former Member
0 Likes
397

Please tell me this bapi function module can also applicable for the movement type 309 in mb11 transaction.

Read only

Former Member
0 Likes
397

yes definetly....

bapi_goodsmvt_create has a parameter called

BAPI2017_GM_CODE (This parameter transfers the new key assignment of the GM_CODE to the relevant transactions in Inventory Management.)

u need to pass '06' for this parameter '06 ' is for 'MB11' (Reversal of goods movements).

rewards would be helpful....