cancel
Showing results for 
Search instead for 
Did you mean: 

Subtotal in webdynpro alv

Former Member
0 Kudos

Dear all

I hav created one webdynpro report using alv.. Its working fine... In that ALV how to do

subtotal for the partcular field. If any standard report is there for subtotl in alv

Kindly give some example...

thaks

sri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

Try calling the method create_aggr_rule from the ALV field reference .




        call method lr_config->if_salv_wd_field_settings~get_field
          exporting
            fieldname = 'AMOUNT'
          receiving
            value     = lr_field.


        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_rule.


Also refer this thread,

Regards,

Runal

Former Member
0 Kudos

Thank you

Its working fine

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Sri,

Refer this article [Using Totals and Subtotals Feature of ALV|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4063c42a-2549-2c10-fab6-a8c99d98b9b5&overridelayout=true]

Regards

Arjun

Former Member
0 Kudos

Thank you

working fine