|
Blogs
Introduction: Users log in SAP R/3 system by providing userid and password. If they enter wrong userid or password an error message ''Name or password is incorrect(repeat logon)''appears in the taskbar prompting user to provide correct userid and password. The number of incorrect logon attempts is determined by value of profile parameters which are used to define password and logon rules. The profile parameter login/fails_to_user_lock defines the number of unsuccessful logon attempts before the system locks the user. By default, the lock applies until midnight. Default value: 12; permissible values: 1 -99. The basis team will set the value for this parameter. The userid will be locked once the maximum number of incorrect logon attempts is exceeded. Normally user has to manually inform the basis user to unlock his userid. Here we will see how an automatic notification mail is sent to basis user once the userid gets locked. Step 1: Log in into SAP R/3. Enter the user id and password. Enter wrong userid and password in order to lock the user. We are doing this so that automatic mail will be sent to basis user. An error message will be displayed as below.
Step 2: Once the maximum number of incorrect logon attempts exceeds an error message appears in task bar as below. This will automatically trigger a mail to basis user informing them that userid is locked.
Step 3: In order to trigger a mail create a report in SE38 Tcode. Give the code for report as below.
REPORT zuser_lock. Step 4: Schedule the report in background. This is done so that the report executes repeatedly in background as per the scheduled time interval. Once the userid gets locked this report which runs in background will automatically send a mail to basis user. For scheduling go to SA38 Tcode. Enter the report name and click schedule button. Step 5: In the next screen enter inputs for job name, start date, time as below.
Step 6: To schedule the report periodically click schedule periodically button. A popup appears as below. Choose the required time interval.
Step 7: Now once the user id gets locked, a mail is automatically sent to Business Workplace (SBWP Tcode)of basis user as below. Step 8: In above example mail is sent to only one basis user. The same mail can be sent to any number of basis users by specifying their user ids in receiver list. The mail can be sent to Internet address, shared distribution list etc. In the documentation of Function module SO_NEW_DOCUMENT_SEND_API1 all possible options are given.
bharath padmanabhan is a workflow and abap cosultant for Kaar Technologies India Pvt Ltd
| |||||||||||||||||||||||