calculate total for all the records for the feilds and divided by no.of months
example;
loop at item to item
if sy-tabix ge 4.
lv_var1 = lv_var1 + 1.
lv_var = lv_var + Rep1.
endif.
endloop.
lv_avg = lv_var / lv_var2.
calculate total for all the records for the feilds and divided by no.of months
example;
loop at item to item
if sy-tabix ge 4.
lv_var1 = lv_var1 + 1.
lv_var = lv_var + Rep1.
endif.
endloop.
lv_avg = lv_var / lv_var2.