2010 Dec 22 6:30 AM
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!
2010 Dec 22 6:45 AM
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
2010 Dec 22 7:39 AM
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
2010 Dec 22 9:50 PM
Your first attempt left no choice but to lock it.
Thanks for supplying more information this time.
Thomas
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |