Hi
I remember a BAdI which can possibly be utilized for this purpose, but couldn't recall its name. Did you search for that?
*--Serdar
Hi Maros
Just now I found it but unfortunately I think what I suggested was not appropriate for your task. It is not a BAdI, but a user-exit. The enhancement name is 'SUSR0001' and it can be utilized after user's logon for e.g to make customer-specific logon checks. It is likely to be called after successful logons I think.
But as a new suggestion. You may find locked users by a query on the table 'USR02'. If the field 'UFLAG' has a value other than the initial value, then the user is somehow locked.
Also, the function module 'SUSR_USER_LOCKSTATE_GET' retrieves the lock status of a user. Its output is in structure of "USLOCK" and shows the states for
WRNG_LOGON --> Locked because of wrong logon
LOCAL_LOCK --> Locked by admin
GLOB_LOCK --> Locked by global admin
For each field; 'L' = 'Locked' and 'U' = 'Unlocked'.
I think, you can schedule a job for a program utilizing the above technique for what you wanted to trigger in your question. I hope this can help you.
By the way, if you are still interested in BAdIs, you can study the course 'BC425 - Enhancements & Modifications'.
*--Serdar
Add a comment