Skip to Content
author's profile photo Former Member
Former Member

USR02 table edits

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 10:34 AM

    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
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2004 at 12:14 AM

    Hi Satya,

    Thanks for the reply. How does this translate to jco?

    -Vu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.