The SAP Hierarchy graphics program generates a graphical hierarchy of nodes that online users can click on. A typical hierarchy looks as shown in the following figure.

You can call SAP Hierarchy from an ABAP program, and generate such a hierarchy at the user's workstation screen. Your program specifies the nodes of the hierarchy and calls one of the following function modules:
Your ABAP program responds to user node selection with particular actions.
The function module responds to user node selection by presenting a menu of functions. Your ABAP program must tell the function module what menu to display, and respond when menu items have been selected.
Your program can also determine the appearance (text and color of individual nodes) of the hierarchy. Nodes can also be assigned numeric values and colored according to the size of these values.
Programming Interactive Applications
If your ABAP program allows the online user to open multiple windows or enter data with the mouse or keyboard, the application is interactive.
You are provided with two mechanisms for controlling the interaction between ABAP program and online user:
Using graphics function modules with dialog parameters STAT, M_TYP, PWDID, SUPER, WINID and RWNID)
Using graphics function modules with dialog parameters STAT, PWDID, SUPER, and WINID)
plus utility function modules :
For new programs, you should use only the second mechanism, graphics function modules with the utility function modules.

Do not use both mechanisms together in a program.
For more information, see the section
Programming Interactive Applications.You can also change the standard graphics display and define additional graphics functions for interactive users. This means when you call up SAP Hierarchy, it appears with changed or extra menu names or pushbuttons. For more information, see the section
Changing the Standard Graphics Display. To define additional functions, call the appropriate function module before you call an SAP Hierarchy function module.If your ABAP program calls GRAPH_ACTION, it must also use the CUA_ID and H_MES parameters (when calling SAP Hierarchy function modules) in order to learn when the user has selected these additional functions.