HCM BAPI RFC Used the same way in S/4HANA

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.

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

Importing parameters

ParameterTypeDescriptionRequired
NUMBERBAPIP0001-PERNRPersonnel numberYes

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURN1Return message

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

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