Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

password reset date and time

Former Member
0 Kudos
1,853

Hi,

In my report i need to pick up all the records for the users whose password is being reset and user did not logged on to the system for 24 hours.

what are the table fields that gives password reset time and date. and a table field that tells that user has logged on and changed the password first time.

5 REPLIES 5

Former Member
0 Kudos
282

Hi,

Check the Tables,

<b>USR01</b> User master record (run-time data)
<b>USR02</b> Logon data

<b>USR20</b> Date of last user master reorganisation
<b>USR40</b> Table for illegal passwords

Regards,

<b>AS</b>

dani_mn
Active Contributor
0 Kudos
282

Hi,

in transaction SE11 look for 'USR*'

you fill find all tables related to user information.

Regards,

dani_mn
Active Contributor
0 Kudos
282

Deleted

Former Member
0 Kudos
282

Please check table USR02 and you would be able to get the details about last logon date and time as well as date of last password change.

BNAME - Userid

TRDAT - Last Logon Date

LTIME - Last Logon Time

BCDA1 - Last Password Change Date.

Regards

Anurag

Message was edited by: Anurag Bankley

Former Member
0 Kudos
282

Hi Kartikey,

Consider this sample code. Does it suit your requirement.


REPORT  zztest_user                             .

DATA : it_data TYPE STANDARD TABLE OF usr02 WITH  HEADER LINE.

DATA : time TYPE sy-timlo,
       date TYPE sy-datlo.



date =  sy-datlo - 1.     "Password changed in last 24 Hrs
time =  sy-timlo - 24.    "User did not logged on to the system for 24 hours


SELECT * FROM  usr02
       INTO TABLE it_data
       WHERE  ltime       LE time    "Last logon time
       AND    pwdchgdate  GE date.   "Date of last password change

BREAK-POINT.

Regards,

<b>AS</b>