SAP RH_MENUE_TREE Function Module for
RH_MENUE_TREE is a standard rh menue tree SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rh menue tree FM, simply by entering the name RH_MENUE_TREE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHDM
Program Name: SAPLRHDM
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_MENUE_TREE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RH_MENUE_TREE'".
EXPORTING
* CALLBACK_PROGRAM = ' ' "EXIT program
* NODE_LENGTH = 30 "Output length of a node
* TEXT_LENGTH = 75 "Length of text block
* TEXT_LENGTH2 = 0 "Length of text block 2
* TEXT_LENGTH3 = 0 "Length of text block 3
* SCREEN_START_COLUMN = 0 "Column where list dialog box begins
* SCREEN_START_LINE = 0 "Line where list dialog box begins
* SCREEN_END_COLUMN = 0 "Column where list dialog box ends
* SCREEN_END_LINE = 0 "Line where list dialog box ends
* SUPPRESS_NODE_OUTPUT = ' ' "'X' suppresses the node display
TOPNODE = "Root node
* CALLBACK_USER_COMMAND = ' ' "EXIT routine for command handling
* WIN_TITLE = ' ' "Window title
* EXPAND_ALL = 'X' "Expand all
* CALLBACK_TEXT_DISPLAY = ' ' "EXIT routine for node display
* CALLBACK_COLOR_DISPLAY = ' ' "EXIT routine for color legend
* CALLBACK_EXPAND = ' ' "EXIT routine for expand
* STATUS = 'TREE' "F-key status
* COLOR_OF_LINK = '1' "Color of a link node (graphics connection)
* COLOR_OF_NODE = '4' "Node color (standard)
* LOWER_CASE_SENSITIVE = ' ' "'X' if case-sensitive
TABLES
MENUE_TREE = "Node table
IMPORTING Parameters details for RH_MENUE_TREE
CALLBACK_PROGRAM - EXIT program
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NODE_LENGTH - Output length of a node
Data type:Default: 30
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LENGTH - Length of text block
Data type:Default: 75
Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LENGTH2 - Length of text block 2
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_LENGTH3 - Length of text block 3
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SCREEN_START_COLUMN - Column where list dialog box begins
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SCREEN_START_LINE - Line where list dialog box begins
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SCREEN_END_COLUMN - Column where list dialog box ends
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SCREEN_END_LINE - Line where list dialog box ends
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_NODE_OUTPUT - 'X' suppresses the node display
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TOPNODE - Root node
Data type: SNODETEXT-IDOptional: No
Call by Reference: No ( called with pass by value option)
CALLBACK_USER_COMMAND - EXIT routine for command handling
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WIN_TITLE - Window title
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPAND_ALL - Expand all
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_TEXT_DISPLAY - EXIT routine for node display
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_COLOR_DISPLAY - EXIT routine for color legend
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_EXPAND - EXIT routine for expand
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STATUS - F-key status
Data type:Default: 'TREE'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COLOR_OF_LINK - Color of a link node (graphics connection)
Data type:Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COLOR_OF_NODE - Node color (standard)
Data type:Default: '4'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOWER_CASE_SENSITIVE - 'X' if case-sensitive
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_MENUE_TREE
MENUE_TREE - Node table
Data type: SNODETEXTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_MENUE_TREE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_menue_tree | TYPE STANDARD TABLE OF SNODETEXT, " | |||
| lv_callback_program | TYPE SY-REPID, " SPACE | |||
| lv_node_length | TYPE SY, " 30 | |||
| lv_text_length | TYPE SY, " 75 | |||
| lv_text_length2 | TYPE SY, " 0 | |||
| lv_text_length3 | TYPE SY, " 0 | |||
| lv_screen_start_column | TYPE SY, " 0 | |||
| lv_screen_start_line | TYPE SY, " 0 | |||
| lv_screen_end_column | TYPE SY, " 0 | |||
| lv_screen_end_line | TYPE SY, " 0 | |||
| lv_suppress_node_output | TYPE SY, " SPACE | |||
| lv_topnode | TYPE SNODETEXT-ID, " | |||
| lv_callback_user_command | TYPE SNODETEXT, " SPACE | |||
| lv_win_title | TYPE SNODETEXT, " SPACE | |||
| lv_expand_all | TYPE SNODETEXT, " 'X' | |||
| lv_callback_text_display | TYPE SNODETEXT, " SPACE | |||
| lv_callback_color_display | TYPE SNODETEXT, " SPACE | |||
| lv_callback_expand | TYPE SNODETEXT, " SPACE | |||
| lv_status | TYPE SNODETEXT, " 'TREE' | |||
| lv_color_of_link | TYPE SNODETEXT, " '1' | |||
| lv_color_of_node | TYPE SNODETEXT, " '4' | |||
| lv_lower_case_sensitive | TYPE SNODETEXT. " SPACE |
|   CALL FUNCTION 'RH_MENUE_TREE' " |
| EXPORTING | ||
| CALLBACK_PROGRAM | = lv_callback_program | |
| NODE_LENGTH | = lv_node_length | |
| TEXT_LENGTH | = lv_text_length | |
| TEXT_LENGTH2 | = lv_text_length2 | |
| TEXT_LENGTH3 | = lv_text_length3 | |
| SCREEN_START_COLUMN | = lv_screen_start_column | |
| SCREEN_START_LINE | = lv_screen_start_line | |
| SCREEN_END_COLUMN | = lv_screen_end_column | |
| SCREEN_END_LINE | = lv_screen_end_line | |
| SUPPRESS_NODE_OUTPUT | = lv_suppress_node_output | |
| TOPNODE | = lv_topnode | |
| CALLBACK_USER_COMMAND | = lv_callback_user_command | |
| WIN_TITLE | = lv_win_title | |
| EXPAND_ALL | = lv_expand_all | |
| CALLBACK_TEXT_DISPLAY | = lv_callback_text_display | |
| CALLBACK_COLOR_DISPLAY | = lv_callback_color_display | |
| CALLBACK_EXPAND | = lv_callback_expand | |
| STATUS | = lv_status | |
| COLOR_OF_LINK | = lv_color_of_link | |
| COLOR_OF_NODE | = lv_color_of_node | |
| LOWER_CASE_SENSITIVE | = lv_lower_case_sensitive | |
| TABLES | ||
| MENUE_TREE | = lt_menue_tree | |
| . " RH_MENUE_TREE | ||
ABAP code using 7.40 inline data declarations to call FM RH_MENUE_TREE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single REPID FROM SY INTO @DATA(ld_callback_program). | ||||
| DATA(ld_callback_program) | = ' '. | |||
| DATA(ld_node_length) | = 30. | |||
| DATA(ld_text_length) | = 75. | |||
| DATA(ld_suppress_node_output) | = ' '. | |||
| "SELECT single ID FROM SNODETEXT INTO @DATA(ld_topnode). | ||||
| DATA(ld_callback_user_command) | = ' '. | |||
| DATA(ld_win_title) | = ' '. | |||
| DATA(ld_expand_all) | = 'X'. | |||
| DATA(ld_callback_text_display) | = ' '. | |||
| DATA(ld_callback_color_display) | = ' '. | |||
| DATA(ld_callback_expand) | = ' '. | |||
| DATA(ld_status) | = 'TREE'. | |||
| DATA(ld_color_of_link) | = '1'. | |||
| DATA(ld_color_of_node) | = '4'. | |||
| DATA(ld_lower_case_sensitive) | = ' '. | |||
Search for further information about these or an SAP related objects