Fonction SAP BAPI_USER_LOCACTGROUPS_ASSIGN - Change User-Role Assignments in CUA Central System

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DISTRIBUTE_CHANGE_ONLY CHAR01 C 1 SPACE X Character Field Length 1
INCL_HR_ASSIGN CHAR01 C 1 SPACE X Character Field Length 1
NO_DB_UPDATE BAPI_NCOMT C 1 SPACE X Database is to be updated
USERNAME BAPIBNAME-BAPIBNAME C 12 User Name

Paramètre Reférence Long. Facultatif Description
ACTIVITYGROUPS BAPILOCAGR 137 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

1629618Wrong State of SetABAPRole&ProfileForUser Pass