cancel
Showing results for 
Search instead for 
Did you mean: 

Subtotal and not total in ALV for Webdynpro ABAP

Former Member
0 Kudos

I have a requirement where in i just want to show the subtotal and not the overall total on ALV in WDA component. Right now am able to show the subtotal and total both, but my requirement is just to see the subtotal and not total.. Can any one help in hiding the total row and just keeping the subtotal columns visible.

Appreciate your help in achieving this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For aggregate functionality we use

call method lr_field->if_salv_wd_aggr~create_aggr_rule
          
exporting
             aggregation_type = if_salv_wd_c_aggregation=>aggrtype_total
           receiving
            
value            = lv_aggr.

Below are the various aggregation types available in if_salv_wd_c_aggregation try each

AGGRTYPE                                         

AGGRTYPE_TOTAL

AGGRTYPE_MINIMUM

AGGRTYPE_MAXIMUM

AGGRTYPE_AVERAGE

AGGRTYPE_NONE

POSITION

POSITION_BEFORE_DATA

POSITION_DATA

POSITION_AFTER_DATA

Thanks,

Shailaja Ainala.

Message was edited by: shailaja ainala

Former Member
0 Kudos

Thanks shailaja for your response , this is what exactly i have done but but at the end it gives me a total of all columns infact i need only subtotal for the columns and not total.

Answers (0)