MSERPF40 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 MSERPF40 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.
Title: Forms for reports in tree
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RS_TREE_GET_CURRENT_TREE call function 'RS_TREE_GET_CURRENT_TREE' tables nodeinfo = i_node_info exceptions others = 1.
RS_TREE_GET_CURRENT_LAYOUT call function 'RS_TREE_GET_CURRENT_LAYOUT' importing cursor_column = old_cursor_column cursor_line = old_cursor_line first_node = old_first_node list_column = old_list_column list_line = old_list_line tables layout = old_layout exceptions others = 1.
RS_TREE_GET_CURRENT_TREE call function 'RS_TREE_GET_CURRENT_TREE' tables nodeinfo = i_node_info exceptions others = 1.
RS_TREE_GET_CURRENT_LAYOUT call function 'RS_TREE_GET_CURRENT_LAYOUT' importing cursor_column = old_cursor_column cursor_line = old_cursor_line first_node = old_first_node list_column = old_list_column list_line = old_list_line tables layout = old_layout exceptions others = 1.
DSYS_OUTLINE_BROWSE call function 'DSYS_OUTLINE_BROWSE' exporting doklangu = sy-langu hometext = 'Reportingtree'(100) outline = outline exceptions outline_not_found = 01.
K_RW_FUNCTION_EXECUTE call function 'K_RW_FUNCTION_EXECUTE' exporting appl_id = appl_id. "#EC *
RS_TREE_SET_CURRENT_TREE call function 'RS_TREE_SET_CURRENT_TREE' tables nodeinfo = i_node_info exceptions others = 1.
RS_TREE_SET_CURRENT_LAYOUT call function 'RS_TREE_SET_CURRENT_LAYOUT' exporting cursor_column = old_cursor_column cursor_line = old_cursor_line first_node = old_first_node list_column = old_list_column list_line = old_list_line tables layout = old_layout exceptions others = 1.
RS_TREE_SET_CURRENT_TREE call function 'RS_TREE_SET_CURRENT_TREE' tables nodeinfo = p_node_info exceptions others = 1.
RS_TREE_LIST call function 'RS_TREE_LIST' "sorts P_NODE_INFO exporting all = c_true with_attributes = c_true tables list = p_node_info exceptions cycle_detected = 1 node_not_found = 2 others = 3.
RS_TREE_CONSTRUCT call function 'RS_TREE_CONSTRUCT' tables nodetab = p_node_info exceptions tree_failure = 1 id_not_found = 2 wrong_relationship = 3 others = 4.
RS_TREE_EXPAND call function 'RS_TREE_EXPAND' exporting all = 'X' node_id = l_root_id exceptions not_found = 01.
RS_TREE_EXPAND call function 'RS_TREE_EXPAND' exporting all = space node_id = l_root_id exceptions not_found = 01.
RS_TREE_SET_CURRENT_LAYOUT call function 'RS_TREE_SET_CURRENT_LAYOUT' exporting first_node = p_root_id "root of subtree tables layout = l_seutexpand.
RS_TREE_LIST_DISPLAY call function 'RS_TREE_LIST_DISPLAY' exporting callback_program = 'SAPMSERP' callback_user_command = 'RT_TREE_EVENTS' callback_text_display = 'RT_TREE_LAYOUT'.
RS_TREE_ADD_NODE call function 'RS_TREE_ADD_NODE' exporting new_name = c_node_info-name insert_id = c_node_info-id new_type = list_type display_attributes = l_display_attributes relationship = relate exceptions id_not_found = 1 others = 2.
RS_TREE_LIST call function 'RS_TREE_LIST' exporting all = 'X' with_attributes = 'X' hidden_nodes = 'X' tables list = p_node_info exceptions cycle_detected = 1 node_not_found = 2 others = 3.
RS_REPORTINGTREE_NODE_AUTH call function 'RS_REPORTINGTREE_NODE_AUTH' exporting authgroup = l_authgroup exceptions no_submit_auth = 1.
call function 'POPUP_TO_CONFIRM_WITH_VALUE' exporting objectvalue = space text_after = space text_before = 'Delete list (with attached lists)?'(025) titel = 'Delete'(024) importing answer = l_answer exceptions text_too_long = 0. "avoid RABAX!!!
RS_TREE_LIST call function 'RS_TREE_LIST' exporting node_id = s_node_info-id all = 'X' with_attributes = 'X' hidden_nodes = 'X' tables list = node_info exceptions cycle_detected = 1 node_not_found = 2 others = 3.
RS_TREE_DELETE_NODE call function 'RS_TREE_DELETE_NODE' exporting node_id = node_info-id exceptions id_not_found = 1 others = 2.
RS_DELETE_LISTS call function 'RS_DELETE_LISTS' tables t_srepolist = l_srepolist exceptions others = 1.
RS_TREE_LIST call function 'RS_TREE_LIST' exporting all = 'X' with_attributes = 'X' hidden_nodes = 'X' tables list = i_node_info exceptions cycle_detected = 1 node_not_found = 2 others = 3.
RS_TREE_GET_CURRENT_LAYOUT call function 'RS_TREE_GET_CURRENT_LAYOUT' tables layout = l_exp_nodes exceptions others = 1.
RS_TREE_EXPAND call function 'RS_TREE_EXPAND' exporting node_id = l_node_info-id list_scroll = c_true exceptions not_found = 1 others = 2.
RS_TREE_SET_SCROLL_POS call function 'RS_TREE_SET_SCROLL_POS' exporting node_id = l_pos_id exceptions not_found = 1 others = 2.
RS_TREE_GET_CURRENT_LAYOUT call function 'RS_TREE_GET_CURRENT_LAYOUT' tables layout = l_exp_nodes exceptions others = 1.
RS_TREE_SET_SCROLL_POS call function 'RS_TREE_SET_SCROLL_POS' exporting node_id = l_node_info-id exceptions not_found = 1 others = 2.
RSAQ_SHOW_QUERY_LAYOUT call function 'RSAQ_SHOW_QUERY_LAYOUT' exporting workspace = l_query_report-workspace usergroup = l_query_report-usergroup query = l_query_report-query exceptions no_usergroup = 01 no_query = 02.
K_RW_REPORT_CALL call function 'K_RW_REPORT_CALL' exporting i_reporttype = l_skeyreport-reporttype i_report = l_skeyreport-report i_extdreport = l_skeyreport-extdreport i_variant = l_skeyreport-variant i_smodus = 'P' exceptions report_group_invalid = 01 "cannot be generated report_group_not_exist = 02 report_break_off = 03. "#EC *
MC_LIS_RPT_PREVIEW call function 'MC_LIS_RPT_PREVIEW' exporting i_srepovari = p_srepovari exceptions not_found = 01 not_possible = 02 invalid_report_type = 03. "#EC *
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 MSERPF40 or its description.