Fonction SAP BAPI_USER_SYSTEM_ASSIGN - Change User-System Assignments in Central CUA System

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

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Parameter
SYSTEMS BAPIRCVSYS 10 BAPI Structure for CUA Target Systems

Functionality
You can use the System Assign method to change the system assignmentsfor a user.
The system assignments for the user USERNAME are transferred in a tablecalled SYSTEMS.
All existing system assignments are overwritten by the assignmentscontained in the table. This also means that existing system assignmentsare deleted if they are no longer contained in the table.
You only need to fill the field SYSTEMS - SUBSYSTEM.
If the user still has role or profile assignments for systems in whichit is to be deleted, these are also deleted from the user master record.
If the authorization check for assignment or removal of systems fails,the affected systems are removed from the SYSTEMS table. The returntable contains messages about this of type 'E'.

Example
The user has the following system assignments
SYSTEM1
SYSTEM2 with ROLES and PROFILES
SYSTEM3
You want to remove the systems
SYSTEM1 und SYSTEM2
and add the system
SYSTEM4.
Pass the table SYSTEMS with the following content:
SYSTEM3
SYSTEM4
The user is then given the following system assignments :
SYSTEM3
SYSTEM4

Description
User name

Description
Return table of issued messages.

Description
Table of all system assignments of a user