SAP Reports / Programs | Basis Components | Security | ABAP Authorization and Role Management(BC-SEC-AUT-PFC) SAP BC

PFCG_MASS_IMPORT SAP ABAP Report - Bulk rolle import







PFCG_MASS_IMPORT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter PFCG_MASS_IMPORT into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT PFCG_MASS_IMPORT. "Basic submit
SUBMIT PFCG_MASS_IMPORT AND RETURN. "Return to original report after report execution complete
SUBMIT PFCG_MASS_IMPORT VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: SYSTEM = D .
Title: Bulk rolle import
Text Symbol: L04 = Imported without menu
Text Symbol: L03 = Single Role
Text Symbol: L02 = Not Imported
Text Symbol: L01 = Imported
Text Symbol: C01 = The following roles were selected and are to be imported:
Text Symbol: A04 = Required imparting roles are also imported.
Text Symbol: A03 = or user assignments are imported.
Text Symbol: A02 = of the roles are imported. No authorization data
Text Symbol: A01 = Note that only the menu and the description
Text Symbol: 310 = Imported Role
Text Symbol: 309 = Error Message
Text Symbol: 308 = Comment
Text Symbol: 307 = Status
Text Symbol: 306 = Role Type
Text Symbol: 305 = Type
Text Symbol: 304 = Imparting Role
Text Symbol: 100 = Import Role:
Text Symbol: 066 = Error when importing original role menu
Text Symbol: 065 = Imparting role is locked
Text Symbol: 064 = Imparting role deselected: No longer required
Text Symbol: 063 = Missing authorizations for menu maintenance in original role
Text Symbol: 062 = No authorization to create imparting role
Text Symbol: 061 = No change authorization for imparting role
Text Symbol: 060 = No read authorization for imparting role
Text Symbol: 059 = Missing authorizations for menu maintenance
Text Symbol: 058 = Error during menu import
Text Symbol: 057 = Role already exists in the system.
Text Symbol: 056 = No Change Authorization
Text Symbol: 055 = No Read Authorization
Text Symbol: 054 = No create authorization
Text Symbol: 053 = Imparting role does not exist
Text Symbol: 052 = Role does not exist.
Text Symbol: 012 = Select RFC Destination
Text Symbol: 002 = Role locked


INCLUDES used within this REPORT PFCG_MASS_IMPORT

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

PRGN_SYSTEMS_F4_HELP CALL FUNCTION 'PRGN_SYSTEMS_F4_HELP' IMPORTING selected_value = system EXCEPTIONS OTHERS = 0.

PRGN_CHECK_RFC_DEST CALL FUNCTION 'PRGN_CHECK_RFC_DEST' EXPORTING replace_rfc_variables = 'X' rfc_destination_name = system message_output = 'X' minimal_release = '46C' IMPORTING replaced_rfc_destination = replaced_system target_release = target_release target_sysid = target_sysid target_client = target_mandt EXCEPTIONS destination_does_not_exist = 1 release_not_accepted = 2 OTHERS = 3.

RFC_PING CALL FUNCTION 'RFC_PING' DESTINATION replaced_system EXCEPTIONS system_failure = 1 MESSAGE ld_msg_text communication_failure = 2 MESSAGE ld_msg_text OTHERS = 3.

RFCPING CALL FUNCTION 'RFCPING' DESTINATION replaced_system EXCEPTIONS system_failure = 1 MESSAGE ld_msg_text communication_failure = 2 MESSAGE ld_msg_text OTHERS = 3.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING destination = replaced_system EXCEPTIONS OTHERS = 0.

PRGN_ACTGRP_MULTIPLE_F4 CALL FUNCTION 'PRGN_ACTGRP_MULTIPLE_F4' EXPORTING only_collective_actgroups = space only_single_actgroups = 'X' show_popup = space target_system = replaced_system role = '*' TABLES agr_tab = agr_tab all_roles = lt_agr_txt.

PRGN_STRU_LOAD_DEFINITION CALL FUNCTION 'PRGN_STRU_LOAD_DEFINITION' DESTINATION replaced_system EXPORTING activity_group = ld_parent_role check_hierarchy = space TABLES i_definition = i_definition i_actgroup_texts = i_actgroup_texts i_actgroup_flags = i_actgroup_flags i_actgroup_atts = i_actgroup_atts i_actgroup_mini = i_actgroup_mini i_actgroup_minit = i_actgroup_minit EXCEPTIONS not_authorized = 1 communication_failure = 2 MESSAGE ld_msg_text system_failure = 3 MESSAGE ld_msg_text OTHERS = 4.

