08-10-2010 5:05 PM
I have sort/aggregations declared like:
gr_sorts = gr_alv->get_sorts( ).
gr_sorts->add_sort( columnname = <fieldname> sequence = 2 subtotal = abap_true ).
TRY.
gr_aggreg = gr_alv->get_aggregations( ).
gr_aggreg->add_aggregation( a field ).
gr_aggreg->add_aggregation( another field ).
.....
ENDTRY.
This results in the subtotals that I want. But, it also results in a grand total row that I must remove. How does one tell SALV to produce the subtotals only, without the final total row?
08-11-2010 5:51 AM
HI,
Try this:
Define layout structure
DATA:wa_layout TYPE slis_layout_alv.
Set this one
wa_layout-no_totalline = 'X'.
Pass this one through REUSE_ALV_LIST_DISPLAY function module.
is_layout = wa_layout
I know this is not OOPS, but i guess this gives you some idea.
May it helps you.
Regards.
DS.
08-12-2010 11:01 AM
In the set table for first display method, set the field NO_TOTLINE in the layout. Hope it helps.
Cheers
Sujay
08-12-2010 1:08 PM
08-12-2010 1:09 PM