2010 Aug 27 10:50 AM
Hello, Experts!
How can i get idle time for current session in ABAP report? Is it possible?
2010 Aug 27 1:53 PM
I find preferable to perform the idle time check in your program itself, in your program (instance which locked an object) you can release the lock after a certain idle time.
Use class cl_gui_timer for this, there are [samples in the wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=gui_timer&searchQuery.spaceKey=conf_global] which refresh the screen, just adapt to your requirement (e.g. store timestamp when performing any action - module in the PAI of program dynpro - compare with current timestamp in event raised by the timer class, leave transaction or release object and leave to initial screen of transaction if more than 5 mn have elapsed) (put a status message to inform the user why he was dropped from transaction)
If you want to release the lock only if another user want it, the second user program should write the rescues somewhere (database table ?) and the event raised by the timer will check this table for existence of a request for the same record.
Regards,
Raymond
2010 Aug 27 10:57 AM
Hi
Just check if you can get some idea from transaction AL08 & SM50.
Regards
Abhii
2010 Aug 27 11:21 AM
Hi
Try with TCODE: ST03G and SAP Report SAPWL_ST03G
hope this will help you..
Regards,
kiran
2010 Aug 27 11:24 AM
Hi,
Logging off the inactive users is not set up by default. Setting up the feature of logging off the users improves the security as unattended terminals do not stay active indefinitely.
To activate automatic logging off, do the following:
Go to Profile Maintenance by choosing Tools --> CCMS --> Configuration --> Profile Maintenance or the transaction RZ11.
Maintain the parameter rdisp/gui_auto_logout. Enter the required number of seconds of inactivity before the user is logged off automatically.
To deactivate automatic logoff, delete the parameter from the profile(s) or set the value '0'.
cheers,
bhavana
Moderator message: copy/paste without credit, please do not repeat, might lead to account deletion!
http://www.google.com/search?hl=en&source=hp&q=%22Toactivateautomaticloggingoff%22
Edited by: Thomas Zloch on Aug 27, 2010 2:37 PM
2010 Aug 27 1:23 PM
Thanks for your answers!
I'll check these transactions.
>>>> To Bhavana Amar
Thank you!
But it can`t help me I'll try to describe my situation - i have a Z transaction who locked objects (it`s a mandatory condition). I have a idea logoff User1 session when transaction starts by User2 if idle time first session more then 5 minutes. And i can`t setup standart auto logoff becouse 5 minutes it`s so little time to other standart transaction.
Maybe can i setup auto logoff only on there is transaction (Z)?
2010 Aug 27 1:53 PM
I find preferable to perform the idle time check in your program itself, in your program (instance which locked an object) you can release the lock after a certain idle time.
Use class cl_gui_timer for this, there are [samples in the wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=gui_timer&searchQuery.spaceKey=conf_global] which refresh the screen, just adapt to your requirement (e.g. store timestamp when performing any action - module in the PAI of program dynpro - compare with current timestamp in event raised by the timer class, leave transaction or release object and leave to initial screen of transaction if more than 5 mn have elapsed) (put a status message to inform the user why he was dropped from transaction)
If you want to release the lock only if another user want it, the second user program should write the rescues somewhere (database table ?) and the event raised by the timer will check this table for existence of a request for the same record.
Regards,
Raymond
2010 Aug 27 6:19 PM
2010 Aug 27 6:24 PM
The best idea - control everyone actions in a Z transaction and save last activity timestamp