cancel
Showing results for 
Search instead for 
Did you mean: 

Tree in an ALV table (hierarchy table content)

former_member186783
Participant
0 Kudos

Hi experts,

I'd like to create an alve table with a tree in it. I read the forum And my table with tree is up and running, but I don't know what to put into the hierarchy columns, to have more than one levels:

Example:


AAA
 |-----AAB
 |      |-----ABB
 |      |-----ABC
 |-----AAC
BBB
 |----BBB
 |----BBC

I don't have the SALV_WD_DEMO_TABLE_TREE component in my system, so I can't check the example.

Please help.

Thanks.

N.

Accepted Solutions (0)

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

check below standard applications.

DEMO_TABLE_WITH_TREE Example: Table with Tree

DemoTree Example of Tree Control

DPR_TREE cProjects: Tree

WDR_TEST_TREE

WDT_TREE Sample solution for tutorial Constructing a W

WDT_TREE_TABLE_BY_KEY Hierarchy Table via Key/Parentkey

WDT_TREE_TABLE_BY_NST Hierarchy Table via Nesting

This will give you an idea to develop hierarchical tree.

Thanks,

Chandra

former_member186783
Participant
0 Kudos

Hi,

Yes I know these solutions, I developed several times such trees with recurring nodes.

But now, I'd like to develop it in an ALV, so my question is still unanswered...

N.

former_member186783
Participant
0 Kudos

I found the solution fin another thread:

The main things are:

http://www.flickr.com/photos/tjung/2802287945/

For instanace, taking the same flat SFLIGHT structure I can just define certain columns and create two different hierarchies:

http://www.flickr.com/photos/tjung/2802287971/

http://www.flickr.com/photos/tjung/2802287989

You can test it with the table sflight -> Settings-> Display->Hierarchy