Programme SAP FIEHLIST - Process Contracts with Errors

Description
Report SAPTREX3 demonstrates the use of the Simple Tree Control.
In a Simple Tree Control, a node consists of a folder/end node symboland a text. A node of this tree is described by the Dictionarystructure TREEV_NODE. The user has to include this structure in his ownstructure, which has a field with the name 'TEXT'.

Events
In the group box on the right-hand side of the screen, the systemdisplays the events that occur. The following events can be triggeredin the example program:

node_dbl_clk (node double click)
A node was double clicked.

node_context_men
If the user clicks with the right mouse button on the folder/nodesymbol, this event is triggered. The key of the node is the parameterof the event.

expand_nc (expand no children)
It is possible for a node to display a plus sign (+) on the folder/nodesymbol, although it has no subordinate nodes in the control (set fieldexpander in TREEV_NODE). If the user clicks on a node of this type, theEXPAND_NC event is triggered. In the example, the "Child1" node is anode of this type. The sample program reacts to this event bytransferring two new nodes to the control (New1 and New2).