‎2006 Jan 26 3:51 PM
I have to draw a tree which can be printed.
For example I have a material A. This is splitted in three other materials B, C and D. Material B is splitted in material E and F. Material D is splitted in G and H, and so on.
I have to visualize such a tree. The number of childs for each node in each level of the three can be different for different materials.
Has SAP a tool which can be used for this?
‎2006 Jan 26 4:23 PM
Hi Frank,
you could use class CL_GUI_SIMPLE_TREE (look at sample program SAPSIMPLE_TREE_CONTROL_DEMO) or CL_GUI_ALV_TREE.
look also at those sample reports:
BCALV_TREE_01
BCALV_TREE_02
BCALV_TREE_03
BCALV_TREE_04
BCALV_TREE_05
BCALV_TREE_06
BCALV_TREE_DEMO
Kind regards, Manuel
‎2006 Jan 26 7:56 PM
I think you should look at 'SAP graphics'.
This should fit to your requirements.
Have a look at sample programs:
GRHIER_1
BCGRDEMO
They use FM GRAPH_HIERARCHY_MENUE and display hierarchy structures.
‎2006 Jan 27 2:15 PM
I tried to solve the problem by calling the function "GRAPH_HIERARCHY_MENUE" which has been used in the program BCGRDEMO.
The only problem I have is that when a child has two different parents, this child is painted twice (once for each parent). This child has to be painted only once with a relation to the two different parents.
‎2006 Jan 27 2:34 PM
Hi Frank,
1. 2 Important Fm
2.
CALL FUNCTION 'RS_TREE_CONSTRUCT'
TABLES
nodetab = tr
EXCEPTIONS
tree_failure = 1
OTHERS = 4.
CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
EXPORTING
callback_program = sy-repid
callback_user_command = 'USERAB'
status = 'IMPLICIT'
status = 'STANDARD'
.
regards,
amit m.