SAP ABAP Class CL_CRM_UI_ROLE_ASSIGN (Assign PFCG roles to user)
Hierarchy
WEBCUIF (Software Component) SAP Web UI Framework
   CA-WUI-APF (Application Component) Application Frame
     CRM_BSP_UI_FRAME_CORE (Package) Application Frame DDIC, Services and Utilities
Properties
Class CL_CRM_UI_ROLE_ASSIGN  
Short Description Assign PFCG roles to user    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package CRM_BSP_UI_FRAME_CORE   Application Frame DDIC, Services and Utilities 
Created 20060418   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_CRM_UI_ROLE_ASSIGN has no interface implemented.
Friends
Class CL_CRM_UI_ROLE_ASSIGN has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 APPL_LOG Instance attribute Private Object reference (TYPE REF TO) CL_CRM_UI_ROLE_LOG Role assignement log 20060419
2 GR_PROFILE_DETERM Instance attribute Private Object reference (TYPE REF TO) CL_CRM_UI_PROFILE_DETERM Profile determination 20060418
3 GT_PROFILE Instance attribute Private Type reference (TYPE) TY_PROFILE_TAB Business role 20060418
4 GV_CENTRAL_SYSTEM_CLNT Instance attribute Private Type reference (TYPE) SYMANDT Client ID of Current User 20081203
5 GV_CENTRAL_SYSTEM_LOGSYS Instance attribute Private Type reference (TYPE) RFCSENDSYS RFC sending system 20081128
6 GV_CENTRAL_SYSTEM_RFC_DEST Instance attribute Private Type reference (TYPE) RFCDEST Logical Destination (Specified in Function Call) 20081128
7 GV_CENTRAL_SYSTEM_SYSID Instance attribute Private Type reference (TYPE) SYSYSID Name of the SAP System 20081203
8 GV_FRW_PFCG_ROLE Instance attribute Private Type reference (TYPE) AGR_NAME Framework PFCG role 20060915
9 GV_MODE Instance attribute Private Type reference (TYPE) CHAR1 Modus (0=Update, 1=Sim, 2= Check) 20060421
10 GV_OWN_LOGSYS Instance attribute Private Type reference (TYPE) LOGSYS Logical system 20081201
11 GV_SET_ROLES_GLOBALLY Instance attribute Private Type reference (TYPE) ABAP_BOOL Flag: update roles in CUA central system 20081202
Methods
# Method Level Visibility Method type Description Created on
1 ASSIGN_PFCG_ROLES_TO_USER Instance method Public Method Assign PFCG roles to user 20060418
2 CONSTRUCTOR Instance method Public Constructor Constructor 20060418
3 DETERMINE_NEW_PFCG_ROLES Instance method Public Method Determine new PFCG role for assignment to user 20060418
4 GET_BUSINESSROLES_FOR_USER Instance method Public Method Get Business roles for user 20060418
5 GET_CORRESPONDING_PFCG_ROLES Instance method Public Method Get corresponding PFCG role for a business role 20060418
6 GET_CUA_STATUS Static method Public Method Get status of CUA configuration 20081126
7 GET_USER_PFCG_ROLES Instance method Public Method Get PFCG roles assigned to user 20060418
8 IS_PFCG_ROLE_UIU_RELEVANT Instance method Public Method Is PFCG role UIU relevant? 20060418
9 PFCG_ROLE_LOG Instance method Public Method PFCG role log 20060428
10 PROCESS Instance method Public Method Process users according selection 20060424
11 PROCESS_USER Instance method Public Method Process user 20060418
Events
Class CL_CRM_UI_ROLE_ASSIGN has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_BAPIAGR_TAB Public See coding Table of activity groups (PFCG roles) 20060421 ty_bapiagr_tab TYPE STANDARD TABLE OF bapiagr
2 TY_BAPILOCAGR_TAB Public See coding Table of activity groups (PFCG roles) 20081201 ty_bapilocagr_tab TYPE STANDARD TABLE OF bapilocagr
3 TY_BAPIUSNAME_TAB Public See coding Table type for BAPIUSNAME 20060424 ty_bapiusname_tab TYPE STANDARD TABLE OF bapiusname
4 TY_PFCG_ROLE_NAME Public See coding PFCG role name 20060422 BEGIN OF ty_pfcg_role_name, pfcg_role TYPE agr_name, flag TYPE char1, END OF ty_pfcg_role_name
5 TY_PFCG_ROLE_NAME_TAB Public See coding Table of PFCG role names 20060422 ty_pfcg_role_name_tab TYPE STANDARD TABLE OF ty_pfcg_role_name
6 TY_PROFILE_NAME_TAB Public See coding Table of business role names 20060418 ty_profile_name_tab TYPE STANDARD TABLE OF crmt_ui_profile
7 TY_PROFILE_TAB Public See coding Table of profiles 20060418 ty_profile_tab TYPE STANDARD TABLE OF crmc_ui_profile
Method Signatures

Method ASSIGN_PFCG_ROLES_TO_USER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_ACTGR_NEW Call by reference Type reference (TYPE) TY_BAPIAGR_TAB PFCG roles have to be assigned to user 20060418
2 Importing IT_CUA_ACTGR_NEW Call by reference Type reference (TYPE) TY_BAPILOCAGR_TAB Table of activity groups (PFCG roles) 20081201
3 Importing IV_USER_NAME Call by reference Type reference (TYPE) BAPIBNAME-BAPIBNAME User Name in User Master Record 20060418
# Exception Resumable Description Created on
1 FAILED Failed 20060428

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_APPL_LOG Call by reference Object reference (TYPE REF TO) CL_CRM_UI_ROLE_LOG Role assignement log 20060419

