Get Example source ABAP code based on a different SAP table
ABAP_CDS in ABAP Release 7.51 ITOC
ABAP_MODIFICATION_NN Client Handling>
The new annotation @ClientHandling> specifies the client handling of CDS views> and CDS table functions>. It replaces the annotation @ClientDependent> and makes it obsolete.
ABAP_MODIFICATION_NN Expressions and Functions>
The following enhancements have been implemented:
CAST> expression>
In a CAST> expression>, operands of the types SSTRING> can now be cast to types other than themselves and back. Here, the type SSTRING> behaves like the data type CHAR>.
In a CAST> expression>, operands of the types CLNT>, LANG>, TIMS>, and UNIT> can now be cast to the types CHAR> and SSTRING>. Here, the target type must be specified as a data element.
In a CAST> expression>, the data types CHAR>, SSTR>, and NUMC> can now be cast to ACCP>, and the other way round.
Aggregate expressions> can now be used as operands in a CAST> expression>.
New Functions
The following additional string functions are now supported: UPPER>> and LOWER>>
The following additional date/time functions are now supported: ABAP_SYSTEM_TIMEZONE>>, ABAP_USER_TIMEZONE>>, TSTMP_TO_DATS>>, TSTMP_TO_TIMS>>, TSTMP_TO_DST>>, and DATS_TIMS_TO_TSTMP>>
A new built-in conversion function FLTP_TO_DEC>> can be used to convert arguments of type FLTP> to packed numbers.
An addition AS dtype>> can now be specified for the aggregate expression> AVG> to determine the data type of the return value.
Conditions
Built-in functions> can now be specified on the right side of a cond_expr>> condition of a WHERE> condition>, an ON> condition>, a filter condition >, or a complex case distinction>.
In cond_expr>> conditions, fields of data sources of the type ACCP> can now be compared> with fields of the same type, and with literals of the type NUMC>. The following changes have been made:
In CAST> expressions> to data elements, the restriction no longer applies that the data type, the length, and the number of decimal places of operand and target data type must match precisely. This restriction can now be applied as an optional restriction using the new addition PRESERVING TYPE>. This addition specifies explicitly that casts are to be applied to the semantic properties of a data element. PRESERVING TYPE> suppresses the syntax warning that handles casts of identical technical types.
ABAP_MODIFICATION_NN Cross Join>
As well as an inner and outer join, it is now possible to use a cross join> in a SELECT> statement>.