SAP Reports / Programs | Basis Components | ABAP Workbench, Java IDE and Infrastructure | Logical Database Builder(BC-DWB-TOO-LDB) SAP BC

MSLDBF20 SAP ABAP INCLUDE - Subroutines for Creating and Displaying Tree (Structure)







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


Text pool values


Title: Subroutines for Creating and Displaying Tree (Structure)


INCLUDES used within this REPORT MSLDBF20

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_POP * CALL FUNCTION 'RS_TREE_POP' * EXCEPTIONS * EMPTY_STACK = 1 * OTHERS = 2.

RS_TREE_POP * CALL FUNCTION 'RS_TREE_POP' * EXCEPTIONS * EMPTY_STACK = 1 * OTHERS = 2.

RS_TREE_CREATE CALL FUNCTION 'RS_TREE_CREATE' EXPORTING ROOT_NAME = NODE-NAME * ROOT_TYPE = DISPLAY_ATTRIBUTES = L_NODE_ATTR IMPORTING ROOT_ID = NODE-ID EXCEPTIONS OTHERS = 1.

RS_TREE_ADD_NODE CALL FUNCTION 'RS_TREE_ADD_NODE' EXPORTING NEW_NAME = NODE-NAME INSERT_ID = L_TABLE_ID-ID RELATIONSHIP = C_RELATIONSHIP_LAST_SON DISPLAY_ATTRIBUTES = L_NODE_ATTR IMPORTING NEW_ID = NODE-ID.

RS_TREE_PUSH * CALL FUNCTION 'RS_TREE_PUSH' * EXCEPTIONS * OTHERS = 0.

RS_TREE_EXPAND CALL FUNCTION 'RS_TREE_EXPAND' EXPORTING NODE_ID = ID_ROOT_REAL ALL = C_TRUE EXCEPTIONS OTHERS = 1.

RS_TREE_CONTROL_PREPARE * CALL FUNCTION 'RS_TREE_CONTROL_PREPARE' * EXPORTING * CONTROL_PATTERN = 'PH' "deflt: STREE_CTL_GENERIC * HIERARCHY_HEADER = 'Knoten' * LIST_ITEM_HEADER = 'Tabelle/Struktur' * MULTIPLE_SELECTION = C_TRUE "stree_true * ITEM_SELECTION = C_TRUE ** SUPPRESS_NODE_ICON = STREE_FALSE * CALLBACK_PROGRAM = L_PROGRAM_MAIN ** callback_item_display = ** COLOR_MAPPING = ** TYPE_MAPPING = ** IMPORTING ** SUBSCREEN_PROGRAM = ** SUBSCREEN_DYNNR = * EXCEPTIONS * NOT_AVAILABLE = 1 * OTHERS = 2 * .

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING CALLBACK_PROGRAM = L_PROGRAM_MAIN "SY-REPID gibt Probl.

RS_TASK_OVERVIEW CALL FUNCTION 'RS_TASK_OVERVIEW'.

LDB_CONVERT_LDBNAME_2_DBPROG CALL FUNCTION 'LDB_CONVERT_LDBNAME_2_DBPROG' EXPORTING LDB_NAME = WA_LDBN_DEFINITION-LDBNAME FLAG_EXISTENCE_CHECK = C_FALSE IMPORTING PUT_NAME = L_PUT_NAME_NO_NUMBER NXXX_NAME = L_NXXX_NAME EXCEPTIONS WRONG_POSITION_OF_SLASHES = 1 LDB_NAME_TOO_LONG = 2 OTHERS = 3.

RS_DELETE_PROGRAM * CALL FUNCTION 'RS_DELETE_PROGRAM' * EXPORTING CORRNUMBER = L_CORRECTION_NUMBER * PROGRAM = L_PUT_NAME * SUPPRESS_CHECKS = ' ' * SUPPRESS_COMMIT = ' ' * SUPPRESS_POPUP = C_TRUE * WITH_INCLUDES = C_FALSE * EXCEPTIONS ENQUEUE_LOCK = 1 * OBJECT_NOT_FOUND = 2 * PERMISSION_FAILURE = 3 * REJECT_DELETION = 4 * OTHERS = 5.



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