Performance Part 8: HANA Pushdown with Open SQL, CDS and AMDP
Preview · a free account unlocks the full lesson
Move data-intensive logic to SAP HANA: code-to-data principle, aggregations and joins in Open SQL, CDS views for reusable models with calculations and associations, AMDP for procedural SQLScript, when pushdown helps and when it doesn't, and keeping classic ABAP readable.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 2 through 7 of this series focused on reducing round trips and the volume of data moved; on HANA, you can go further and actually compute inside the database. This is code-to-data pushdown: let HANA filter, join, aggregate, and calculate, and return only the result, instead of transferring raw rows to ABAP and doing the work there.
The reason this matters is that HANA is in-memory and columnar, so aggregations and scans over many rows are fast there, while transferring millions of rows to the application server just to sum them in ABAP wastes both time and memory.
There are three levels of pushdown. The first is good Open SQL: aggregates with GROUP BY and HAVING, JOINs, subqueries, CASE expressions, and arithmetic (depending on the release) — classic syntax still works for SUM, COUNT, and GROUP BY, while the newer syntax offers more expressions.
The second is CDS views, defined in ADT (Eclipse) as a SELECT with joins or associations, calculated fields, aggregations, and parameters; they're reusable across reports, OData, and analytics, and are consumed in ABAP just like a table, with a plain SELECT FROM zcds_view, and they can carry annotations for authorization (DCL), analytics, and UI.
The third is AMDP: an ABAP class whose methods are implemented in SQLScript, using BY DATABASE PROCEDURE or FUNCTION FOR HDB, for complex multi-step set logic that can't be expressed in CDS or Open SQL; it can be debugged with the AMDP debugger in ADT.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Related SAP topics
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.