on 11-26-2010 3:49 AM
Hi All,
I have got a program to lock planning book when the batch jobs run. The program works fine. But there is a small problem.
The program checks for user in the planning area using FM enqueue_read.
If a user, is in the transaction code and has selected no planning book/data view, he does not get identified which is ok. But once the planning book PB is locked, with the user A still inside the transaction code, he can access the PB in edit mode!!
I dont think this is the bug with the user code but with the system code of locking.
Need suggestions to lock the planning book correctly.
Thanks!
By default, the user enters with display access. But he also gets the choice of edit (the pencil button) whic should not be the case.
Edited by: Sim on Nov 26, 2010 4:50 AM
Hi Sim,
is this program own development or a standard one? I have the same issue
Thanks
Aban
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is a user developed program.
I have found one alternative to it...using FM /SAPAPO/MSDP_DATA_LOCK to lock the Planning Area and /SAPAPO/MSDP_DATA_UNLOCK to unlock it.
You can find the code that generates the popup window when clicked on edit button when the planning area is locked by this FM, by debugging the popup window that says "...locked by user XXX" and implement it in your own code if you do not want to use the FM.
User | Count |
---|---|
8 | |
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.