Fonction SAP BAPI_EMPLOYEET_CHANGEPASSWORD - Change employee password

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
NEW_PASSWORD BAPIUID-PASSWORD C 16 New password
NUMBER BAPIEMPL-PERNR N 8 Personnel number
PASSWORD BAPIUID-PASSWORD C 16 Password (max. 16 charac.)
VALIDITYBEGIN BAPIPAKEY-VALIDBEGIN D 8 Key field for object EmployeeT
VERIFY_PASSWORD BAPIUID-PASSWORD C 16 Verify new password

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Structure for return code

Functionality
You can use this method to change an employee's password. The codedpassword is stored in the central table BAPIUSW01.

Notes
Messages are returned in the parameter RETURN. This parameterdocumentation contains the return codes and their meanings.

Description
Return code for the method

Value range
In case of an error, this structure contains the following information:

  • Message type (TYPE field dictionary data type: CHAR (field
  • length 1)
    • Message code (CODE field) dictionary data type: CHAR (field
    • length 5)
      • Message text (MESSAGE field), dictionary data type: CHAR (field
      • length 220)
        If the action is successful, the structure is set to the initial value.

        Value range
        Dictionary data type: CHAR (field length 16)

        Description
        For information on the personnel number, read the relevant data elementdocumentation: Personnel number.

        Value range
        Dictionary data type: NUMC (field length 8)

        Value range
        Dictionary data type: CHAR (field length 16)

        Description
        This method can be called for two different objects, namely forEmployeeAbstract(BUS1065) and EmployeeT(Employee). The key fields ofthese two methods differ; EmployeeT has an additional key field for thestart date.
        For technical reasons, the date is an import parameter of this method.The function is not influenced by the parameter.

        Value range
        Dictionary data type: CHAR (field length 16)