HCM Function module RFC Used the same way in S/4HANA

HR_EMPLOYEE_ENQUEUE Lock Employee (HR)

Locks a personnel number for HR master data maintenance and, if the lock fails, returns the user who holds it in LOCKING_USER. It is used in custom maintenance programs that need to tell the user who is blocking the record. Release the lock with HR_EMPLOYEE_DEQUEUE.

Function group
1065
Remote-enabled (RFC)
Yes
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
NUMBERBAPIP0001-PERNRPersonnel numberYes

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message
LOCKING_USERSY-UNAMEUser holding the lock

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
  EXPORTING
    number = lv_number
  IMPORTING
    return = lv_return
    locking_user = lv_locking_user.

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report