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

How to create multiple root node in a tree

Former Member
0 Likes
1,045

Hi Experts,

As per my requirement I have two requirements for tree creation:

1) Create a Tree which can display multiple root node.

2) Cretae a Tree which can display data directy without any folder.

I am new in Tree development.

Can any body help me out to get it done.

If it is not possible then also i need a confirmation from experts.

Regards,

Madhu

3 REPLIES 3
Read only

venkat_o
Active Contributor
0 Likes
678

Hi, Yes it is possible. <li>Check these demo programs


SAPTLIST_TREE_CONTROL_DEMO
SAPCOLUMN_TREE_CONTROL_DEMO
SAPSIMPLE_TREE_CONTROL_DEMO
Thanks venkat.O

Read only

Former Member
0 Likes
678

Hi Venkat,

Thanks for the reply, but I am creationg application in Webdynpro ABAP. I need a solution for Webdynpro UI element TREE.

Regards,

Madhu

Read only

Former Member
0 Likes
678

use method add_node of the class Cl_gui_alv_tree to add a node to the tree.

In case of root node the parameter lv_relat_key is passed as blank.In order to create further child nodes pass the node key of the parent as the relat key of the child and use the method again.

Regards,

Abhi