SAP Function BAPI_USER_LOCK - Lock User

Parameter Reference Type Length Default Optional Text
USERNAME BAPIBNAME-BAPIBNAME C 12 User Name

Parameter Reference Length Optional Text
RETURN BAPIRET2 548 Return Structure

Functionality
Method Lock locks user USERNAME from logging onto the system.

Notes
You can unlock user USERNAME with the method Unlock.
The method is fully integrated into central user administration.
If the method is called in a sytem that belongs to a group for centraluser maintenance, the method behaves accordingly.
If the method is called in the central system of this type of systemgroup, this triggers user distribution.
The user is also locked in the child systems.
The prerequisite for this is that the field maintenance attributes(Transaction SCUM) are set.
INCLUDE SU_USERNAME OBJECT DOKU ID TX
INCLUDE SU_RETURN OBJECT DOKU ID TX