on 04-17-2012 11:28 AM
Hello,
I am trying to display an ALV table with the first column behaving like a tree. Basically all rows will be empty (except first column) except the leaf elements.
I have explored the following solutions, and each solution brought questions:
1. Using the standard table UI element:
This works fine, and it is very clear how to build the hierarchy of nodes either by using a recursion node, or by using the path/parent_path attributes. However I cannot find any way to have the view selection (with Filter and Settings buttons) at the top of the table, which bothers me a lot.
Is it possible to have this toolbar with the table UI element ?
2. Using the reusable ALV table component SALV_WD_TABLE:
Here I have the view selection toolbar. I have also managed to have a very simple tree with the first column as a hierarchy column (using the if_salv_wd_column_hierarchy and if_salv_wd_table_hierarchy methods on columns and table config).
My problem here is that I don't understand how to manage multiple hierarchy levels. The entries are grouped and collapsed if they have the same value in the hierarchy column, but I don't see how to make something like "level1 -> level2 -> entry1", I have only a 1 level tree like "level1 -> entry1,entry2,...". Is it possible to have the same flexibility on building the hierarchy levels as with the table UI element ?
Thanks in advance.
Thomas
This link will help youhttp://www.saptechnical.com/Tutorials/ALV/ALVTreeDemo/ALVTreeDemo.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.