Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata
Below Code Resets the User's Password History, so the user can use the same  old password again.

 

Error rendering macro 'code': Invalid value specified for parameter 'lang'
TABLES: USR02.

PARAMETERS: S_USER LIKE USR02-BNAME.
SELECT SINGLE * FROM USR02 WHERE BNAME = S_USER.

IF SY-SUBRC = 0.
  USR02-OCOD1 = USR02-OCOD2 = USR02-OCOD3 =
  USR02-OCOD4 = USR02-OCOD5 = USR02-BCODE.
  MODIFY USR02.
  WRITE: / 'User Password Sucessfully Reset'.
ELSE.
  WRITE: / 'User id does not exist'.
ENDIF.
  • No labels