03-24-2024 9:34 AM - edited 03-25-2024 4:11 AM
Hi Everyone,
I want to unlock user & password reset automatically as a lot of such request come to our SAP maintenance team every day. I found useful FM for user unlock and initialize password. They work to satisfy my requirement.
BAPI_USER_UNLOCK --> Unlock user
BAPI_USER_CHANGE --> Set initial password
However I need to update last logon date ( TRDAT ) of USR02 as background job is running on our system. It is designed to check last logon date ( TRDAT ) of all dialog users except system users and if user has not logged on SAP system over 30 days, locks user. It is running on 7:00 AM everyday.
So I need to update ( set same date as sy-datum ) TRDAT after unlock & password initialized.
As mentioned in below note changing TRDAT of USR02 seems to be prohibited & there is no FM to do it.
"2718543 - Can the fields from USR02 table be modified?"
2718543 - Can the fields from USR02 table be modified? - SAP for Me
When user try to logon by initial password, system prompts to change password. At this point, TRDAT will be updated. So I imagine there is possibility to update TRDAT using logon simulating FM.
Is there any idea ?
I found out FM which enable to update TRDAT same as sy-datum. However as updating TRDAT is prohibited by attached note officially. I refrain to do it.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.