ABAP SQL, code pushdown & performance
Modern ABAP SQL (joins, CTEs, aggregates, window functions, FOR ALL ENTRIES pitfalls), AMDP and CDS table functions, when to push code down, buffering, and finding slow code with SQL trace, ABAP trace and ATC.
Start with question 1
15 questions, in the order to study them. 5 free, 10 in Pro (see plans). How we order them
As you check answers, each question gets a mark: done, due, missed.
4 · Good to know 4 questions
4 of 10.
- Joins or FOR ALL ENTRIES: what are the pitfalls of FOR ALL ENTRIES, and when is each the right choice?
- What is the difference between SELECT SINGLE and SELECT ... UP TO 1 ROWS, and when do you read with a full key?
- Which tools do you use to find slow ABAP code (ST05, SAT, SQL Monitor, ATC), and how do you decide which to use?Pro
- What is an AMDP, how do you create one, and what are the restrictions on AMDP methods, including in ABAP Cloud?Pro
3 · Later 4 questions
3 of 10.
- A batch job reads 10 million rows and dies with a memory dump or runs for hours. How do you process mass data in ABAP: packages, cursors, SELECT in loops, parallel processing?Pro
- A requirement needs a complex calculation over millions of rows. How do you decide between ABAP SQL, a CDS view, a CDS table function or an AMDP, and how do you debug and prove an AMDP?Pro
- What does code pushdown (code-to-data) mean in ABAP on SAP HANA, what do you push down, and what do you leave in ABAP?
- Which aggregate, expression and query features does modern ABAP SQL give you (GROUP BY, HAVING, CASE, functions, WITH, UNION, window functions), and what release does each need?Pro
2 · Later 7 questions
2 of 10.
- What is different about modern ABAP SQL compared with the classic Open SQL you learned first, and what does strict mode mean?
- What is a CDS table function, how is it implemented, and when would you use one instead of a normal CDS view entity?Pro
- Why can a SELECT be slow on SAP HANA, and when do you need an index?Pro
- Scenario: a custom report takes 40 minutes on 10 million rows. Walk me through what you do.Pro
- Scenario: your fix to a slow report looks good in the test system, but the business says it is still slow in production. How do you read the traces and find out why?Pro
- How does client handling work in ABAP SQL, why use CDS entities as data sources, and can you SELECT from an internal table?Pro
- How does table buffering work, which buffering types exist, and when is the buffer bypassed?