Skip to content

ABAP Keyword Documentation →  ABAP - Release-Specific Changes →  Changes in Release 7.0 and its EhPs →  Changes in Release 7.0, EhP2 

Expression Positions in Release 7.0, EhP2


1. Using functions and expressions


2. Method chainings


3. Access to components of structured return values


4. Built-in functions with multiple arguments

Other versions: 7.31 | 7.40 | 7.54


Note

The program DEMO_EXPRESSIONS shows examples of the enhanced expressions in Release 7.0, EhP2.

Modification 1

Using Functions and Calculation Expressions

The usability of functions and expressions in operand positions has been substantially improved in Release 7.0, EhP2:

From Release 7.0, EhP2, the following general expression positions are available:

Before Release 7.0, EhP2, operand positions on the right side of assignments with = were the only general expression positions.


Note

From EhP1, the character-like arguments of description functions are (with one exception) character-like expression positions. Before EhP1, they were character-like functional operand positions.

Modification 2

Method Chainings

As well as the previous chained names, operand positions that accept functional methods now also accept method chainings, that is chained method calls and chained attributes accesses.

Modification 3

Access to Components of Structured Return Values

If the result of a functional method or method chaining is structured, the call can (like the name of a structure) be written directly in front of the structure component selector to access a component of the result.

Modification 4

Built In Functions with Multiple Arguments

Release 7.0, EhP2 introduces new built-in functions that can now accept multiple arguments. A built-in function of this type is called in the same way as a functional method with multiple input parameters.

... func( p1 = arg1 p2 = arg2 ... ) ...

The new functions are include: