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 'com.atlassian.confluence.ext.code.render.InvalidValueException'
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