SAP Function Modules

RS_TREE_LIST_DISPLAY SAP Function module - Display hierarchy







RS_TREE_LIST_DISPLAY is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RS_TREE_LIST_DISPLAY into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SEUT
Released Date: 04.03.1998
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RS_TREE_LIST_DISPLAY - RS TREE LIST DISPLAY





CALL FUNCTION 'RS_TREE_LIST_DISPLAY' "Display hierarchy
* EXPORTING
*   callback_program =          " sy-repid      Program containing the EXIT routines
*   callback_user_command =     "               EXIT routine for command handling
*   callback_text_display =     "               EXIT routine for node display
*   callback_moreinfo_display =   "             EXIT routine to node supplementary information
*   callback_color_display =    "               EXIT routine for color legend
*   callback_top_of_page =      "               EXIT routine for TOP-OF-PAGE display
*   callback_gui_status =       "               EXIT routine for setting a GUI status
*   callback_context_menu =     "               EXIT routine for constructing the context menu
*   status = 'IMPLICIT'         "               Status display ('OWN', 'STANDARD', 'IMPLICIT')
*   check_duplicate_name = '1'  "               Test for duplicate names
*   color_of_node = '4'         "               Node color (standard)
*   color_of_mark = '3'         "               Color of a selected node
*   color_of_link = '1'         "               Color of a link node
*   color_of_match = '5'        "               Color of a found node
*   lower_case_sensitive = SPACE  "             'X' if case-sensitive
*   modification_log = SPACE    "               'X' if modification log required
*   node_length = 30            "               Output length of a node
*   text_length = 75            "               Length of text block 1
*   text_length1 = 0            "               Length of text block 2
*   text_length2 = 0            "               Length of text block 3
*   return_marked_subtree = SPACE  "            'X' if selected sub-nodes are to be taken into account
*   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 = SPACE  "             'X' suppresses the node display
*   layout_mode = SPACE         " stree_layout_mode  Tree display normal/ compressed
*   use_control = STREE_USE_LIST  " stree_use_mode  Display as list or tree control
  IMPORTING
    f15 =                       "               Function key F15 pressed
    .  "  RS_TREE_LIST_DISPLAY

ABAP code example for Function Module RS_TREE_LIST_DISPLAY





The ABAP code below is a full code listing to execute function module RS_TREE_LIST_DISPLAY including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_f15  TYPE STRING .

