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 for T-Code MB31

Former Member
0 Likes
1,187

Hi All,

Is there is any BAPI for the T-Code MB31?

Regards,

Raghu

7 REPLIES 7
Read only

ak_upadhyay
Contributor
0 Likes
1,000

Hi,

BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order.

Reward points if useful....

Regards

AK

Read only

0 Likes
1,000

Hi to both,

I know about that BAPI. In MB31 the order field refers to Production Order (not purchasing order). I want to do for Production order.

Did the same BAPI works for production order too? Because in that BAPI there is no option to pass the production order.Thats why this doubt comes.

Let me know if the same BAPI works for the production order too or not.

Regards,

Raghu

Read only

Former Member
0 Likes
1,000

This message was moderated.

Read only

Former Member
0 Likes
1,000

Please check the documentation of the BAPI, you would find that it is possible to create goods receipt w.r.t Production Order. Also in the documenation you would find the required fields to be populated.

Read only

Former Member
0 Likes
1,000

Hi,

Please take a look at this links for sample coding of BAPI_GOODSMVT_CREATE.

http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm

http://www.4ap.de/abap/bapi_goodsmvt_create.php

http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm

Take a look at the sample code provided by Rich in the thread below

Please award points if found helpful.

Read only

ak_upadhyay
Contributor
0 Likes
1,000

Hi Raghu,

Check this link....

http://www.planetsap.com/LIST_ALL_BAPIs.htm

If u find it helpful, Do Reward....

Regards

AK

Read only

Former Member
0 Likes
1,000

Hi All,

Thanks for all your reply.

Found the answer : Same BAPI only used but in the import parameter : Value for "GOODSMVT_CODE" is '02' for production order. Then it will work for MB31. Other possible values for "GOODSMVT_CODE" are :

01 - MB01 - Goods Receipts for Purchase Order

02 - MB31 - Goods Receipts for Prod Order

03 - MB1A - Goods Issue

04 - MB1B - Transfer Posting

05 - MB1C - Enter Other Goods Receipt

06 - MB11

Regards,

Raghu