cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger an event when user gets locked due to incorrect password

Former Member
0 Kudos

Hi,

does anybody have an idea how to accomplish this?

Since I believe that there is more than one way to do it, could you, please, also suggest which one you think is the best and why?

Best regards

Momkic

Accepted Solutions (0)

Answers (2)

Answers (2)

ssimsekler
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Serdar,

I did the program (just select on usr02) and scheduled it in the background until "I" find more inteligent solution. User exit would be great, but this one kicks in after user has successfully logged on whilst I need something that is called right after u-name/psswd check - something like audit, that records incorrect logon attempts.

But anyway thank you for all the hints and nkowledge of your juicy brain you shared with me.

Best regards

Momkic

ssimsekler
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

I have not searched for BAdI - mainly because I have not worked with it yet. I only know the transaction codes SE18-9 and have started reading just a moment ago.

Thanks

Momkic