SAP NEWS-750-EXPRESSIONS



Get Example source ABAP code based on a different SAP table
  



Expressions and Functions in ABAP Release 7.50
ITOC

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN Enhanced Type Interference in Constructor Expressions

If the character # is specified for the result type, enhancements were made for the following constructor expressions:
In the case of the constructor operator REDUCE an attempt is now made to evaluate the first declaration after INIT if the type of the operand position cannot be identified.
When the constructor expressions
CONV #( ... )
VALUE #( )
REDUCE #( ... )
COND #( ... )
SWITCH #( ... ) 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.

ABAP_MODIFICATION_NN 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.