Academy · ABAP & RAP Development · 200 Practitioner
Modern ABAP Syntax for Classic ABAP Developers: Inline Declarations, Constructor Expressions and New Open SQL
A bridge for developers who learned ABAP on ECC: inline declarations and FINAL, string templates, VALUE, CORRESPONDING, REDUCE, FILTER, COND and SWITCH, table expressions and iteration, modern ABAP SQL with strict mode and released CDS views, and the statements ABAP for Cloud Development rejects. Each pattern is shown side by side with the classic form, with the behavior changes that catch refactorings out and the characterization tests that prove a refactoring is safe. Uses Contoso Motor Co.'s legacy core return code.
- 66 minutes
- 6 lessons + quiz
- ABAP / RAP Developer
Start the course
- 01Why syntax matters for ABAP Cloud11 min
- 02Inline declarations and string templates11 min
- 03Constructor expressions: VALUE, CORRESPONDING, REDUCE, FILTER, COND, SWITCH11 min
- 04Table expressions and internal table operations11 min
- 05Modern ABAP SQL11 min
- 06Refactoring safely: tests first11 min
- QZCourse quiz15 questions
What you’ll be able to do
- Read and write inline declarations and constructor expressions
- Replace READ TABLE/LOOP patterns with table expressions and iterations
- Write modern Open SQL with host expressions and strict mode
- Identify statements not allowed in ABAP Cloud
- Refactor classic code safely behind unit tests
Sources and further reading
- ABAP cheat sheet: Constructor Expressions · SAP Samples on GitHub
- ABAP cheat sheet: ABAP for Cloud Development · SAP Samples on GitHub
- ABAP cheat sheet: ABAP SQL · SAP Samples on GitHub
- ABAP Keyword Documentation: Inline Declarations · SAP Help Portal
- ABAP Keyword Documentation: ABAP Language Versions · SAP Help Portal
- Finally, a declaration of immutable variables with FINAL in ABAP · SAP Community (SAP blog)
- Clean ABAP style guide · SAP on GitHub
- ABAP cleaner · SAP on GitHub