‎2007 Oct 04 4:09 PM
Hi,
I am setting TOTAL aggregation in SALV Tree . But after displaying Tree aggregations are not getting result.
data:
l_aggregations type ref to cl_salv_aggregations.
l_aggregations = gr_tree->get_aggregations( ).
l_aggregations->clear( ).
try.
l_aggregations->add_aggregation( columnname = 'KTMNG' ).
l_aggregations->add_aggregation( columnname = 'MENGE' ).
aggregation = if_salv_c_aggregation=>maximum.
catch cx_salv_not_found cx_salv_data_error cx_salv_existing.
endtry.
a®
‎2007 Oct 04 4:40 PM
Hi,
Solved by myself.
Here is the modified code
data:
l_aggregations type ref to cl_salv_aggregations.
l_aggregations = gr_tree->get_aggregations( ).
l_aggregations->clear( ).
try.
l_aggregations->add_aggregation( columnname = 'KTMNG' ).
l_aggregations->add_aggregation( columnname = 'MENGE'
aggregation = if_salv_c_aggregation=>total ).
catch cx_salv_not_found cx_salv_data_error cx_salv_existing.
endtry.
a®