Get Example source ABAP code based on a different SAP table
ABAP_CDS - CDS Functions, Overview A CDS function> is a function that can be used in operand positions of CDS entities>. The following figure shows the ontology of CDS functions. IMAGE CDS_Functions.jpg 574 268 There are the following categories of CDS functions:
User-defined functions>:
Custom function that allows developers to define and implement their own custom logic.
There is only one type of user-defined function, namely the SQL-based scalar function >.
System functions>:
CDS function defined in the CDS function definition language ( CDS FDL>) that is delivered by SAP for use by partners and customers. System functions are classified with the C1 contract>.
Currently, SAP delivers analytical scalar functions> and SQL-based scalar functions> as system functions.
Latest notes:
ABAP CDS also delivers built-in functions>:
Built-in functions are database functions managed by ABAP CDS.
Can be categorized into numeric functions>, string functions > , date and time functions>, and conversion functions>.
Built-in functions are realized as scalar functions on the database. However, built-in functions are not defined as CDS function definitions> in FDL source code> and therefore, they are not included in the figure above.
All available built-in CDS functions can be found in the following topic TITLE >.
Despite their name, CDS table functions> are not CDS functions>. They encapsulate AMDP table functions>, but they belong to the technical category of CDS data definitions>, because they share the same characteristics as CDS data definitions. In particular, CDS data definitions can be used as data source in other CDS entities and they can be used after the TYPE> addition to reference their structured type in ABAP programs. NON_V5_HINTS ABAP_HINT_END