on 04-27-2007 3:52 PM
Hi All..
I want to know whether it is possible to have a tree in the ALV output..
as in.. In the standard table using TreeByKeyTableColumn it is possible ..
But is any option available for doing the same in ALV output..
Hi Jagruti,
Of course you can have tree in the ALV output.
You need to set the column as a hierarchie key
Something like...
ls_column-r_column->if_salv_wd_column_hierarchy~set_hierarchy_column( abap_true ).
Your system should have an example.
See WDC SALV_WD_DEMO_TABLE_TREE
See method ON_UPLOAD_COMPLETE
The code is useful even if you cant get the tool to upload data
good luck.
Hope this will help you.
Cheers,
Darshna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wouter ..
thanx ..it works now..
But how do i set the text of the child nodes..
for eg...In name i hv 2 options first name and last name so Name is visible but child nodes are not ..only a dot bullet is der without text...
It sholud look like this..
Name
->First Name
->last Name
Can u help...
jagruti..
Hi again...
i hv 4 columns in my table
model, spec, parent spec and value...
for eg...Model 1 has spec C1 and parspec p1 and sm value
and also has C2 and P1
so while displaying..
it shud comelike
P1
->c1
->c2
but instead i get
p1
.
.
only bullets after parent node but no text..
hope u got wht im trying to say
Reply..
hi..
No i dont want models in the hierarchy..
I want specs and parspecs only..
Parspecs as parents and spec with the respective parent as its child..
eg:- M1 has s1 , s2, s3 .
s1 has P1 as parent and s2 and s3 has p2 as parent..
then output should be like..
column1 column2 column3
( M1 ) (M2)
P1
->s1 value
p2
->s2 value
->s3.. value
This is the actual requirements ...
so i want p1 , s1 ,p2 s2 s3 to cm in this format....forget abt the model..
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.