We have developed a user provisioning application for SAP HR.
We want a user's password history and "Date of last password change" fields updated when a user's password is changed. However, the application changes the password as the SAP admin, not as the SAP user. This is a problem because the SAP BAPI calls that we are using, do not allow an SAP admin to update these fields on behalf of another user.
Is there some API available that will allow an SAP admin to change a user's password (and related fields) on behalf of that user. What APIs are used when an SAP user changes his password from the SAP GUI? Can these APIs be used in this case?
Also, is there a programmatic way for a user to change his own password?
Thanks
Hi,
May be this gives u some clue.
Regards,
Satya
REPORT Z_PASSWORD_RESET.
This program resets the password of a user
DATA: CODE(8) VALUE 'initpass'.
TABLES: USR02.
PARAMETERS: P_NAME LIKE USR02-BNAME OBLIGATORY.
SELECT SINGLE * FROM USR02
WHERE BNAME = P_NAME.
IF SY-SUBRC = 0.
PERFORM SET_NEW_PASS IN PROGRAM SAPMS01J
USING USR02-BNAME
CODE
CODE.
ENDIF.
Add a comment