Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Locking Planning book

Former Member
0 Likes
622

Hi,

Has anyone worked on code for locking planning book? I already have a code but it fails at one scenario to lock the planning book. There are FM to lock the planning book, which behave exactly as I want in that scenario, but when I use them in my program even they fail to lock the planning book in that scenario.

For more details, you can check my thread for which link is given below

@Moderator - I had opened a similar thread before but it was locked by moderator (Thomas Zloch) with comment to do my own research. I have already done much research about this and have found my problem to be still existing in all the codes/solutions. I have already posted in SAP APO section regarding the specific problem and haven't got any solution from there too. Hence decided to check in ABAP section if any abapper had worked on the same.

[|]

Thanks!

Hi,

Has anyone worked on code for locking planning book? I already have a code but it fails at one scenario to lock the planning book. There are FM to lock the planning book, which behave exactly as I want in that scenario, but when I use them in my program even they fail to lock the planning book in that scenario.

For more details, you can check my thread for which link is given below

@Moderator - I had opened a similar thread before but it was locked by moderator (Thomas Zloch) with comment to do my own research. I have already done much research about this and have found my problem to be still existing in all the codes/solutions. I have already posted in SAP APO section regarding the specific problem and haven't got any solution from there too. Hence decided to check in ABAP section if any abapper had worked on the same.

[|]

Thanks!

3 REPLIES 3
Read only

Former Member
0 Likes
541

I am n't sure if you have looked into the option to use parameter ID in user profile /SAPAPO/SDP94_D_MODE (using A) to make sure no one can edit the planning book i.e once you check all users out from SM04 & SM12

Thanks

Devendar

Read only

0 Likes
541

I have set the parameter /SAPAPO/SDP94_D_MODE to 'I'. I do not want to lock users permanently, but only when the batch job is running.

There are FM like /SAPAPO/TS_DM_LOCK which works fine when I execute the FM. But when I add the FM in the report, the report still fails to lock the planning book.

Can we lock the planning book for specific users? Say I get the users from SM04 and lock them from accessing the planning book XYZ

Read only

ThomasZloch
Active Contributor
0 Likes
541

Your first attempt left no choice but to lock it.

Thanks for supplying more information this time.

Thomas