Fonction SAP BAPI_USER_LOCPROFILES_ASSIGN - Change User-Profile Assignments in CUA Central System

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
PROFILES BAPILPROF 84 Profiles for the Dependent Systems
RETURN BAPIRET2 548 Return Structure

Functionality
The profile assignments for user USERNAME are transferred in tablePROFILES. The assignments in the table overwrite any existingassignments. This also means that any assignments no longer in thetable will be deleted. This requires only the PROFILES-PROFILE field befilled.

Example
The user has the profiles:

  • PROFILE1

  • PROFILE2

  • PROFILE3

  • You want to:
    • Remove PROFILE1

    • Add PROFILE4

    • Transfer the table PROFILES with the following contents:
      PROFILE2
      PROFILE3
      PROFILE4
      INCLUDE SU_USERNAME OBJECT DOKU ID TX
      INCLUDE SU_PROFILES OBJECT DOKU ID TX
      INCLUDE SU_RETURN OBJECT DOKU ID TX