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

Error on using BAPI_GOODSMVT_CREATE to implement MB1A

Former Member
0 Likes
1,245

Hi, Experts

I am writing a program to use BAPI_GOODSMVT_CREATE implementing Goods movement for production order which is binding to the sales order.

Accord our MM consultants opinion I should use the Movement Indicator as 'L'.

But after I entered all the parameters into the bapi it reply the message as below:

RE Quantity moved exceeded by 2 PAA : 1F00300600000 2100 2103 ZZZZ E

msg ID: M7

msg NO: 022

Below is my parameters,Is there any error with my parameters?

MATERIAL 1F00300600000

PLANT 2100

STGE_LOC 2103

MOVE_TYPE 261

SPEC_STOCK E

SALES_ORD 2100000028

S_ORD_ITEM 000010

ENTRY_QNT 1.000

ENTRY_UOM PAA

ORDERID 20000030

ORDER_ITNO 0000

RESERV_NO 0000000434

RES_ITEM 0006

MVT_IND L

VAL_SALES_ORD 2100000028

VAL_S_ORD_ITEM 000010

7 REPLIES 7
Read only

Former Member
Read only

0 Likes
1,017

Excuse me

Do you have sample code for the function MB1A by using this BAPI?

Read only

0 Likes
1,017

Excuse me

I have already input all the parameter refer to that link. But I still need to bind those materials to the RESERV_NO and RESERV_ITEM. But as I input the RESERV_NO the system post me this error message: RE Quantity moved exceeded by 2 PAA : 1F00300600000 2100 2103 ZZZZ E

Is there still some parameters I should input? Or is there possible any parameters I input incorrectly?

Thank you very much

Read only

0 Likes
1,017

Hello

Movement indicator for production order must be F.

Also:

Read only

0 Likes
1,017

Excuse me

But our MM comsultant has only config the L Movement indicator for the movement type 261.

Is there any error?

It seems F is for the goods movement of product but not stuff? Is that right?

Read only

0 Likes
1,017

Hello

Read help for BAPI_GOODSMVT_CREATE:

Entering the movement indicator

Depending on the transaction, you must enter the following in the movement indicator:

GM_Code 01 (Goods receipt for purchase order): B

GM_Code 02 (Goods receipt for production order): F

For all other transactions, you leave the field blank.