
Explore the new ABAP syntax introduced with SAP NetWeaver Application Server 7.40, learn how old and new syntax coexist, and assess compatibility with ABAP platform and S/4HANA.
Explore the differences between open sql and new open sql in ABAP, including enhanced expressions, joins, unions, and host variable escaping, plus access to built-in functions, views, and procedures.
Explore the new open SQL syntax for ABAP select queries, including case expressions, arithmetic operations, built-in functions like days between, and union and union all to populate runtime derived fields.
Explore inline data declarations in ABAP, allowing the compiler to infer types from context and replace explicit declarations, with examples for variables, internal tables, and read table usage.
Explain inline data declaration in open SQL using the new syntax, with comma-separated fields and host variable escaping, and emphasize local use and readability.
Compare old and new ABAP syntax using inline declaration in select statements. See how inline data avoids explicit types and simplifies internal tables and shows results.
Learn how table expressions simplify single-row reads in ABAP, compare new versus old syntax, handle not found exceptions with try catch, and use line exist and line index predicates.
Compare old and new ABAP table expression syntax to read internal tables, handle exceptions with try and catch, and use line exist and line index for data lookup.
Explore the value operator in ABAP as a constructor for structures and internal tables, filling them with initial values using explicit type after value or hash and implicit typing.
Explore the value operator in ABAP, comparing old and new syntax, inline declarations, and range tables, while learning to preserve internal table data with base and lines of internal table.
Explore for iteration expressions in SAP ABAP, using value, reduce, or new operators inside constructor expressions to build internal tables, with iteration variables and scope explained.
Practice the for expressions by comparing old and new syntax for internal tables, using value construction, iteration variables, and range tables to build and filter data.
Explore the corresponding operator in ABAP reports, learn how to map source to target components using addition base, mapping, except, and appending, and manage nested tables and initial values.
Compare old and new corresponding syntax for moving content between structures and internal tables, highlighting value constructor, addition base mapping, and appending behavior.
Discover how the reduce operator in ABAP constructs a result from iteration expressions to summarize large tables with syntax on data type specification, identity and init declarations, and for iterations.
Demonstrate using the reduce operator in an ABAP report to count records and sum values in an internal table with a for expression and inline data declaration.
Explore the cond and switch operators in ABAP to build conditional expressions with when and else, use hash for results, and throw exceptions as needed.
Master ABAP's cond and switch operators in reports by building internal tables with value and for, and handling exceptions with throw and catch.
Explore string expressions in ABAP to simplify code, comparing the concatenation operator with the old concatenate statement, and using string templates with embedded expressions for flexible formatting.
Explore string expressions in ABAP reports, including concatenation with the concatenate keyword and operator, string templates, spaces, converting to uppercase, and formatting dates with string functions.
SAP has introduced a modern approach to programming in SAP ABAP from ABAP 7.40 onwards. Often referred to as the 'New Syntax', the modern approach aims at creating an expression-oriented language. There are various new elements introduced and let's try to understand this with simple examples in this course.
Why learn New ABAP syntax?
Answer the below simple question if you think it is only a New ABAP syntax course you already know, and then check if you need this course. The answer is given at the end.
Que. Value in sy-tabix?
itab =
col1 col2
1 val1
2 val2
3 val3
wa = itab[ col1 = 2 col2 = val2 ].
If sy-subrc EQ 0.
Write: sy-tabix.
End if.
The new ABAP syntax introduces several new language elements, making it more expressive and powerful. For example, constructor expressions, table expressions, and inline declarations allow you to write more concise and expressive code.
It is important to stay up to date with the latest developments in ABAP syntax to utilize its capabilities fully. For example, New Open SQL syntax supports SAP HANA built-in functions. You can write select queries with CASE expression, arithmetic expressions and arithmetic functions.
Learning the new ABAP syntax can help you write better, more efficient, and more maintainable code.
What will you learn in this course?
We will discuss the topics below in 2 parts: Theory and Practice.
Inline Declaration
Table Expressions
Value Operator
FOR expressions
CORRESPONDING Operator
REDUCE Operator
COND and SWITCH Operator
STRING Expressions
EXACT Operator
CONV Operator
NEW Operator
REF Operator
CAST Operator
Filter operator
Open SQL vs New Open SQL
SELECT query with CASE expression, Arithmetic Expression and SAP HANA built-in functions.
Common Table Expression (CTE) in ABAP SQL
Reverse looping using STEP addition
Why Learn New ABAP Syntax with Us?
A new ABAP syntax is designed to simplify the life of an ABAP developer, but without knowing the proper functionality, it can be disastrous. For example, let's consider we have an ITAB internal table with 5 records, and the code gets into a situation where it is reading a record at index 6.
Old syntax: READ TABLE itab INTO wa INDEX indx
New syntax: wa = itab[ indx ].
With old syntax, if you didn't get the record for index 6, just sy-subrc will fail and nothing will go wrong but with the new syntax, the program leads to a short dump. In detail explanations in the course will help you understand all such important things.
No extra talk, straight to the point in detailed explanations with theory and practice sessions.
You will learn by comparing old syntax with new syntax for better understanding.
We have kept examples simple to understand in one go.
You will get all the ABAP programs discussed in the course for your practice and quick reference.
All the videos are less than 10 mins to keep you focused.
Test what you have learned through MCQs.
A few facts related to the New ABAP syntax:
The new syntaxes have been added without removing the old syntax, i.e., it's with backward compatibility.
Not necessary to have a HANA database.
Can be practiced on ECC and S/4 HANA systems.
To make the best of this course
1. Get access to an ABAP system and practice on it.
2. Follow the order in which lectures are arranged.
3. Based on the title, feel free to skip certain parts.
UPDATES:
06/30/2025: Added E-book for quick reference.
09/24/2024: For folks who prefer reading over videos, we have added articles that cover theory in simple words, along with code and output screenshots.
02/29/2024: Use AI ChatGPT to learn New Syntax.
Answer to the question asked: table expression doesn't modify system variable sy-subrc or sy-tabix.
sy-tabix = 0
Happy Learning!.