# BAPI_EMPLOYEE_ENQUEUE — Lock Employee

> Locks a personnel number so that no other user or program can change its HR master data at the same time. Call it before HR_INFOTYPE_OPERATION or the infotype BAPIs and release the lock with BAPI_EMPLOYEE_DEQUEUE. If RETURN contains an error, the employee is already locked by someone else.

- Modules: HCM
- Type: BAPI
- Function group: 1065
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-employee-enqueue/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPIP0001-PERNR | Personnel number | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN1 | Return message |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
  EXPORTING
    number = lv_number
  IMPORTING
    return = lv_return.
```


