Modern ABAP syntax & ABAP Objects
Inline declarations, constructor expressions (VALUE, NEW, CONV, CORRESPONDING, REDUCE, FILTER, COND, SWITCH), string templates, table expressions and grouping, classes and interfaces, class-based exceptions, ABAP Unit and test doubles, clean ABAP.
Start with question 3Have Pro? Start at 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.
5 · Worth knowing 1 question
5 of 10, points on three or more checks.
4 · Good to know 6 questions
4 of 10.
- How does CORRESPONDING work? Explain MAPPING and EXCEPT, and what can go wrong.Pro
- How do table expressions work, and what happens when the line does not exist?
- What is the difference between a field symbol and a data reference, and when do you use each?
- How do class-based exceptions work in ABAP? Cover the three base classes, TRY and CLEANUP, and resumable exceptions.Pro
- Walk me through VALUE, NEW, CONV and CAST. What does each construct?Pro
- A legacy class does a SELECT and calls a function module. How do you make it unit-testable? Compare dependency injection, test doubles and test seams.Pro
3 · Later 7 questions
3 of 10.
- What are inline declarations in ABAP, and when would you not use them?
- Explain standard, sorted and hashed internal tables. When would you add a secondary key?
- Explain constructors, class constructors, friends, and how you would implement a singleton or factory in ABAP.Pro
- Rewrite this old-style snippet in modern ABAP. Which release does each feature need, and which Clean ABAP rules apply?Pro
- An internal table of 2 million sales items takes 40 minutes in a report that totals by customer. How do you fix it with modern ABAP?Pro
- When do you use COND and SWITCH, and what happens if no branch matches?Pro
- This REDUCE gives the wrong total: find the bug.Pro
2 · Later 1 question
2 of 10.