Ansicht
Dokumentation

/IWXBE/R_CHANNEL_MONITOR - EEE - Channel Monitor

/IWXBE/R_CHANNEL_MONITOR - EEE - Channel Monitor

Vendor Master (General Section)   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Description

Report SAPTLIST_TREE_CONTROL_DEMO demonstrates use of the list tree control (class CL_GUI_LIST_TREE).

A node of the tree is described by the dictionary structure TREEV_NODE. Field NODE_KEY contains the key of the node.
Each node of the tree can have items. An item is described by the dictionary structure TREEV_ITEM, which the user of the tree control must extend by the character field TEXT (any length). In this example report, TREEV_ITEM is included in the structure MTREEITM in order to insert a field with the name TEXT. The NODE_KEY field identifies the node an item belongs to. The ITEM_NAME field contains the name of the item. Only integers as of 1 are permitted. The items in a node are output from left to right.

The example shows some important properties of the list tree control, which are explained in some items of the example below.

  • Item "Objects": This item has a proportional font (ITEM-FONT = CL_GUI_LIST_TREE=>ITEM_FONT_PROP). The use of proportional font is only useful for items if the width of the item is adjusted to the contained text string (so that the string fits in). To do this the value CL_GUI_LIST_TREE=>ALIGN_AUTO must be saved in the ALIGNMENT field of the item.
  • With the items of the third and fourth nodes from above a table-type entity is structured. To do this, the first three items of both nodes must have a fixed length (ITEM-ALIGNMENT = CL_GUI_LIST_TREE=>ALIGN_LEFT, ITEM-LENGTH = ...) A fixed font must be used for these items (ITEM-FONT = ITEM_FONT_FIXED).

Selection

The items of a node can be selected one at a time. A single-click on a node’s folder/leaf symbol selects the entire node.
The tree’s selection method can be set in such a way that one click always selects the entire node (set constructor’s ITEM_SELECTION parameter to initial).

Events

Events are displayed in the frame on the right-hand margin of the screen. The following events can be triggered in the demo program:

node_dbl_clk (node double click)

A double-click on a node. In this example, this can be done by double-clicking the folder/leaf symbol. If ITEM_SELECTION is set to SPACE, this event is triggered if any part of the node is double-clicked.

item_dbl_click (item double click)

An item in the tree has been double-clicked. This even can only occur if ITEM_SELECTION = 'X'.

expand_nc (expand no children)

A node can be set in such a way that it displays a + on the folder/leaf symbol although there are no child nodes in the control (set field expander in TREEV_NODE). If the user clicks a node of this type, event EXPAND_NC is triggered. In the example, the "Program" node has this property. The demo program reacts to this event by transferring two new nodes to the control.

button_click

The user has clicked an item that is a pushbutton.

link_click

The user has clicked an item that is a link.

Requirements

Output

Example






CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3308 Date: 20240419 Time: 033151     sap01-206 ( 72 ms )