cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic logoff of Users working in Planning Book

former_member281429
Discoverer
0 Kudos

Hello,

I need a solution for Demand Planning to automatically logoff all Users who are working in change mode in the planning book. Otherwise it is not possible to run a process chain directly without locking it.

Many thanks for your proposals?

Regards,

Stefan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Here is what will solve your problem:

Before running the process chain you need to first delete all lock entries on the planning area and then lock the planning area yourself so noone else can lock it while the job is running. You can accomplish this by:

a). Read the lock entries using function module ENQUEUE_READ.

b). Delete the lock entries using function module : TH_DELETE_USER

c). Lock the planning area by using

BAPI /SAPAPO/IF_EX_SDP_INTERACT~DVIEW_DISPLAY_MODE_SET

This will definitely solve your requirements.

Moreover before deleting the User Entries you can display a message to all users asking them to save and exit Planning Boojks in around 10 mints eklse their session will be terminated.

Regards,

Abhi

former_member281429
Discoverer
0 Kudos

Hi Abhi,

sorry for the late reply. Thank you very much for your detailed information.

I will check it now. Maybe, I will come back to you with some questions.

Many thanks,

Stefan

Former Member
0 Kudos

Stefan Merkel,

I am not sure if such "forced log-out" is a good practice. I guess this will still keep the data locked, as this not a clean exit.

Generally all such updates happen as a job scheduled to run late night also other users are locked during.

BR,

SB