SAP Program BCALV_DND_01 - Drag ALV Row to Tree Folder

Description
Report SAPSIMPLE_TREE_CONTROL_DEMO shows how the simple tree control(class CL_GUI_SIMPLE_TREE) is used.
In a simple tree control, a node consists of a folder/leaf symbol and atext. A node of the tree is described by Dictionary structureTREEV_NODE. The user must include this structure in a self-definedstructure that contains a field named 'TEXT'.

Events
Any events triggered are displayed in the frame on the right screenborder. The following events can be triggered in the sample program:

node double click
A node was double-clicked.

expand no children
A node may have the property of showing a + sign for the folder/leafsymbol although no children exist in the control (set field EXPANDER inTREEV_NODE). If the user clicks such a node, event EXPAND_NC istriggered. In the example, node "Child1" has this property. The sampleprogram responds to this event by transferring two new nodes to thecontrol (New1 and New2).