Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Auto Log Off Time

gaurang_gujar
Contributor
0 Likes
1,615

Hello experts,

I want to capture the auto log off time for the user.I cannot even debug the same since it is idle session time out.

If i get the code I can put some enhancement to capture the log off time.

Request you to please help me with auto log log off program.

Regards,

Gaurang

11 REPLIES 11
Read only

PeterJonker
Active Contributor
0 Likes
1,189

I think you just can ask your basis administrator what time did he set for auto log off in the system parameters.

Read only

Former Member
0 Likes
1,189

Hello Gaurang,

Check the parameter  rdisp/gui_auto_logout ,it displays the number of seconds the user can be inactive after which the user gets logged off automatically.

Regards,

Laxman

Read only

sourabhchordiya
Explorer
0 Likes
1,189

Hi Gaurang,

This behavior is controlled by rdisp/gui_auto_logout and it is the responsibility of dispatcher to remove idle sessions . What is the requirement for which you want to capture this ?

Regards,

Sourabh

Read only

0 Likes
1,189

Hi Sourabh,

I want to capture the log off time when the user logs off automatically.

Regards,

Gaurang

Read only

Former Member
0 Likes
1,189

Hi Gaurang,

Will you please make it clear if you want the time between idle session and auto log off or the time when system was auto logged off?

Regards,

PS

Read only

0 Likes
1,189

Hi Purshotam,

I want the time Stamp when the user logs off either manually or automatically.

I have captured the time when user presses the exit button now I also want to capture the time stamp when the uses is logged of automatically because of Idle session.

Regards,

Gaurang

Read only

0 Likes
1,189

Hi Gaurang,

Please try following code.

DATA: lv_field(100).

CONSTANTS: parameter LIKE tpfet-parname

VALUE 'rdisp/gui_auto_logout'.

CALL 'C_SAPGPARAM' ID 'NAME' FIELD parameter

     ID 'VALUE' FIELD lv_field.

IF sy-subrc EQ 0.

   WRITE lv_field.

ENDIF.

Regards,

PS

Read only

0 Likes
1,189

Hi Purushottam,

I want to get the  system time stamp when an User is automatically logged off and not set or get parameter rdisp/gui_auto_logout.

Is this feasible ?

Regards,

Gaurang

Read only

0 Likes
1,189

Gaurang, it is easier to handle this the Basis way. try this:

go to RZ10

rsau/enable: Set to 1 to activates audit logging

rsau/local/file: Name and location of the audit log file

rsau/max_diskspace/local: Max. space of the audit file.

If maximum size is reached auditing stops.

or Tcode ST03/ST03N --> Workload--> double click on Total(f u have more than one message server)--> Analysis View--->User and Settlement Statistic --> User Profile --> and double click on user name you want to analyze

Hope this helps.

~Vimal

Read only

0 Likes
1,189

Hello Gaurang,

If the Security audit is enabled in your system(parameter rsau/enable is equal to 1), then you can get the log in details and log off details of the user from the security audit logs(transaction SM20)

Regards,

Laxman

Read only

ThomasZloch
Active Contributor
0 Likes
1,189

I doubt that there is an ABAP stack based exit point for this purpose. I remember that (auto) log offs are captured in the security audit log (if this is activated), maybe also in the system log or other places. I guess your best bet is to speak to the system administrator about where log off information is recorded, then you can look for ways to collect this information retrospectively.

Thomas