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_GOODSMVT_CREATE For MB1B

Former Member
0 Kudos

Hi all,

I have checked all the post related to BBAPI_GOODSMVT_CREATE for the doing GR for the Subcontracting Purchase order.

I am passing below fields to BAPI

movement type : - 541

movement indicator : ' ' ( space as Goods movement w/o reference )

plant , storage location , po number , po item

vendor, material, quantity,UoM,batch

for this bapi when i give movement indicator as below,

Movement Ind : - ' ' : message : Qty and / or "delivery completed" ind. or final issue ind. missing

Movement Ind : - 'B' : messages : PO cannot be created using line item

once MIGO done i am calling custom code where i have called this BAPI .

Now i am not getting how to resolve this issue .

Thanks and Regards,

PRasad KRishna NAralkar

1 ACCEPTED SOLUTION

JL23
Active Contributor

Maybe you should show the values that you have for all fields that you used, best from a debugging session.

Why do you have a PO number in your BAPI call? MB1B movements are never PO related. If you eventually use a PO reference in MB1B then this is just used as entry aid for the user to default items. This is not needed in a BAPI.

4 REPLIES 4

JL23
Active Contributor
0 Kudos

Can you brief explain the scenario, 541 after a goods receipt does not yet make any sense to me as the components have to be at the vendor before he can produce the material that you received.

Movement Indicators are depending on the GM_Code, unfortunately you have not told about that.

Had you seen the pretty detailed documentation on the function module?

Former Member
0 Kudos

Hi ,

I am using GM_CODE = '04'

and have read functional document and followed but still not able to rectify that error.

cause if i am doing manually through 'MB1B' it is working finr but in a custom report when i call BAPI and pass above parameters its not working ????

JL23
Active Contributor
0 Kudos

Maybe you should show the values that you have for all fields that you used, best from a debugging session.

Why do you have a PO number in your BAPI call? MB1B movements are never PO related. If you eventually use a PO reference in MB1B then this is just used as entry aid for the user to default items. This is not needed in a BAPI.

JL23
Active Contributor

Maybe you should show the values that you have for all fields that you used, best from a debugging session.

Why do you have a PO number in your BAPI call? MB1B movements are never PO related. If you eventually use a PO reference in MB1B then this is just used as entry aid for the user to default items. This is not needed in a BAPI.