cancel
Showing results for 
Search instead for 
Did you mean: 

Locking Planning Book

former_member215781
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sim,

is this program own development or a standard one? I have the same issue

Thanks

Aban

former_member215781
Active Participant
0 Kudos

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.