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 - error

Former Member
0 Kudos

hello,

i am using BAPI_GOODSMVT_CREATE to create material document. I am using movement type 101 and goods movement code as 01.

I am facing this error on executing the BAPI : "Update Control of movement type is incorrect ( entry 101 X X )"

I have entered all the required fields before i run the BAPI.

Please can anyone help me in this error solving.

Regards

Swanand

4 REPLIES 4

Former Member
0 Kudos

Hi Swanand,

Is your config correct? Have you tried the same 101 goods movement (using the same data) with the sap transactions before running the BAPI?

Poonam

0 Kudos

Hi poonam,

I have tried the same with transaction MB01, it works fine in creating the material document.

But when i use this BAPI : BAPI_GOODSMVT_CREATE with the same data it gives the above error.

I am not sure where the error is. If in config, no idea as to where the settings are missing.

Regards

Swanand

Former Member
0 Kudos

Hi,

Try the following in the gmcode field:

CONSTANTS:

c_gmcode_con LIKE bapi2017_gm_code-gm_code VALUE '03',

"GM Code value for goods issue

c_gmcode_rev LIKE bapi2017_gm_code-gm_code VALUE '06',

"GM code value for Goods reversal

regards

Aveek

Former Member
0 Kudos

Hi Swanand,

When you are doing a 101 movement with a '01' GM movement code, it means that you are doing a goods receipt against a purchase order. In that case, you also need to set the goods movement indicator(MVT_IND) on the BAPI2017_GM_ITEM_CREATE structure for each item to be 'B'. This is documented in the documentation of the BAPI.

Please verify if this is done in your case, and let the forum know if the problem is still there. If this resolves, please reward and close the issue.

Regards,

Srinivas