Skip to Content
0
Feb 23, 2009 at 05:02 PM

Execute mb31 after saving migo

59 Views

Hi experts,

We are in a need to execute the functionlity of MB31 when MIGO transaction is saved.

When i execute BAPI_GOODSMVT_CREATE in se37 with the required inputs i am getting the desired results i.e the goods value is increased.

For doing during the saving action of MIGO we identified the MB_DOCUMENT_BADI in which the MB_DOCUMENT_UPDATE method was used.

I then call the bapi BAPI_GOODSMVT_CREATE with the required inputs to post the goods movement as required, but i am getting the return message saying

'The plant data of the material TESTMATERIAL is locked by the user ABAP1"

Where test material is the material name and abap1 is my own user id.

Kindly help me to solve the issue.

in case there are better ways to achieve the above functionality please do let me know

<b>All good answers will be suitably rewarded</b>

Regards

Gowri