Application Development 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: 

BAPI for T-Code MB31

Former Member
0 Kudos

Hi All,

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

Regards,

Raghu

7 REPLIES 7

ak_upadhyay
Contributor
0 Kudos

Hi,

BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order.

Reward points if useful....

Regards

AK

0 Kudos

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

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

ak_upadhyay
Contributor
0 Kudos

Hi Raghu,

Check this link....

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

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

Regards

AK

Former Member
0 Kudos

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