Fonction SAP BAPI_USER_PROFILES_ASSIGN - Change User-Profile Assignments

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 BAPIPROF 74 Profiles
RETURN BAPIRET2 548 Return structure

Functionality
The profile assignments for user USERNAME are passed in a table calledPROFILES. All existing assignments are overwritten with the assignmentsin the table. This also means that existing assignments can be deletedif they are no longer contained in the table. Only the fieldPROFILES-PROFILE must be filled.

Example
The user has the profiles
PROFILE1
PROFILE2
PROFILE3
You want to
delete PROFILE1 and
add PROFILE4.
Pass the PROFILES table with the following contents:
PROFILE2
PROFILE3
PROFILE4
INCLUDE SU_USERNAME OBJECT DOKU ID TX LANGUAGE EN
INCLUDE SU_PROFILES OBJECT DOKU ID TX
INCLUDE SU_RETURN OBJECT DOKU ID TX LANGUAGE EN