DATA(ld_callback_program) = 'Check type of data required'.
DATA(ld_callback_user_command) = 'some text here'.
DATA(ld_callback_text_display) = 'some text here'.
DATA(ld_callback_moreinfo_display) = 'some text here'.
DATA(ld_callback_color_display) = 'some text here'.
DATA(ld_callback_top_of_page) = 'some text here'.
DATA(ld_callback_gui_status) = 'some text here'.
DATA(ld_callback_context_menu) = 'some text here'.
DATA(ld_status) = 'some text here'.
DATA(ld_check_duplicate_name) = 'some text here'.
DATA(ld_color_of_node) = 'some text here'.
DATA(ld_color_of_mark) = 'some text here'.
DATA(ld_color_of_link) = 'some text here'.
DATA(ld_color_of_match) = 'some text here'.
DATA(ld_lower_case_sensitive) = 'some text here'.
DATA(ld_modification_log) = 'some text here'.
DATA(ld_node_length) = 'some text here'.
DATA(ld_text_length) = 'some text here'.
DATA(ld_text_length1) = 'some text here'.
DATA(ld_text_length2) = 'some text here'.
DATA(ld_return_marked_subtree) = 'some text here'.
DATA(ld_screen_start_column) = 'some text here'.
DATA(ld_screen_start_line) = 'some text here'.
DATA(ld_screen_end_column) = 'some text here'.
DATA(ld_screen_end_line) = 'some text here'.
DATA(ld_suppress_node_output) = 'some text here'.
DATA(ld_layout_mode) = 'some text here'.
DATA(ld_use_control) = 'some text here'. . CALL FUNCTION 'RS_TREE_LIST_DISPLAY' * EXPORTING * callback_program = ld_callback_program * callback_user_command = ld_callback_user_command * callback_text_display = ld_callback_text_display * callback_moreinfo_display = ld_callback_moreinfo_display * callback_color_display = ld_callback_color_display * callback_top_of_page = ld_callback_top_of_page * callback_gui_status = ld_callback_gui_status * callback_context_menu = ld_callback_context_menu * status = ld_status * check_duplicate_name = ld_check_duplicate_name * color_of_node = ld_color_of_node * color_of_mark = ld_color_of_mark * color_of_link = ld_color_of_link * color_of_match = ld_color_of_match * lower_case_sensitive = ld_lower_case_sensitive * modification_log = ld_modification_log * node_length = ld_node_length * text_length = ld_text_length * text_length1 = ld_text_length1 * text_length2 = ld_text_length2 * return_marked_subtree = ld_return_marked_subtree * screen_start_column = ld_screen_start_column * screen_start_line = ld_screen_start_line * screen_end_column = ld_screen_end_column * screen_end_line = ld_screen_end_line * suppress_node_output = ld_suppress_node_output * layout_mode = ld_layout_mode * use_control = ld_use_control IMPORTING f15 = ld_f15 . " RS_TREE_LIST_DISPLAY
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_f15  TYPE STRING ,
ld_callback_program  TYPE SY-REPID ,
ld_callback_user_command  TYPE STRING ,
ld_callback_text_display  TYPE STRING ,
ld_callback_moreinfo_display  TYPE STRING ,
ld_callback_color_display  TYPE STRING ,
ld_callback_top_of_page  TYPE STRING ,
ld_callback_gui_status  TYPE STRING ,
ld_callback_context_menu  TYPE STRING ,
ld_status  TYPE STRING ,
ld_check_duplicate_name  TYPE STRING ,
ld_color_of_node  TYPE STRING ,
ld_color_of_mark  TYPE STRING ,
ld_color_of_link  TYPE STRING ,
ld_color_of_match  TYPE STRING ,
ld_lower_case_sensitive  TYPE STRING ,
ld_modification_log  TYPE STRING ,
ld_node_length  TYPE STRING ,
ld_text_length  TYPE STRING ,
ld_text_length1  TYPE STRING ,
ld_text_length2  TYPE STRING ,
ld_return_marked_subtree  TYPE STRING ,
ld_screen_start_column  TYPE STRING ,
ld_screen_start_line  TYPE STRING ,
ld_screen_end_column  TYPE STRING ,
ld_screen_end_line  TYPE STRING ,
ld_suppress_node_output  TYPE STRING ,
ld_layout_mode  TYPE STREE_LAYOUT_MODE ,
ld_use_control  TYPE STREE_USE_MODE .

ld_callback_program = 'Check type of data required'.
ld_callback_user_command = 'some text here'.
ld_callback_text_display = 'some text here'.
ld_callback_moreinfo_display = 'some text here'.
ld_callback_color_display = 'some text here'.
ld_callback_top_of_page = 'some text here'.
ld_callback_gui_status = 'some text here'.
ld_callback_context_menu = 'some text here'.
ld_status = 'some text here'.
ld_check_duplicate_name = 'some text here'.
ld_color_of_node = 'some text here'.
ld_color_of_mark = 'some text here'.
ld_color_of_link = 'some text here'.
ld_color_of_match = 'some text here'.
ld_lower_case_sensitive = 'some text here'.
ld_modification_log = 'some text here'.
ld_node_length = 'some text here'.
ld_text_length = 'some text here'.
ld_text_length1 = 'some text here'.
ld_text_length2 = 'some text here'.
ld_return_marked_subtree = 'some text here'.
ld_screen_start_column = 'some text here'.
ld_screen_start_line = 'some text here'.
ld_screen_end_column = 'some text here'.
ld_screen_end_line = 'some text here'.
ld_suppress_node_output = 'some text here'.
ld_layout_mode = 'some text here'.
ld_use_control = 'some text here'.

SAP Documentation for FM RS_TREE_LIST_DISPLAY



FUNCTIONALITY
Function module enabling you to display and interactively manipulate ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RS_TREE_LIST_DISPLAY or its description.