SAP Reports / Programs | Basis Components | Security | User Administration(BC-SEC-USR) SAP BC

WP3ROLELIST_TREE SAP ABAP INCLUDE - Portal role maintenance: User interface







WP3ROLELIST_TREE is a standard ABAP INCLUDE 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 WP3ROLELIST_TREE 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 WP3ROLELIST_TREE. "Basic submit
SUBMIT WP3ROLELIST_TREE AND RETURN. "Return to original report after report execution complete
SUBMIT WP3ROLELIST_TREE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Portal role maintenance: User interface


INCLUDES used within this REPORT WP3ROLELIST_TREE

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:

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' TABLES nodetab = lt_treenode EXCEPTIONS tree_failure = 1 id_not_found = 2 wrong_relationship = 3 OTHERS = 4.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING callback_program = lf_syrepid callback_user_command = 'P_TREE_USER_COMMAND' callback_text_display = 'P_TREE_PBO' callback_color_display = 'P_TREE_COLOR_DISPLAY' * CALLBACK_TOP_OF_PAGE = callback_gui_status = 'P_TREE_GUI_STATUS' status = 'OWN' return_marked_subtree = 'X'.

TR_ORDER_CHOICE_CORRECTION CALL FUNCTION 'TR_ORDER_CHOICE_CORRECTION' EXPORTING iv_category = 'CUST' iv_cli_dep = 'X' IMPORTING ev_order = lf_corrnum ev_task = lf_task EXCEPTIONS invalid_category = 1 no_correction_selected = 2 OTHERS = 3.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = 'Name der anzulegenden/konvertierenden Berechtigungsrolle'(016) IMPORTING returncode = lf_return TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Umwandlung einer vorhandenen Rolle'(061) diagnose_object = 'WP3R_USE_EXISTING_ROLE' text_question = 'Möchten Sie die Rolle &ROLENAME& in ' & "#EC * 'eine berechtigungsrolle umwandeln?'(062) "#EC * text_button_1 = 'Weiter'(063) icon_button_1 = 'ICON_OKAY' text_button_2 = 'Abbrechen'(064) icon_button_2 = 'ICON_CANCEL' default_button = '1' display_cancel_button = ' ' popup_type = 'ICON_MESSAGE_QUESTION' IMPORTING answer = lf_answer TABLES parameter = lt_spar EXCEPTIONS text_not_found = 1 OTHERS = 2.

RS_TREE_ADD_NODE CALL FUNCTION 'RS_TREE_ADD_NODE' EXPORTING new_name = space insert_id = lf_parent_id relationship = stree_reltype_baby "append as last item new_type = con_nodetype_saprole "#EC * display_attributes = ls_attributes IMPORTING new_id = lf_new_id.

RS_TREE_EXPAND CALL FUNCTION 'RS_TREE_EXPAND' EXPORTING node_id = if_node_id depth = 1.

RS_TREE_DELETE_NODE CALL FUNCTION 'RS_TREE_DELETE_NODE' EXPORTING node_id = if_node_id.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Berechtigungsrolle löschen'(065) diagnose_object = 'WP3R_DELETE_ROLE' text_question = 'Möchten Sie die Berechtigungsrolle &ROLENAME& ' & 'löschen/die Verknüpfung aufheben?'(066) text_button_1 = 'Löschen'(067) icon_button_1 = 'ICON_DELETE' text_button_2 = 'Aufheben'(068) icon_button_2 = 'ICON_UNLOCKED' * Using "unlink" as default because it is revertible.

RS_TREE_DELETE_NODE CALL FUNCTION 'RS_TREE_DELETE_NODE' EXPORTING node_id = if_node_id.

RS_TREE_DELETE_NODE CALL FUNCTION 'RS_TREE_DELETE_NODE' EXPORTING node_id = if_node_id.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = con_icon_plus info = lf_quickinfo IMPORTING RESULT = ls_item-icon.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = con_icon_minus info = lf_quickinfo IMPORTING RESULT = ls_item-icon.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = lf_repid i_callback_user_command = 'P_TREE_LIST_SERVICES_UC' it_fieldcat = lt_fc is_layout = ls_layout is_keyinfo = ls_keyinfo i_screen_start_column = 4 i_screen_start_line = 1 i_screen_end_column = 131 i_screen_end_line = 20 i_tabname_header = 'PT_LIST_SERVICE_HEADER' i_tabname_item = 'PT_LIST_SERVICE_ITEM' TABLES t_outtab_header = pt_list_service_header t_outtab_item = pt_list_service_item.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = con_icon_ok info = lf_quickinfo IMPORTING RESULT = cs_item-icon.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = con_icon_info info = lf_quickinfo IMPORTING RESULT = cs_item-icon.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = con_icon_warning info = lf_quickinfo IMPORTING RESULT = cs_item-icon.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = con_icon_error info = lf_quickinfo IMPORTING RESULT = cs_item-icon.

REUSE_ALV_HIERSEQ_LIST_DISPLAY





CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = lf_callback_program it_fieldcat = lt_fc is_layout = ls_layout i_screen_start_column = 1 i_screen_start_line = 1 i_screen_end_column = 134 i_screen_end_line = lf_lines i_tabname_header = 'LT_HEADER' i_tabname_item = 'LT_ITEM' is_keyinfo = ls_keyinfo TABLES t_outtab_header = lt_header t_outtab_item = lt_item EXCEPTIONS OTHERS = 0.

RS_TREE_COMPRESS CALL FUNCTION 'RS_TREE_COMPRESS' EXPORTING node_id = is_node-id EXCEPTIONS not_found = 0 OTHERS = 0.

RS_TREE_EXPAND CALL FUNCTION 'RS_TREE_EXPAND' EXPORTING node_id = is_node-id EXCEPTIONS not_found = 0 OTHERS = 0.



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 WP3ROLELIST_TREE or its description.