on 10-15-2008 1:26 PM
All,
I need you peoples support in doin this. Actually i'm trying to trigger a workflow when user types wrong password thrice and the user gets locked.
Can anyone tell me in doin that ?
Thanks and regards,
Suseendran
Hi!
Once the user have incorrectly entered password thrice times , a message will appear.Capture that message class and area with which using SWUY transaction code ,you can make a workflow to trigger.
Regards,
S.Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to create a custom event " UserLocked " by customizing "USER" business object.
In SWEC, use USR02 table where you have fields for LOCNT (Incorrect logon attempts) or UFLAG (User Lock Status).
You can use LOCNT change value and check in check function module if it is greater than 3 and UFLAG is 128 then raise no exception and trigger your workflow.
Hope this helps.
Thanks,
Sudhir.
Hello Suseendran,
Create a custom business object 'ZUSER' by copying the USER business object.
Create a event in 'ZUSER' as "UserLocked".
Delegate the BO 'ZUSER' to 'USER'.
Use a Userexit "SUSR0001-EXIT_SAPLSUSF_001" to trigger the workflow.
sy-uname will have the username value.
By using it go to USR02 table and get that record. for eg: T_USER
Now compare T_USER-LOCNT = 3 AND T_USER-UFLAG = 128.
If true, trigger the workflow by using "SAP_WAPI_CREATE_EVENT"
DATA: event_object_key LIKE sweinstcou-objkey.
CONSTANTS:
c_zuserwf LIKE sweinstcou-objtype VALUE 'ZUSER_WF', --> Worklfow name
c_UserLocked LIKE sweinstcou-event VALUE 'UserLocked'.
event_object_key = sy-uname.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
object_type = c_zuserwf
object_key = event_object_key
event = c_UserLocked
commit_work = ' '.
will trigger your worklfow and it will process through your custom workflow.
Remember to have the "UserLocked" event in the triggering event of worklfow.
Thanks,
Sudhir.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.