Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Lockout (Admin vs User)? 1

Status
Not open for further replies.

cpjust

Programmer
Sep 23, 2003
2,132
US
Hi,
I'm testing a SAP RFC program for user maintenance on SAP (i.e. Change Password, Lock/Unlock User).

I know that SAP has a way to distinguish between a user who has been Locked by the Administrator and a User who has locked themself out by entering the wrong password too many times, because the User panel in the SAP GUI displays different reasons for the lockout.
However, in the SAP Identity Management API document, the only commands for User Lock/Unlock that I can see are:
BAPI_USER_LOCK
BAPI_USER_UNLOCK

So, what I'd like to know is how do I unlock a user who was locked because of too many bad passwords, but not when the Admin locked them out? or even, how can I tell which type of lockout was applied to that user?
 
have a look at table USR02:

UFLAG = 0 : not locked
UFLAG = 64 : locked by administrator
UFLAG = 128 : locked because of wrong password
 
Thanks! That sounds like exactly what I need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top