SAP Program /ISDFPS/FORCE_WF_TREE_CTRL - Workflow Customizing Tree Control (With Documentation)

Description
The report SAPSIMPLE_TREE_CONTROL_DEMO demonstrates how simple treecontrol (class CL_GUI_SIMPLE_TREE) is used.
A node in simple tree control comprises a folder/leaf symbol and a text.A tree node contains data from the dictionary structure TREEV_NODE. Theuser must include this structure in their own structure, which mustcontain a field with the name 'TEXT'.

Events
The frame on the right edge of the screen displays the events whichoccur. The following events can be triggered by the demo program:

Node double click
User double-clicked a node.

Expand no children
The folder/leaf symbol of a node may display a +, even though there areno children (that is, subordinate nodes) in the control (set the fieldEXPANDER in TREEV_NODE). If the user clicks on one of these nodes, thistriggers the event EXPAND_NC. In the demo, the "Child 1" node contains a+. The demo program reacts to this event by copying two new nodes to thecontrol (New1 and New2).