PRGN_SHOW_WARNING_POPUP CALL FUNCTION 'PRGN_SHOW_WARNING_POPUP' EXPORTING header_text = header_text additional_line_1 = text-a01 additional_line_2 = text-a02 additional_line_3 = text-a03 additional_line_4 = 'Missing parent roles will be loaded, too.'(a04)

PRGN_AUTH_ACTIVITY_GROUP CALL FUNCTION 'PRGN_AUTH_ACTIVITY_GROUP' EXPORTING activity_group = -agr_name action_change = 'X' message_output = space EXCEPTIONS not_authorized = 1 OTHERS = 2.

PRGN_AUTH_ACTIVITY_GROUP CALL FUNCTION 'PRGN_AUTH_ACTIVITY_GROUP' EXPORTING activity_group = -agr_name action_create = 'X' action_change = 'X' message_output = space EXCEPTIONS not_authorized = 1 OTHERS = 2.

PRGN_ACTIVITY_GROUP_ENQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_ENQUEUE' EXPORTING activity_group = wa_definition-agr_name EXCEPTIONS OTHERS = 1.

PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group = -agr_name.

PRGN_STRU_SAVE_DEFINITION CALL FUNCTION 'PRGN_STRU_SAVE_DEFINITION' EXPORTING activity_group = space authority_check = space push_pers_data = space TABLES i_definition = lt_define_total i_actgroup_texts = lt_texts_total i_actgroup_flags = lt_flags_total i_actgroup_atts = lt_atts_total i_actgroup_mini = lt_mini_total i_actgroup_minit = lt_minit_total EXCEPTIONS OTHERS = 0.

MENU_AGR_TREE_READ_HIERARCHY CALL FUNCTION 'MENU_AGR_TREE_READ_HIERARCHY' DESTINATION replaced_system EXPORTING activity_group = wa_missing_parent_roles-agr_name TABLES nodes = lt_agr_hier texts = lt_agr_hiert urls = lt_agr_buffi tcodes = lt_agr_tcodes add_details = lt_add_details EXCEPTIONS communication_failure = 1 MESSAGE ld_msg_text system_failure = 2 MESSAGE ld_msg_text OTHERS = 3.

PRGN_SAVE_ROLE_MENU CALL FUNCTION 'PRGN_SAVE_ROLE_MENU' EXPORTING activity_group = wa_missing_parent_roles-agr_name authority_check = 'X' enqueue = space TABLES nodes = lt_agr_hier texts = lt_agr_hiert urls = lt_agr_buffi tcodes = lt_agr_tcodes add_details = lt_add_details EXCEPTIONS activity_group_enqueued = 1 no_auth_for_tcodes = 2 OTHERS = 3.

PRGN_STRU_LOAD_NODES CALL FUNCTION 'PRGN_STRU_LOAD_NODES' DESTINATION replaced_system EXPORTING activity_group = wa_missing_parent_roles-agr_name authority_check = space TABLES i_nodes_out = lt_menu_hier i_texts_out = lt_menu_hiert EXCEPTIONS communication_failure = 1 MESSAGE ld_msg_text system_failure = 2 MESSAGE ld_msg_text OTHERS = 3.

PRGN_STRU_SAVE_NODES CALL FUNCTION 'PRGN_STRU_SAVE_NODES' EXPORTING activity_group = wa_missing_parent_roles-agr_name use_global_tables = space authority_check = 'X' enqueue = space TABLES menu_hierarchy = lt_menu_hier menu_texts = lt_menu_hiert EXCEPTIONS activity_group_enqueued = 1 no_auth_for_tcodes = 2 OTHERS = 3.

PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group = -agr_name.

ICON_CREATE





call function 'ICON_CREATE' exporting name = &1 info = &2 importing result = &3 exceptions icon_not_found = 1 outputfield_too_short = 2 others = 3.

PRGN_ACTIVITY_GROUP_DEQUEUE CALL FUNCTION 'PRGN_ACTIVITY_GROUP_DEQUEUE' EXPORTING activity_group = ls_agr_define-agr_name.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'PFCG' EXCEPTIONS ok = 0 not_ok = 2.

PRGN_AUTH_ACTIVITY_GROUP CALL FUNCTION 'PRGN_AUTH_ACTIVITY_GROUP' EXPORTING activity_group = gd_agr_name action_display = 'X' EXCEPTIONS not_authorized = 1 OTHERS = 2.

PRGN_SHOW_EDIT_AGR CALL FUNCTION 'PRGN_SHOW_EDIT_AGR' STARTING NEW TASK 'PFCG' PERFORMING show_err_msg ON END OF TASK EXPORTING agr_name = gd_agr_name mode = 'A' screen = '1' sicht = '0' EXCEPTIONS communication_failure = 1 MESSAGE ld_msg_txt system_failure = 2 MESSAGE ld_msg_txt OTHERS = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name PFCG_MASS_IMPORT or its description.