on 12-28-2010 7:42 AM
Hi,
How to lock specific users say users presently in system to access specific planning area/planning book say ABC?
Thanks!
Hi
You can write Z 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.
Then use the following FMs to Lock the planning area and unlock it.
/SAPAPO/TS_DM_LOCK
/SAPAPO/TS_DM_UNLOCK
Thanks
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I already have this Z program. But there is a bug with this concept. If the user is in transaction code already, and does not select any planning book/data view
1. He does not get recognized in ENQUEUE_READ and hence cannot be deleted/locked
2. The FM if used in report does not lock the user in this scenario
In this scenario, once the report runs to lock the planning book, the user sitting in transaction code already and can still acess the supposed-to-be-locled planning book in edit mode!
Hence I was looking for identifying all the users in the system and locking them from accessing the PB. Do we have FM or something to specify users to be locked when locking Planning Area?
User | Count |
---|---|
9 | |
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.