SAP Reports / Programs | Basis Components | ABAP Workbench, Java IDE and Infrastructure | Workbench Utilities(BC-DWB-UTL) SAP BC

BCTREEPT SAP ABAP Report - Application pattern for tree framework







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


Text pool values


Title: Application pattern for tree framework


INCLUDES used within this REPORT BCTREEPT

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_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' * EXPORTING * INSERT_ID = '000000' * RELATIONSHIP = ' ' TABLES NODETAB = NODETAB EXCEPTIONS TREE_FAILURE = 1 ID_NOT_FOUND = 2 WRONG_RELATIONSHIP = 3 OTHERS = 4.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING CALLBACK_PROGRAM = 'BCTREEPT' CALLBACK_USER_COMMAND = 'HANDLE_USER_COMMAND' CALLBACK_TEXT_DISPLAY = 'HANDLE_TEXT_DISPLAY' * CALLBACK_COLOR_DISPLAY = 'HANDLE_COLOR_DISPLAY' * CALLBACK_TOP_OF_PAGE = ' ' * STATUS = 'IMPLICIT' * CHECK_DUPLICATE_NAME = '1' * COLOR_OF_NODE = '4' * COLOR_OF_MARK = '3' * COLOR_OF_LINK = '1' * LOWER_CASE_SENSITIVE = ' ' * MODIFICATION_LOG = ' ' * NODE_LENGTH = 30 * TEXT_LENGTH = 75 * TEXT_LENGTH1 = 0 * TEXT_LENGTH2 = 0 * RETURN_MARKED_SUBTREE = ' ' * SCREEN_START_COLUMN = 0 * SCREEN_START_LINE = 0 * SCREEN_END_COLUMN = 0 * SCREEN_END_LINE = 0 * SUPPRESS_NODE_OUTPUT = ' ' * IMPORTING * F15 = EXCEPTIONS OTHERS = 1.

RS_TREE_ADD_NODE CALL FUNCTION 'RS_TREE_ADD_NODE' EXPORTING NEW_NAME = SELECTED_NODES-NEWNAME INSERT_ID = SELECTED_NODES-ID RELATIONSHIP = 'CHILD' * LINK = ' ' * NEW_TYPE = ' ' * DISPLAY_ATTRIBUTES = ' ' * IMPORTING * NEW_ID = * NODE_INFO = EXCEPTIONS ID_NOT_FOUND = 1 OTHERS = 2.



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