SALV_DEMO_TREE_SELECTIONS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Check out the submitted Contribute related to this SAP report or see any standard documentation available. Also check out the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. If you would like to execute this report or see the full code listing simply enter SALV_DEMO_TREE_SELECTIONS into the relevant SAP transactions such as SE38 or SE80 



Functionality covered by this demo ABAP ALV TREE report

Add user specific functions by adding your own status code to the pf-status included Defining an event handler for event added_functions which is called in case the user calls a user toolbar/status function

Set, get and change selections: note that only one kind of selection is possible at each point of time:

  • Set the selected columns at the first call
  • Get the selections when the user calls the application function and
  • Set the selected cell

ABAP code to call this SAP report using the submit statement



SUBMIT SALV_DEMO_TREE_SELECTIONS AND RETURN. “Return to original report after report execution complete 


SUBMIT SALV_DEMO_TREE_SELECTIONS VIA SELECTION-SCREEN. “Display selection screen of the submitted report to the user 

See more syntax options for the ABAP SUBMIT statement 

Contribute (Contribute)


Below is the basic information available for SAP report SALV_DEMO_TREE_SELECTIONS and is provided for your convenience to access as and when required. Although the basic information may have limited use it does provide an easy to find a location to store any knowledge about this program/report. 

The contribute/comments section below, therefore, offers an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screenshots 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 SALV_DEMO_TREE_SELECTIONS or its description.

Text pool values

Selection Text: P_AMOUNT = Number of Data Records 
Selection Text: P_FULL = Full Screen 
Selection Text: P_TREE = Tree on Screen 
Title: Demonstration Program for ALV OM Tree: Selections 
Text Symbol: 001 = Flight Price 
Text Symbol: B01 = My Function 
Text Symbol: B02 = Application-Defined Function 
Text Symbol: H01 = This is the header area 
Text Symbol: H02 = This is the footer area 
Text Symbol: HD1 = Hierarchy 
Text Symbol: HT1 = This is the hierarchy column 
Text Symbol: I08 = ‘added_function’ Event for Function Code: 
Text Symbol: I09 = ‘before_user_command’ Event for Function Code: 
Text Symbol: I10 = ‘after_user_command’ Event for Function Code: 
Text Symbol: S01 = No item currently selected 

SAP Module / Component 

Basis Components -> Basis Services / Communication Interfaces -> SAP List Viewer(BC-SRV-ALV)