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

Logout SAP Automatically

Former Member
0 Likes
632

Dear Experts,

What setting i need to do for automatically logging out from sap after 20 minutes for a particular user. Might sounds like a basis job, however reply if u got some answers to share.

Thanks in Advance

Senthil

Dear Experts,

What setting i need to do for automatically logging out from sap after 20 minutes for a particular user. Might sounds like a basis job, however reply if u got some answers to share.

Thanks in Advance

Senthil

3 REPLIES 3
Read only

Former Member
0 Likes
575

Customization of auto logout is done by the basis consultant.

Read only

sridhar_k1
Active Contributor
0 Likes
575

Assign 20 min to Profile parameter rdisp/gui_auto_logout in tx RZ10.

REgards

Sridhar

Read only

Former Member
0 Likes
575

here is the program to do that task. i havent tested this yet.

you create this program and assign this to a background JOB to start at a particular time.To test, you can goto SE37, and TEST the function module.

hope this will give you some idea.

REPORT  ZSRIM_TEMP8.
data : v_user type sy-uname.

 v_user = 'give user name'.      
 
CALL FUNCTION 'TH_DELETE_USER'
  EXPORTING
    USER                   = v_user
    CLIENT                 = sy-mandt
*   ONLY_POOLED_USER       = ' '
*   TID                    = -1
 EXCEPTIONS
   AUTHORITY_ERROR        = 1
   OTHERS                 = 2
          .
IF SY-SUBRC <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.