Fonction SAP BAPI_USR01DOHR_GETEMPLOYEE - Determine employee from user name

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BEGINDATE BAPIPAKEY-VALIDBEGIN D 8 SY-DATUM X
ENDDATE BAPIPAKEY-VALIDEND D 8 SY-DATUM X
ID BAPIUSR01-UNAME C 12 User name

Paramètre Reférence Type Long. Description
EMPLOYEENUMBER BAPIUSR01-EMPLOYEENO N 8 Object ID
RETURN BAPIRET2 u 548 Structure for Return Code

Functionality
You can use this method to determine an employees personnel number fromtheir user name.

Notes
Messages are returned in the RETURN parameter. In this parameter, youwill find the return values and their definitions.
The key codes used in this method are described in the parameter.

Description
You can find information on the object ID and its meaning in thecorresponding data element documentation: Object ID.

Description
Return code of method

Value range
In case of error, the structure will contain the following information:

  • Message type (TYPE field)

  • Message code (CODE field)

  • Message text (MESSAGE field)

  • If no error occurs, the field bar will remain blank.

    Description
    Start of validity

647504MSS: ESS-in-MSS