Get Example source ABAP code based on a different SAP table
ABAP_CDS - Feature Tables The following sections shows all available language elements of the CDS TDL >, CDS DDL>, and CDS DCL > in ABAP CDS> and their release dates. For further information on the release dates, see TITLE >. ITOC In addition to the language elements shown here, CDS source code can also contain annotations> with metadata.
TDL
CDS Type Definitions
Keywords and AdditionsLanguage Element>Meaning>ABAP Release> DEFINE TYPE>> TOKEN DEFINE TYPE Defines a CDS simple type> in CDS TDL>. 7.91, 7.58
FDL
CDS Function Definitions
Keywords and AdditionsLanguage Element>Meaning>ABAP Release> DEFINE SCALAR FUNCTION ... WITH PARAMETERS ... RETURNS ...>> TOKEN DEFINE SCALAR FUNCTION WITH PARAMETERS RETURNS Defines a CDS scalar function> 7.93, 7.58 TYPE OF>> TOKEN TYPE OF Typing by reference to another parameter in a CDS scalar function>. 7.93, 7.58 WITH REFERENCE TYPE>> TOKEN WITH REFERENCE TYPE CDS amount and quantity handling in CDS scalar functions. 7.93, 7.58 WITH REFERENCE TYPE CASEH WHEN ... $[AND ... $] THEN ... $[ELSE ... $] END>> TOKEN WITH REFERENCE TYPE CASE WHEN AND THEN ELSE END Dynamic specification of a reference type in CDS scalar functions. 7.93, 7.58
DDL
CDS Annotation Definitions
Keywords and AdditionsLanguage Element>Meaning>ABAP Release> define annotation ...>> TOKEN DEFINE ANNOTATION Defines a CDS annotation> 7.69, 7.52 enum>> TOKEN ENUM Defines enumeration symbols of a CDS annotation> 7.69, 7.52 default>> TOKEN DEFAULT Defines default values of a CDS annotation> 7.69, 7.52 array of>> TOKEN ARRAY OF Defines an annotation arras>. 7.69, 7.52
CDS View Entities
Keywords and AdditionsLanguage Element>Meaning>ABAP Release> DEFINE VIEW ENTITY...> AS>> Defines a CDS view entity >. 7.80, 7.55 ROOT>> TOKEN ROOT Defines a CDS view entity> as a root entity> 7.75, 7.54 WITH PARAMETERS>> TOKEN WITH PARAMETERS Defines input parameters of a CDS view entity. 7.80, 7.55 SELECT ... FROM>> TOKEN SELECT FROM SELECT> statement of a CDS view entity. 7.80, 7.55 SELECT DISTINCT ... FROM>> TOKEN SELECT DISTINCT FROM Duplicates are removed from the result set. 7.83, 7.56 INNER JOIN ... ON>> TOKEN INNER JOIN ON Inner join in a SELECT> statement>7.80, 7.55 LEFT$|RIGHT OUTER JOIN ... ON> > TOKEN LEFT RIGHT OUTER JOIN ON Outer join in a SELECT> statement>7.80, 7.55 CROSS JOIN ... ON> > TOKEN CROSS JOIN ON Cross join in a SELECT> statement>7.80, 7.55 ASSOCIATION ... TO ... AS ... ON>> TOKEN ASSOCIATION TO AS ON Defines a CDS association in a SELECT> statement>. 7.80, 7.55 OF ${{EXACT ONE} | MANY | ONE$} TO ${{EXACT ONE} | MANY | ONE$}>> TOKEN OF EXACT ONE MANY ONE TO EXACT ONE MANY ONE Cardinality specification written in words. 7.91, 7.58 [min...max]>> TOKEN min max Numeric cardinality specification. 7.80, 7.55 WITH DEFAULT FILTER>> TOKEN WITH DEFAULT FILTER Specifies a default filter condition of a CDS association. 7.80, 7.55 1:>> TOKEN 1: Attribute of a path expression> 7.80, 7.55 INNER ... WHERE>> TOKEN INNER WHERE Attribute of a path expression> 7.80, 7.55 LEFT OUTER ... WHERE>> TOKEN LEFT OUTER WHERE Attribute of a path expression> 7.80, 7.55 COMPOSITION ... OF>> TOKEN COMPOSITION OF Defines a CDS composition. 7.75, 7.54 ASSOCIATION TO PARENT ... AS ... ON > > TOKEN ASSOCIATION TO PARENT AS ON Defines a CDS to-parent association. 7.75, 7.54 KEY>> TOKEN KEY Defines an element of a SELECT> list > as key field. 7.80, 7.55 AS>> TOKEN AS Defines an alias name for an element of a SELECT>> list. 7.80, 7.55 $PROJECTION.*>> TOKEN $PROJECTION.* Reuses expressions from the SELECT> list> of a CDS view entity > lbr in an operand position of the SELECT> list of the same CDS view entity.7.84, 7.56 WHERE ...>> TOKEN WHERE WHERE> clause of a SELECT > statement>. 7.80, 7.55 GROUP BY ...>> TOKEN GROUP BY GROUP-BY> clause of a SELECT> statement>. 7.80, 7.55 HAVING ...>> TOKEN HAVING HAVING> clause of a SELECT > statement>. 7.80, 7.55 EXCEPT ...>> TOKEN EXCEPT EXCEPT> clause of a SELECT > statement>.7.85, 7.56 INTERSECT ...>> TOKEN INTERSECT INTERSECT> clause of a SELECT > statement>.7.85, 7.56 UNION $[ALL$]>> TOKEN UNION ALL UNION> clause of a SELECT > statement>. 7.85, 7.56