SAP AGGREGATE - Reference

Get Example source ABAP code based on a different SAP table
  



aggregate

ABAP Reference
ABAP Code Snippet


ABAP Syntax ... { MAX( [DISTINCT] col )

| MIN( [DISTINCT] col )
| AVG( [DISTINCT] col )
| SUM( [DISTINCT] col )
| COUNT( DISTINCT col )
| COUNT( * )
| COUNT(*) } ... .
ABAP Code Snippet

What does it do? Aggregate expressions in the SELECT statement.

ABAP Addition MAX( [DISTINCT] col )
Maximum total of the values in the column col.
MIN( [DISTINCT] col )
Minimum total of the values in the column col.
AVG( [DISTINCT] col )
Average total of the values in the column col.
SUM( [DISTINCT] col )
Total of the values in the column col.
COUNT( DISTINCT col )
Number of different values in the column col.
COUNT( * ), COUNT(*)
Number of lines in the result quantity.