Application Development 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: 

Printing a node tree

Former Member
0 Kudos

I have create a node tree with CREATE OBJECT G_TREE and i have show it in the screen, but now i have to print it and i don´t have the standard functionality and i can´t see any method in the class CL_GUI_LIST_TREE that is the principal class that i have used for creating the nodes, is there any way of doing it or is there any transaction in Sap where i can see how to do it?.

Thank you very much in advance

1 ACCEPTED SOLUTION

0 Kudos

Hi Carl,

I dont think you can print a tree. It might be worthwhile to look at ALV Tree. I have used this and you can print this tree. The class is cl_gui_alv_tree. You can build hierarchical tree using this. Check the example BCALV_TREE_01.

Regards,

Vani

2 REPLIES 2

0 Kudos

Hi Carl,

I dont think you can print a tree. It might be worthwhile to look at ALV Tree. I have used this and you can print this tree. The class is cl_gui_alv_tree. You can build hierarchical tree using this. Check the example BCALV_TREE_01.

Regards,

Vani

Former Member
0 Kudos

Hi Carl,

Stumbled upon this with the same problem. Rebuilding your cl_gui_list_tree to a cl_column_tree allows printing with method print_tree.

Best regards, Jasper