SAP Program DI_SUBCON_MONITOR_2 - Subcontracting Monitor

Description
The report SAPSIMPLE_TREE_CONTROL_DEMO demonstrates the use of thesimple tree control (class CL_GUI_SIMPLE_TREE).
In a simple tree control a node consists of a folder/leaf symbol and atext. A tree node is described by a dictionary structure TREEV_NODE.Users must include this structure in their own structure, which has afield named 'TEXT'.

Events
On the frame on the right of the screen events that have arisen aredisplayed. The following events can be triggered in the sample program:

node double click
A node has been double-clicked.

expand no children
A node may have the attribute that it displays a + on the folder/leafsymbol although it has no children in the control (set field EXPANDERin TREEV_NODE). If the user clicks on one of these nodes, eventEXPAND_NC is triggered. In the example, the node 'Child1' has thisattribute. The sample program reacts to this event by copying two newnodes to the control (New1 and New2).