ABAP CDS Feature Scope Overview

This document provides an overview of the feature scope of ABAP Core Data Services as of ABAP Platform 2023. Download the Document

PublicPUBLICABAP Core Data Services (CDS) Feature ScopeOverview
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 2 / 5CDS objectsOverview of available CDS objects delivered with ABAP Platform 2023.CDS object Syntax UseCDS entity Data modeling.CDS entity extension extend view entity Extending CDS entities.CDS metadataextensionannotate entity Adding annotations to aCDS object in a separaterepository object.CDS annotationdefinitiondefine annotation Adding semanticinformation to CDSobjects.CDS entity buffer define view entitybuffer onBuffer settings for CDSentities.CDS type define type <name>[enum]User-defined data type.CDS scalar function define scalarfunctionUser-defined function,implemented in AMDP.CDS access control define role on Authorization control.CDS entitiesOverview of available CDS entities delivered with ABAP Platform 2023.CDS entity Syntax UseView entity define view entity Data selection.Projection view define view entity... as projection onFine-tuning a datamodel for a service-specific use case.Table function define tablefunctionData selection usingAMDP.Hierarchy define hierarchy Wrapping of HANA-native hierarchyfunctions.Custom entity define customentityData selection using anABAP class.Abstract entity define abstractentityModeling a structure.DDIC-based view* define view Data selection.
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 3 / 5*obsolete. Use a view entity instead.AnnotationsAnnotations are used to enhance the source code with meta information. There are ABAP annotations thatare evaluated by the ABAP runtime, and framework-specific annotations that are evaluated by specificsoftware components. Here are some examples:ABAP annotation Framework-specificannotation@AbapCatalog @Analytics@EndUserText @Consumption@Semantics @UIThe complete list with over 1000 annotations and their documentation can be found in the ABAP KeywordDocumentation ABAP CDS - SAP Annotation Documentation. In ADT, the annotation documentation isavailable under F2.Data types and type conversions in ABAP CDS Built-in CDS types are written with the prefix abap., for example, abap.int4. Simple types and enumerated types are user-defined CDS types.Conversions between data types are done with the cast operator:CAST( <operand> AS <dtype> [PRESERVING TYPE] )AssociationsAssociations can be used to define relationships between CDS entities. They are instantiated as a joinexpression as soon as a field from the association target is included in the current entity (“join-on-demand”).Types of associations: Association To-parent association To-child associationSyntax:association [cardinality] [to] <assoc_target> as <_assoc> on <condition>The names of associations start with an underscore (_).To expose a CDS association for reuse, write its name in the select list (_assoc). No join is generated in thiscase.To include a field from an association source in the select list, use a path expression, i.e. a concatenation ofexposed associations. This automatically generates a join expression in the SQL CREATE statement. Example:_assoc1._assoc2.field_name.