Fonction SAP BAPI_USER_DELETE - Delete User

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
USERNAME BAPIBNAME-BAPIBNAME C 12 User Name

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Structure

Functionality
The method deletes the user USERNAME.
The user assignments (to systems, profiles, roles) are also deleted.

Notes
The method is fully integrated into Central User Administration (CUA).
Depending on the system status, the method behaves as follows:

  • Central System of a CUA

  • The user is completely deleted. A DELETE IDoc IDoc is sent to all childsystems to which the user is assigned.
    • Child System of a CUA:

    • The system assignment for the child system is deleted directly in thecentral system with the method BAPI_USER_SYSTEM_ASSIGN. The user is thendeleted asynchronusly in the child system using an IDoc byredistribution of the deletion. For this to be possible, it is vitalthat the method BAPI_USER_SYSTEM_ASSIGN exists in the CUA centralsystem. If this prerequisite is not fulfilled, the action isinterrupted. The user is not deleted.
      • Standalone System

      • The user is deleted.
        INCLUDE SU_USERNAME OBJECT DOKU ID TX
        INCLUDE SU_RETURN OBJECT DOKU ID TX