cancel
Showing results for 
Search instead for 
Did you mean: 

Aggregation of specific rows

Former Member
0 Kudos

Hello,

I have an ALV with sort rule and aggregation in some fields.

In one field the aggregation type is average. In some rows in the ALV the value in this field is 0. Now all rows included in the aggregation. I want to include in the aggregation only rows with value that different than 0 in that field.

How can I do that?

Thanks,

Ednri.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Someone?

Former Member
0 Kudos

Hi,

Take the ALV Table reference value( i.e LV_VALUE) into global attribute. While binding data into ALV table, read the records having NULL values and if sy-subrc = 0, switch off the aggregation(i.e

group_aggregation = abap_false.)

Try this if it can help you.

Thanks

KH

Former Member
0 Kudos

You mean that each row in the ALV has 'group_aggregation' property? I don't think so.