01-18-2005 8:34 AM
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
01-18-2005 8:53 AM
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
01-18-2005 9:05 AM
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
01-18-2005 5:07 PM
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
01-18-2005 6:42 PM
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