cancel
Showing results for 
Search instead for 
Did you mean: 

Reused alv grid - Sum one column of ALV Grid

Former Member
0 Kudos

I'd like that one column of my alv grid to be sum...

How can i do that abap'ly speaking...

regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

DATA: lr_field type ref to cl_salv_wd_field.

*For total calculations...

if wd_comp_controller->gref_model_efforts is not initial.

CALL METHOD wd_comp_controller->gref_model_efforts->if_salv_wd_std_functions~set_aggregation_allowed

EXPORTING

value = abap_true.

lr_field = wd_comp_controller->gref_model_efforts->if_salv_wd_field_settings~get_field( 'BILLABLE_VALUE' ). "The column name for which total needs to be done.

lr_field->if_salv_wd_aggr~create_aggr_rule( aggregation_type =

if_salv_wd_c_aggregation=>aggrtype_total ).

endif.

Refer this :

Thanx.

Answers (0)