Hello Gyongyi,
I am trying to use /SAPAPO/TS_DM_LOCK_UNLOCK in the process chain such that no user should lock the data until the process chain completes.Otherwise, the PC fails.
I am really excited to know how it is successful in your case.
Following is the steps.
1. At the beginning of the PC, I am logging off all users.
2. Right after that the PA area is locked by batchuser ID.
3 At the end of the PC, I am calling another program (same FM with unlock parameters) to unlock the PA along with the batchuser ID.
But, things are not working as explained above.
Below is my observation.
1. In case PC fails due any other issue like data, then lock will be released. I accept this as it is the nature of FM.
2. Once the locking is done, other activities are executing and to test, I am checking whether I am allowed to edit data in planning book. I realize that I am able to. But sometimes I also got message like Data Locked by BatchUser ID.
I am totally confused. Can I get some help as it is an urgent for me?