SAP RSBB_TREE_READ Function Module for (Subsequently) Import Menu









RSBB_TREE_READ is a standard rsbb tree read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for (Subsequently) Import Menu processing and below is the pattern details for this FM, 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 rsbb tree read FM, simply by entering the name RSBB_TREE_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSMENU
Program Name: SAPLRSMENU
Main Program: SAPLRSMENU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RSBB_TREE_READ 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 'RSBB_TREE_READ'"(Subsequently) Import Menu
EXPORTING
* I_ROLE = "Role Name
* I_ROLES_ONLY = "Roles Only
* I_ALL_ROLES = "Read All Roles
* I_URL = "URLs Only
* I_WORKBOOK = "Workbooks Only
* I_FOLDER = "Folders Only
* I_DOCUMENT = "Documents Only
* I_SHORTCUT = "Shortcuts Only
* I_WEB_REPORT = "Web Reports Only
* I_QUERY = "Queries Only
* I_VIEW = "Views of Queries Only
* I_NODE = "Node ID
* I_INFOSET_QUERY = "InfoSet Queries Only
* I_CRYSTAL_REPORT = "Crystal Reports Only
* I_MINIAPP = "MiniApps Only
* I_TRANSACTION = "Transactions Only
* I_TEMPLATE = "Templates Only
* I_ITEM_LIBRARY = "Item Libraries Only
* I_LEVEL = "Menu Level
* I_REFRESH = "Refresh with 'X' (Read from Database)
* I_REFRESH_CACHE = 'X' "Refresh Internal Memory Cache
* I_OPEN = 'X' "Open with 'X'; Save with ' '
* I_SORT = "Sort Hierarchy with 'X'
* I_CHILDREN = "(Re-)Read Children Only
* I_FAVORITES_ONLY = "Favorites Only

IMPORTING
E_SUBRC = "Return Value, Return Value After ABAP Statements

TABLES
E_T_TREENODES = "Transfer Structure for Browser
.



IMPORTING Parameters details for RSBB_TREE_READ

I_ROLE - Role Name

Data type: RSBB_NODES-AGR_NAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ROLES_ONLY - Roles Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ALL_ROLES - Read All Roles

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_URL - URLs Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WORKBOOK - Workbooks Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FOLDER - Folders Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DOCUMENT - Documents Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SHORTCUT - Shortcuts Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WEB_REPORT - Web Reports Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_QUERY - Queries Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VIEW - Views of Queries Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NODE - Node ID

Data type: RSBB_NODES-OBJECT_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_INFOSET_QUERY - InfoSet Queries Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CRYSTAL_REPORT - Crystal Reports Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MINIAPP - MiniApps Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRANSACTION - Transactions Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TEMPLATE - Templates Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ITEM_LIBRARY - Item Libraries Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LEVEL - Menu Level

Data type: RSBB_NODES-MENU_LEVEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_REFRESH - Refresh with 'X' (Read from Database)

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_REFRESH_CACHE - Refresh Internal Memory Cache

Data type: MENU_FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPEN - Open with 'X'; Save with ' '

Data type: MENU_FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SORT - Sort Hierarchy with 'X'

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHILDREN - (Re-)Read Children Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FAVORITES_ONLY - Favorites Only

Data type: MENU_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSBB_TREE_READ

E_SUBRC - Return Value, Return Value After ABAP Statements

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RSBB_TREE_READ

E_T_TREENODES - Transfer Structure for Browser

Data type: RSZW_TREENODES
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSBB_TREE_READ 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:
lv_i_role  TYPE RSBB_NODES-AGR_NAME, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lt_e_t_treenodes  TYPE STANDARD TABLE OF RSZW_TREENODES, "   
lv_i_roles_only  TYPE MENU_FLAG, "   
lv_i_all_roles  TYPE MENU_FLAG, "   
lv_i_url  TYPE MENU_FLAG, "   
lv_i_workbook  TYPE MENU_FLAG, "   
lv_i_folder  TYPE MENU_FLAG, "   
lv_i_document  TYPE MENU_FLAG, "   
lv_i_shortcut  TYPE MENU_FLAG, "   
lv_i_web_report  TYPE MENU_FLAG, "   
lv_i_query  TYPE MENU_FLAG, "   
lv_i_view  TYPE MENU_FLAG, "   
lv_i_node  TYPE RSBB_NODES-OBJECT_ID, "   
lv_i_infoset_query  TYPE MENU_FLAG, "   
lv_i_crystal_report  TYPE MENU_FLAG, "   
lv_i_miniapp  TYPE MENU_FLAG, "   
lv_i_transaction  TYPE MENU_FLAG, "   
lv_i_template  TYPE MENU_FLAG, "   
lv_i_item_library  TYPE MENU_FLAG, "   
lv_i_level  TYPE RSBB_NODES-MENU_LEVEL, "   
lv_i_refresh  TYPE MENU_FLAG, "   
lv_i_refresh_cache  TYPE MENU_FLAG, "   'X'
lv_i_open  TYPE MENU_FLAG, "   'X'
lv_i_sort  TYPE MENU_FLAG, "   
lv_i_children  TYPE MENU_FLAG, "   
lv_i_favorites_only  TYPE MENU_FLAG. "   

  CALL FUNCTION 'RSBB_TREE_READ'  "(Subsequently) Import Menu
    EXPORTING
         I_ROLE = lv_i_role
         I_ROLES_ONLY = lv_i_roles_only
         I_ALL_ROLES = lv_i_all_roles
         I_URL = lv_i_url
         I_WORKBOOK = lv_i_workbook
         I_FOLDER = lv_i_folder
         I_DOCUMENT = lv_i_document
         I_SHORTCUT = lv_i_shortcut
         I_WEB_REPORT = lv_i_web_report
         I_QUERY = lv_i_query
         I_VIEW = lv_i_view
         I_NODE = lv_i_node
         I_INFOSET_QUERY = lv_i_infoset_query
         I_CRYSTAL_REPORT = lv_i_crystal_report
         I_MINIAPP = lv_i_miniapp
         I_TRANSACTION = lv_i_transaction
         I_TEMPLATE = lv_i_template
         I_ITEM_LIBRARY = lv_i_item_library
         I_LEVEL = lv_i_level
         I_REFRESH = lv_i_refresh
         I_REFRESH_CACHE = lv_i_refresh_cache
         I_OPEN = lv_i_open
         I_SORT = lv_i_sort
         I_CHILDREN = lv_i_children
         I_FAVORITES_ONLY = lv_i_favorites_only
    IMPORTING
         E_SUBRC = lv_e_subrc
    TABLES
         E_T_TREENODES = lt_e_t_treenodes
. " RSBB_TREE_READ




ABAP code using 7.40 inline data declarations to call FM RSBB_TREE_READ

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 AGR_NAME FROM RSBB_NODES INTO @DATA(ld_i_role).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single OBJECT_ID FROM RSBB_NODES INTO @DATA(ld_i_node).
 
 
 
 
 
 
 
"SELECT single MENU_LEVEL FROM RSBB_NODES INTO @DATA(ld_i_level).
 
 
DATA(ld_i_refresh_cache) = 'X'.
 
DATA(ld_i_open) = 'X'.
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!