Fonction SAP BAPI_EMPPERSID_APPROVE - Unlock Personal-ID details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EMPLOYEENUMBER BAPIP0185-EMPLOYEENO N 8 Personnel number
LOCKINDICATOR BAPIP0185-LOCKINDIC C 1 Lock indicator for HR master record
NOCOMMIT BAPI_STAND-NO_COMMIT C 1 X COMMIT control at BAPI interface
OBJECTID BAPIP0185-OBJECTID C 2 Object identification
RECORDNUMBER BAPIP0185-RECORDNR N 3 Number of infotype record
SUBTYPE BAPIP0185-SUBTYPE C 4 Subtype
VALIDITYBEGIN BAPIP0185-VALIDBEGIN D 8 Valid from date
VALIDITYEND BAPIP0185-VALIDEND D 8 Valid to date

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

Functionality
You can use this method to unlock a Personal-ID record (0185).
It enables you to implement the "double verification principle" inconjunction with the REQUEST method. According to this principle, atleast two users must take part in writing an active record to thedatabase. One user creates a locked record using the REQUEST method.The other user unlocks or 'activates' this record using the APPROVEmethod.

Notes
Messages are transferred to the RETURN parameter. The relevantparameter documentation contains the return values and their meanings.
The key fields used by the method are described in the parameterdocumentation.
You can use this method only if you have called the ENQUEUE method ofthe business object EMPLOYEE beforehand. For more information onthe ENQUEUE method, read the documentation on the function moduleBAPI_EMPLOYEE_ENQUEUE.
For more information on the REQUEST method, read the documentation onthe function module BAPI_EMPPERSID_REQUEST.

Description
Return code of the method

Value range
If an error occurs, the structure contains the following information:

  • Message type (TYPE field)

  • Message code (CODE field)

  • Message text (MESSAGE field)

  • If the method is successful, the structure is initial.

    Description
    For information on the meaning of the personnel number, see the relevantdocumentation for the data element: Personnel Number.

    Description
    For information on the meaning of the lock indicator for the HR masterdata record, see the relevant documentation for the data element:Lock Indicator for HR Master Data Record.

    Description
    For information on the meaning of the COMMIT control, see the relevantdocumentation for the data element: COMMIT control atBAPI interface.

    Description
    For information on the meaning of the object identification, see therelevant documentation for the data element: ObjectIdentification.

    Description
    For information on the meaning of the number of an infotype record withthe same key, see the relevant documentation for the data element:Number of Infotype Record with Same Key.

    Description
    For information on the meaning of the subtype, see the relevantdocumentation for the data element: Subtype.
    INCLUDE VALIDITYBEGIN OBJECT DOKU ID TX
    INCLUDE VALIDITYEND OBJECT DOKU ID TX