AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.5x → News for ABAP Release 7.50 →
Expressions and Functions in ABAP Release 7.50
Predicate Expression for Type Inspection
The new predicate expression IS INSTANCE OF can be used to detect the
dynamic type of an
object reference variable. This makes it possible to check the feasibility of a
downcast before it is executed.
Case Distinction for Type Inspection
The special statement CASE TYPE OF makes it possible to check the
dynamic type of an
object reference variable as a case distinction.
Enhanced Type Interference in Constructor Expressions
If the character # is specified for the result type, enhancements were made for the following constructor expressions:
are passed to generically typed formal parameters, no type could be derived for # from the operand position until now. From ABAP release 7.50, a concrete type is derived for # for generic formal parameter types where this is possible and feasible if this cannot be determined in any other way. This prevents syntax errors when procedures are called in cases where a previously concrete type of a formal parameter is expanded to a generic type.
Object Component Selector After Table Expressions
From ABAP release 7.50, the object component selector -> can be specified directly after
table expressions that return a reference variable. This makes it possible to access components of the referenced object. An exception are table expressions whose
result is determined with the value operator VALUE.