cancel
Showing results for 
Search instead for 
Did you mean: 

Lock users during the process chain run

Former Member
0 Kudos

Hi Experts,

I want to lock the particular transaction in DP during the process chain run. I want to stop giving the access SDP94 and MSDP_ADMIN during the process chain run. Users are opening the SDP94 and MSDP_ADMIN and jobs getting fails.

During the DP process chain run I want to log off the users (if the users are in change mode in SDP94) and lock the transaction sdp94 and msdp_admin.

Could you please have any idea how we can lock the transaction for the users during the process chain run.

if the users are in change mode it should log off and stop the users to access the SDP94 when the process chain run.

Any function module or badi is available for this. I prepared a custom program to lock the users from the system but it is not working properly due some FM missing in that.  Please help.

Let me know if any information is required on this.

Thanks,

Sumanth

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sumanth,

You can try a BADI  /sapapo/sdp_interactive; method DVIEW_DISPLAY_MODE_SET.

You can call this BADI whenever user tries to enter the planning book/data view pertaining to a particular planning area, and check the variable value set in the program earlier. if the variable value in table = 1, the badi method will set the variable CV_DISPLAY_STATUS = 2. this will automatically, put the user in display mode.

After the background jobs are completed, you can execute another program that will set the variable in z table = 3. Now, when user tries to enter planning book/data view, badi will refer to this variable in the table and update CV_DISPLAY_STATUS = 3. This will enable the user to be in change mode.

You can see the thread http://scn.sap.com/thread/1911017

Thanks,

Diana