Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Calculate Average

Former Member
0 Likes
606

Hi all,

I have an ALV report (REUSE_ALV_HIERSEQ_LIST_DISPLAY) in which the last line is a sum of one field. However, there is another field where I want to get the average, not the sum. Is there a way to do it?

Thanks a lot.

Fabio

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

Hi Fabrio,

For calculating the averages, you have to set the

DO_SUM = 'C' instead of 'X' in the field catalog for that column.

Regards,

Ravi

4 REPLIES 4
Read only

Former Member
0 Likes
544

Hi Fabrio,

For calculating the averages, you have to set the

DO_SUM = 'C' instead of 'X' in the field catalog for that column.

Regards,

Ravi

Read only

0 Likes
543

It works for REUSE_ALV_GRID_DISPLAY, but not for REUSE_ALV_HIERSEQ_LIST_DISPLAY. Any clues?

null

Read only

0 Likes
543

Any other option ?

Thanks

Read only

0 Likes
543

set the field H_FTYPE to 'AVG' and the field DO_SUM to 'X'.

Zazáááá