cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict Users in Change Mode during planning runs

emani_raghavendra
Participant
0 Kudos

Hi Experts,

We have  a requirement to restrict particular users in Change mode during Planning runs. They will have the display access to planning books but not to change mode. For that we have used the BADI '/SAPAPO/SDP_INTERACT'  Medthod 'DVIEW_DISPLAY_MODE_SET' . But this BADI is making display access in planning book for all the Users and not at User Specific level. How can be achieve it for some users only, As we have  a list ff users whom we want to give display access to planning books while planning run is happening . Once the Planning run is completed, they can enter the Change mode again.

Regards

Ranjit

Accepted Solutions (0)

Answers (2)

Answers (2)

ramesh_mahankali
Active Participant
0 Kudos

Hi Ranjit,


"But this BADI is making display access in planning book for all the Users and not at User Specific level. How can be achieve it for some users only, As we have  a list ff users whom we want to give display access to planning books while planning run is happening."


I am not sure if I understand clearly. You are saying that the BADI is allowing planning book to open in display and when FF users need access in display mode that should not be a problem right? Can you explain in details?


However, we have achieved this by


1. Creating a custom program to update a z-table which will have a indicator that planning area is locked. This program can set/reset the indicator in z-table.

2. Implemented BAdI to check this Z-table and display error message to users who are trying to go into change mode.

3. Set up this program as a step before and after the planning run to set and reset the indicator in z-table.


May be you have customize this for your requirement.


Thanks,

Ramesh


emani_raghavendra
Participant
0 Kudos

Hi Ramesh

Sorry it was a spell mistake.it is not FF Users. We have a list of users.

As we have  a list ff users whom we want to give display access to planning books while planning run is happening."

R

Rajnit

emani_raghavendra
Participant
0 Kudos



Hi Ramesh


Cna you share further details ? Which BADI have you implemented ? Was it /SAPAPO/SDP_INTERACT ?

ramesh_mahankali
Active Participant
0 Kudos

yes. that is the BADI.

emani_raghavendra
Participant
0 Kudos

HI Ramesh

But this BADI is getting applicable for all the users. How were you able to restrict to only few users ?

Regards

Ranjit

ramesh_mahankali
Active Participant
0 Kudos

Hi Ranjit,

Yes. if any user is allowed in change mode for the planning area, background job would fail. Display access will be available for all during this time.

Thanks,

Ramesh

Former Member
0 Kudos

Hi Ranjit

In our case we have locked the users before we start planning run we lock specific users to avoid any interface from these users into interactive planning book. Might be you can also try to following similar approach instead of locking the entire planning book.

Thanks and Regards

Amol

emani_raghavendra
Participant
0 Kudos

Hi Amol

Thanks for your quick reply. We dont want to lock out users completely as they should be able to have other functionalities like checking reports while our runs are hapening. We want to give display access to the planners instead of change access. We will just lock / disable the change access for the planners in interatcive planning.

Former Member
0 Kudos

Hi Ranjit

I am really not sure if it´s feasible because you either lock the users or lock the planning area (for all users) while executing the background planning run. I would be very much interested if you find any solution for it.

Thanks and Regards

Amol

emani_raghavendra
Participant
0 Kudos

Hi Amol

Yes you are right. we can achieve either planning area lock or user lock.

But , we partially achieved our requirement. We did by updating the User parameter in SU03 --  /SAPAPO/SDP94_D_MODE. We Developed a Z program , where in for the given User list the user parameter will be updated with " A ". Once the Planning runs are over it will update the parameter back to " I ". This worked for us, but the issue is , once the parameter is updated , User should re-login to APO to see the new function . But we don't want the user to relogin again.

Regards

Ranjit

Former Member
0 Kudos

Thanks for sharing insights but I don´t see it´s possible to update the parameter on the fly.

User require to log off system and again log in to have updated parameter working for them.

Thanks

Amol