Ansicht
Dokumentation

SAP_CONTROL_TEST - Example: Simple Tree Control (with Documentation)

SAP_CONTROL_TEST - Example: Simple Tree Control (with Documentation)

BAL_S_LOG - Application Log: Log header data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Description

The SAPSIMPLE_TREE_CONTROL_DEMO program shows how you use the simple tree control (instances of the CL_GUI_SIMPLE_TREE class).

Each node in the simple tree control consists of a folder or sheet of paper icon and a text. Each node is described using the Dictionary structure TREEV_NODE beschrieben. Users must include this structure in a structure of their own; this structure must contain a field with the name 'TEXT'.

Events

The frame on the right side of the screen displays events that have occurred. You can raise the following events in the example program:

node double click

A node ha been double-clicked

expand no children

A node can show a + beside its folder or sheet of paper icon, even though there are no subnodes available in the control (set the EXPANDER field in TREEV_NODE). If the user clicks on such a node, the EXPAND_NC event is raised. In the example, the Child1 node has this attribute. The example program reacts to this event by adding to new nodes to the control (New1 and New2).

Requirements

Output

Example






Addresses (Business Address Services)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1390 Date: 20240520 Time: 131405     sap01-206 ( 36 ms )