# BAPI_EMPLOYEE_DEQUEUE — Unlock Employee

> Releases the lock on a personnel number set by BAPI_EMPLOYEE_ENQUEUE. Call it after every infotype update, also in error branches, so locks do not stay open until the program ends. Check RETURN.

- 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-dequeue/

## 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_DEQUEUE'
  EXPORTING
    number = lv_number
  IMPORTING
    return = lv_return.
```


