Aggregate Functions in New Syntax

Опубликовано: 19 Май 2026
на канале: The Conscious Technologist
119
5

n ABAP New Syntax, aggregate functions allow you to perform calculations directly on internal tables—similar to SQL aggregates—without writing explicit loops.

They are written using the REDUCE or VALUE expressions and let you quickly compute totals, counts, minimums, maximums, or averages in memory. Common ones include:

SUM( ) → Adds up all values of a numeric field.

MIN( ) → Finds the smallest value.

MAX( ) → Finds the largest value.

AVG( ) → Calculates the average (manually via REDUCE).

COUNT( ) → Counts number of entries meeting a condition.

They make the code concise, readable, and avoid the need for explicit LOOP ... AT ... processing.

Learn Fiori : https://topmate.io/abapbean/1680627?c...

Get each step of DDIC Documented here : https://topmate.io/abapbean/1676892

My Favourite SAP Press Books :
1. RAP : https://amzn.to/3H6Pw0u
2. Fiori : https://amzn.to/46FrLXF
3. HANA Development : https://amzn.to/46FrLXF
4. Devops with SAP : https://amzn.to/45mpXkd

What I am reading this month :
https://amzn.to/46XxZm3