Skip to Content

Calling BAPI_GOODSMVT_CREATE in BADI from MIGO transaction


My requirement is to run goods mvt. type 101 in MIGO and calling goods mvt. type 562 in background(after posting 101) simultaneously. I have made an update function module where I used BAPI_GOODSMVT_CREATE and called it in an implementation in MB_MIGO_BADI (method: POST_DOCUMENT) in update task. The material, plant and storage location is same for both processes.

The problem is the BAPI is returning the error 'Plant data is locked for this material by user (my userID).' I found out the locks are getting placed once I post 101 in MIGO. Any solutions on how I could bypass this?

Helpful << Text Removed >>

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Apr 15, 2019 at 09:55 AM

    You could avoid this issue by posting the 562 through a simple workflow after the 101 posting.
    You could also create a custom output type to be triggered after the 101 and using a custom function module in order to post the desired 562.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 17, 2019 at 10:31 AM

    Hello Debatraya,

    You will have to define a new output type for the application "ME - Inventory Management" (using medium 8 - Special function), add it to a procedure, etc... Have a look to transaction NACE.

    I'm sure you can find many wiki pages explaining how to define an output type.

    Best regards


    Add comment
    10|10000 characters needed characters exceeded