on 12-17-2010 6:11 AM
I have a program which locks the planning area before batch job runs. The program is as follows -
Check the user using FM ENQUEUE_READ
Notify the user about planning area being locked and to log off
Update Z table with planning area and lock flag as X
If the user does not log off, kick out the user from the system using FM TH_DELETE_USER
If the user is already in the transaction code /SAPAPO/SDP94 and does not select any planning book or data view, he does not get recognized in FM ENQUEUE_READ and hence he is not notified about planning book going to be locked.
After the above locking program is run, and the user then selects the supposed to be locked planning book, he can access it and edit it! If he restarts the transaction again with /n i.e re-enters the planning book, then he founds the planning book locked.
I tried using FM /SAPAPO/MSDP_DATA_LOCK and it works fine when used independently. If I am inside the transaction code without selecting anything and I run the FM, and then try to access the locked PB it gives me an error of 'Locled by user XXXXX'. But when I try to use this FM in any report, it does not behave the same!! The behaviour is same as my previous program. Alternatively I also tried FM ENQUEUE_/SAPAPO/E_PAREA but no success.
Does anyone have the solution to this? Or any inputs is appreciable. Also, can I contact SAP regarding this planning book locking problem.
Thanks!
Contacted SAP. There is a variable in method 'DVIEW_DISPLAY_MODE_SET' which gets set to display mode/change mode when the user enters transaction code /SAPAPO/SDP94. This variable is not reset again based on the entry created in the Z table. There is no solution for this bug as of now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.