Start of Content Area

Background documentationOverview of SAP Tree Classes  Locate the document in its SAP Library structure

Simple Tree

The class CL_GUI_SIMPLE_TREE is the ABAP Objects wrapper for the simple tree.

Example program: SAPSIMPLE_TREE_CONTROL_DEMO :

This graphic is explained in the accompanying text

Attributes

 

Column Tree

The class CL_GUI_COLUMN_TREE is the ABAP Objects wrapper for the column tree.

Example program: SAPCOLUMN_TREE_CONTROL_DEMO :

This graphic is explained in the accompanying text

Attributes

Example

In the example, the tree has three columns with the logical names 'Column1', 'Column2', and 'Column3'. The topmost node has an entry in each of these columns:

'Root Col. 1' in column 'Column1'

'Root Col. 2' in column 'Column2'

'Root Col. 3' in column 'Column3'

List Tree

The class CL_GUI_LIST_TREE is the ABAP Objects wrapper for the column tree.

Example program: SAPTLIST_TREE_CONTROL_DEMO :

This graphic is explained in the accompanying text

Attributes

Example

Structure of the first three nodes in the example:

The topmost node has a single entry ("objects"). Proportional font is set for this entry. Additionally, the "automatic width" is set. This means that the width of the entry is adjusted to fit the contents (in this case, the string "objects").

The second node from the top has the same construction as the first: An entry with the text "Screens".

The third node from the top has four entries:

A tick icon, four characters wide.

0100, not in proportional font, four characters wide.

MUELLER, not in proportional font, 11 characters wide.

Comment for screen 100, proportional font, automatic width.