2009 Jan 15 6:10 AM
Hi,
I am using ALV Object model(class CL_SALV_TABLE) .
i need to show count of row and average at the result row for two columns along with sum of other few column.
i have done with sum ,using cl_salv_aggregations->add_aggregation method.
please help me to get the average and count .
thanks in advance for your extended help.
Regards,
2009 Jan 16 2:08 AM
He,
adding mean value (average) should be same as adding sum using class CL_SALV_AGGREGATIONS. If you check domain SALV_DO_AGGREGATION you can see all allowed aggregations.
1 Total
2 Minimum
3 Maximum
4 Mean Value
Unfortunately for you, there is no function COUNT.
Cheers
2009 Jan 16 2:08 AM
He,
adding mean value (average) should be same as adding sum using class CL_SALV_AGGREGATIONS. If you check domain SALV_DO_AGGREGATION you can see all allowed aggregations.
1 Total
2 Minimum
3 Maximum
4 Mean Value
Unfortunately for you, there is no function COUNT.
Cheers
2009 Jan 20 4:03 PM
If you add a column and populate every row with a value of 1, you can get counts using standard ALV totaling functionality.