Calling SAP Structural Graphics 
An ABAP program specifies hierarchy data and calls up an appropriate function module. The SAP Structural Graphics program generates a graphical hierarchy of nodes from the data supplied.
Overview The Function Modules Sample Program