Skip to Content

How to check if Material is not locked

I have a requirement to create idoc from Material change screen with the new changed values. For this, I am using user exit EXIT_SAPLMGMU_001 to call the idoc posting Program RBDSEMAT. But since I need the new saved values, I have to wait until the Material is not locked before submitting the idoc Program. How can I achieve this within the Program to only call the Program after the lock has been released?

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 26, 2017 at 07:34 PM

    I think this is what you are looking for Waiting for lock objects to release – using lock modes U and V

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 25, 2017 at 07:35 AM

    Technically, execute your code in a FM executed in BACKGROUND TASK, it will run after unlock and database update.

    Any reason you didn't use standard solutions like change pointer triggering of IDoc?

    Add comment
    10|10000 characters needed characters exceeded