Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tree visualization

Former Member
0 Likes
701

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?

4 REPLIES 4
Read only

manuel_bassani
Contributor
0 Likes
639

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

Read only

0 Likes
639

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.

Read only

0 Likes
639

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.

Read only

Former Member
0 Likes
639

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.