ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.5x →  News for ABAP Release 7.50 → 
Mail Feedback

Expressions and Functions in ABAP Release 7.50


1. Predicate Expression for Type Inspection

2. Case Distinction for Type Inspection

3. Enhanced Type Interference in Constructor Expressions

4. Object Component Selector After Table Expressions



Modification 1  

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.



Modification 2  

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.



Modification 3  

Enhanced Type Interference in Constructor Expressions

If the character # is specified for the result type, enhancements were made for the following constructor expressions:





Modification 4  

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.