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, SP05 →
Expressions and Functions in ABAP Release 7.40, SP05
LET Expressions
The new LET expressions in the form
LET ... IN make it possible to define variables or field symbols as helper fields in expressions. Currently, LET expressions can be used in all
constructor expressions where this makes sense.
Component Operator
The component operator CORRESPONDING is a new
constructor operator that enables component by component assignments
to be made between structures or between internal operands at operand positions. Mappings between components are based by default on matching names and can be defined using mapping rules.
Table Comprehensions
Table comprehensions are an enhancement of the instance operator NEW or the value operator VALUE and are used to create the content of internal tables. One or more FOR expressions can now be specified as a subexpression of the constructor expression. These FOR expressions evaluate existing internal tables whose content can be used to construct the result within the loops.