PFCG_UPDATE_ALL_ROLES is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generate the Profile of all Roles ..see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter PFCG_UPDATE_ALL_ROLES into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: EXP_MODE = Expert Mode
Selection Text: ROLES = Single Roles
Title: Regenerate All Roles
Text Symbol: 001 = Problem with Role:
Text Symbol: 002 = Role does not exist
Text Symbol: 003 = Role is locked
Text Symbol: 004 = Profile name exists
Text Symbol: 005 = Profile name not in namespace
Text Symbol: 006 = No Authorization
Text Symbol: 007 = Tables were not modified
Text Symbol: 008 = Error During Generation
Text Symbol: 009 = Unknown Error
Text Symbol: 010 = Select Single Roles
Text Symbol: 011 = You are not authorized to change the following roles:
Text Symbol: 012 = Authorization profile generated
Text Symbol: 013 = Current version not generated
Text Symbol: 014 = Role
Text Symbol: 015 = Execution in the background is not possible
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SUSR_NO_CHECK_IN_SOME_CASES CALL FUNCTION 'SUSR_NO_CHECK_IN_SOME_CASES' IMPORTING rc = gd_subrc EXCEPTIONS OTHERS = 1.
PRGN_CHECK_PROFGEN_TABLES CALL FUNCTION 'PRGN_CHECK_PROFGEN_TABLES' EXCEPTIONS profgen_tables_not_updated = 1 OTHERS = 2.
AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'PFCG' EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING ddic_structure = 'AGR_TXT' retfield = 'AGR_NAME' window_title = gd_text value_org = 'S' multiple_choice = 'X' display = space callback_program = 'SAPLPRGN_TREE' callback_form = 'F4CALLBACK_AGR_NAME' TABLES value_tab = gt_agrs_all return_tab = gt_ret_tab EXCEPTIONS OTHERS = 1.
PRGN_AUTH_ACTIVITY_GROUP CALL FUNCTION 'PRGN_AUTH_ACTIVITY_GROUP' EXPORTING activity_group = gs_agrs-agr_name action_change = 'X' message_output = space EXCEPTIONS not_authorized = 1 OTHERS = 2.
SUSR_POPUP_LIST_WITH_TEXT CALL FUNCTION 'SUSR_POPUP_LIST_WITH_TEXT' EXPORTING text1 = gd_text IMPORTING ok_code = gd_ucomm TABLES popup_list_1 = gt_miss_auth.
PRGN_CHECK_PROFILE_STATUS CALL FUNCTION 'PRGN_CHECK_PROFILE_STATUS' EXPORTING activity_group =
-agr_name IMPORTING message_text = gd_text recommended_action = gd_maint led_color = gd_color profile_text = gd_prof_text profile_name = gd_prof_name.
PRGN_ACTIVITY_GROUP_ENQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_ENQUEUE' EXPORTING activity_group =
-agr_name EXCEPTIONS foreign_lock = 1 OTHERS = 2.
SUPRN_PROFILE_GENERATOR CALL FUNCTION 'SUPRN_PROFILE_GENERATOR' EXPORTING act_objid =
-agr_name ltext = -text maintain = gd_maint authority_checks = space suprn_profile_name = gd_prof_name suprn_profile_text = gd_prof_text IMPORTING RESULT = gd_result EXCEPTIONS dialog_cancelled = 1.
PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group =
-agr_name.
BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_log_handle = gv_log_handle i_msgty = iv_msgtyp i_probclass = '2' i_text = iv_text EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.
BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = gv_log_handle EXCEPTIONS OTHERS = 1.
BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = ls_display_profile EXCEPTIONS OTHERS = 1.
BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
PFCG_UPDATE_ALL_ROLES - Regenerate All Roles PFCG_UPDATE_ALL_ROLES - Regenerate All Roles PFCG_TIME_DEPENDENCY - Role time-dependency scheduling report PFCG_TIME_DEPENDENCY - Role time-dependency scheduling report PFCG_START_PFCG - Program to Start Transaction PFCG PFCG_START_PFCG - Program to Start Transaction PFCG