cancel
Showing results for 
Search instead for 
Did you mean: 

WD Abap ALV Hierarchy

former_member193202
Participant
0 Kudos

Hi folks,

i have an wd abap alv with table mode hierarchy, but i want to show the values in the non-hierarchy fields at the hierarchy-level.

Is this not possible with WD ALV, with normal Table Control in WD Abap this is possible.

kind regards,

oliver

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Oliver russinger ,

Please the package<b> SALV_WD_DEMO</b> .There They have shown all possiblities over ALV .

Hope It will Help you .

Cheers

Parry

former_member193202
Participant
0 Kudos

Hi Parry

yes i checked the demos but the only one i found for thtat is:

salv_wd_demo_table_tree

but this shows on the top nodes only the fields which you can sum up, not normal fields????

any ideas how to do that - like with normal tables????

regards oliver

Former Member
0 Kudos

Hi Parry

Can u plz help me with displaying a tree within the ALV table...

some sample code will be appreciated..

I hv checked the salv_wd_demo_table_tree but cud not understand ...

Plz help..

jagruti

former_member193202
Participant
0 Kudos

Hi Jagruti,

it's kind of simple, you just have to do 2 things:

A) identify the table as hierarchy table:

wd_this->go_table is the reference to wd alv object:

wd_this->go_table->if_salv_wd_table_settings~set_display_type( if_salv_wd_c_table_settings=>display_type_hierarchy ).

B) mark the columns you want to have as nodes with following statement:

ls_col is reference to the column!

ls_col-r_column->if_salv_wd_column_hierarchy~set_hierarchy_column( value = abap_true ).

oliver

Former Member
0 Kudos

Is this not fullfilling U R requirement? Displaying data of a non parent key fields.......

Answers (2)

Answers (2)

former_member193202
Participant
0 Kudos

answered

Former Member
0 Kudos

Hi Oliver,

Of course this is possible in WD ALV also.

Kindly check out following,

Please see Package SWDP_DEMO_TUTORIALS >> In webDynpro see

WDT_ALV.

There is a web dynpro example called ALV_TABLE.

Hope this will help you.

Cheers,

Darshna.

former_member193202
Participant
0 Kudos

Hello Darshna,

yees i know them but these are examples without a hierarchy....

so i know normal tables work like in sapgui, but how to get hierarchy-tables run like in sapgui ????

kind regards

oliver