Ansicht
Dokumentation

PRGN_RFC_ADD_AGRS_TO_COLL_AGR - Add Single Role Assignments to a Composite Role

PRGN_RFC_ADD_AGRS_TO_COLL_AGR - Add Single Role Assignments to a Composite Role

Addresses (Business Address Services)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

Features

The function module assigns additional single roles to a composite role and then automatically compares the indirect user assignments for the newly assigned single roles. Depending on the Customizing settings of the system and client, and the module call, other follow-on actions are possible:

  • If changing a role means that it is automatically written to a Customizing request, because the Customizing switch CLIENT_SET_FOR_ROLES in table PRGN_CUST is set to YES, and automatic recording for client-specific objects is selected in transaction SCC4, all assigned single roles are written to the same request as the composite role.
  • If the module is called with PROFILE_COMPARISON = 'X', the profile comparison is performed automatically for the newly assigned single roles.

Requirements

The function module call fails completely if the following conditions are not all met:

  • The role transferred under the parameter AGR_NAME must be a composite role.
  • The executing user must have authorization to change the composite role (object S_USER_AGR, ACTVT = 02).
  • The composite role must not be locked by another user.
  • If automatic role recording is active (see above), the composite role must be successfully written to a transport request.

If one of these checks or actions fails, the module call is terminated with an exception. Each exception is linked to an error message, which is also written to the RETURN table.

The automatic recording of the single roles contained in the composite role is independent of the recording of the composite role, and is therefore not a prerequisite for processing the composite role.

Problems during the comparison of the user assignments only lead to warnings in the RETURN table.





Parameters

ACTIVITY_GROUP
ACTIVITY_GROUPS
CHECK_NAMESPACE
ENQUEUE
NEW_REQUEST
NO_DIALOG
PROFILE_COMPARISON
REQUEST
RETURN

Exceptions

ACTIVITY_GROUP_DOES_NOT_EXIST
ACTIVITY_GROUP_ENQUEUED
AUTHORITY_INCOMPLETE
NAMESPACE_PROBLEM
NOT_AUTHORIZED
NO_COLLECTIVE_ACTIVITY_GROUP

Function Group

PRGN_CATT

BAL Application Log Documentation   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3072 Date: 20240523 Time: 142930     sap01-206 ( 58 ms )