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

BAPI_USER_UNLOCK Unlock User

Removes the administrator lock of a user and the lock caused by failed logon attempts. Self-service password and unlock applications and identity management interfaces use it. It does not reset the password; it requires S_USER_GRP authorization and the result is returned in the RETURN table.

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

Importing parameters

ParameterTypeDescriptionRequired
USERNAMEBAPIBNAME-BAPIBNAMEUser nameYes

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRET2Return messagesYes

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_USER_UNLOCK'
  EXPORTING
    username = lv_username
  TABLES
    return = lt_return.

Related tables

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