Method CONSTRUCTOR on class CL_CRM_UI_ROLE_ASSIGN has no exception.

Method DETERMINE_NEW_PFCG_ROLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ACTGR_NEW Call by reference Type reference (TYPE) TY_BAPIAGR_TAB PFCG roles have to be assigned to user 20060418
2 Exporting ET_UIU_PFCG_ROLE Call by reference Type reference (TYPE) TY_PFCG_ROLE_NAME_TAB Table of UIU relevant PFCG roles with assignment flags 20060422
3 Exporting EV_UPDATE_REQUIRED Call by reference Type reference (TYPE) CRMT_UI_BOOLEAN Update of the PFCG role assignment to user required 20060422
4 Importing IT_ACTGR Call by reference Type reference (TYPE) TY_BAPIAGR_TAB PFCG roles currently assignded to user 20060418
5 Importing IT_ACTGR_FROM_BR Call by reference Type reference (TYPE) TY_BAPIAGR_TAB PFCG roles have to be assigned to user based on bus. roles 20060418

Method DETERMINE_NEW_PFCG_ROLES on class CL_CRM_UI_ROLE_ASSIGN has no exception.

Method GET_BUSINESSROLES_FOR_USER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PROFILE_NAME Call by reference Type reference (TYPE) TY_PROFILE_NAME_TAB Table of Business role names 20060418
2 Importing IV_USER_NAME Call by reference Type reference (TYPE) BAPIBNAME-BAPIBNAME User Name in User Master Record 20060418
# Exception Resumable Description Created on
1 FAILED Failed 20060419

Method GET_CORRESPONDING_PFCG_ROLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ACTGR_FROM_BR Call by reference Type reference (TYPE) TY_BAPIAGR_TAB PFCG roles have to be assigned to user based on bus. roles 20060418
2 Importing IT_PROFILE_NAME Call by reference Type reference (TYPE) TY_PROFILE_NAME_TAB Table of Business role names 20060418
# Exception Resumable Description Created on
1 FAILED Failed 20060419

Method GET_CUA_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CENTRAL_SYSTEM_CLNT Call by reference Type reference (TYPE) SYMANDT Client ID of Current User 20081127
2 Exporting EV_CENTRAL_SYSTEM_LOGSYS Call by reference Type reference (TYPE) RFCSENDSYS RFC sending system 20081127
3 Exporting EV_CENTRAL_SYSTEM_RFC_DEST Call by reference Type reference (TYPE) RFCDEST Logical Destination (Specified in Function Call) 20081127
4 Exporting EV_CENTRAL_SYSTEM_SYSID Call by reference Type reference (TYPE) SYSYSID Name of the SAP System 20081127
5 Exporting EV_SET_ROLES_GLOBALLY Call by reference Type reference (TYPE) ABAP_BOOL Flag: update roles in CUA central system 20081202

Method GET_CUA_STATUS on class CL_CRM_UI_ROLE_ASSIGN has no exception.

Method GET_USER_PFCG_ROLES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ACTGR Call by reference Type reference (TYPE) TY_BAPIAGR_TAB PFCG roles currently assigned to user 20060418
2 Exporting ET_CUA_ACTGR Call by reference Type reference (TYPE) TY_BAPILOCAGR_TAB PFCG roles currently assigned to user 20081201
3 Importing IV_USER_NAME Call by reference Type reference (TYPE) BAPIBNAME-BAPIBNAME User Name in User Master Record 20060418
# Exception Resumable Description Created on
1 FAILED Failed 20060419

Method IS_PFCG_ROLE_UIU_RELEVANT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ACTGR_NAME Call by reference Type reference (TYPE) AGR_NAME Activity group name 20060418
2 Returning RV_RESULT Value transfer Type reference (TYPE) CRMT_UI_BOOLEAN Logical Variable 20060418

Method IS_PFCG_ROLE_UIU_RELEVANT on class CL_CRM_UI_ROLE_ASSIGN has no exception.

Method PFCG_ROLE_LOG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_UIU_PFCG_ROLE Call by reference Type reference (TYPE) TY_PFCG_ROLE_NAME_TAB Table of UIU relevant PFCG roles with assignment flags 20060428
2 Importing IV_USER_NAME Call by reference Type reference (TYPE) BAPIBNAME-BAPIBNAME User Name 20060428

Method PFCG_ROLE_LOG on class CL_CRM_UI_ROLE_ASSIGN has no exception.

Method PROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_BAPIUSNAME Call by reference Type reference (TYPE) TY_BAPIUSNAME_TAB Selected users 20060424
2 Importing IV_FRW_PFCG_ROLE Call by reference Type reference (TYPE) AGR_NAME Framework PFCG Role 20060915
3 Importing IV_MODE Call by reference Type reference (TYPE) CHAR1 Mode 20060424

Method PROCESS on class CL_CRM_UI_ROLE_ASSIGN has no exception.

Method PROCESS_USER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_USER_NAME Call by reference Type reference (TYPE) BAPIBNAME-BAPIBNAME User Name in User Master Record 20060418
# Exception Resumable Description Created on
1 FAILED Failed 20060419
History
Last changed by/on SAP  20110908 
SAP Release Created in 700