AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.40 and its SPs → News for ABAP Release 7.40, SP02 →
Internal Tables in ABAP Release 7.40, SP02
Table Expressions
The new table expressions allow reads to be performed on internal tables in operand positions.
Built-In Functions for Internal Tables
The following functions were introduced:
Explicit Definition of an Empty Key
The new addition EMPTY KEY
of the statements TYPES, DATA, and so on can be used to define an
empty table key explicitly for standard tables. Without this addition, empty table keys occur only if the
standard key of a standard table does not contain any components suitable as key fields.
Table Sharing for Boxed Components
Until now there was no table sharing if the line types contained
boxed components. This restriction has now been lifted.
References in Dynamically Specified Components
Object component selectors can now be specified when
components are specified dynamically (this was not
previously the case). However, those specifications can be made that are statically possible. For example,
when using ASSIGN attributes cannot be accessed that are not known statically. This is the case, for example, when using superclass references to access subclass components.
Optimization of the WHERE Condition
The rules described under Optimization of the WHERE Condition have been modified as follows:
There was no syntax error or exception in these cases. Instead, all lines of the internal table were checked linearly when the statement was executed or reads performed using the primary key. Optimized reads are guaranteed when using secondary keys, which is why the combinations above now produce syntax errors or raise exceptions. This represents an incompatible change.
Expression for Dynamic Sorts
In the statement SORT itab, the table (otab) can now be specified for dynamic sorts as the result of an expression or functional method call.