Skip to Content

Calling BAPI_GOODSMVT_CREATE in BADI from MIGO transaction

Hi,

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

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 15 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

  • Apr 17 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

    Fortian

    Add comment
    10|10000 characters needed characters exceeded