Skip to Content
author's profile photo Former Member
Former Member

Trigger an event when user gets locked due to incorrect password


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


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 15, 2004 at 05:16 PM


    I remember a BAdI which can possibly be utilized for this purpose, but couldn't recall its name. Did you search for that?


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2004 at 09:57 PM

    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'.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.