This document discusses various annotations used to define CDS views for different purposes and consumption. Key annotations include @VDM.viewType to define the view as basic, composite, or cube; @Analytics annotations to define whether the view supports queries, data category, and extraction; @OData.Publish to expose the view via OData; and @Metadata annotations to allow extensions and ignore propagated annotations.
This document discusses various annotations used to define CDS views for different purposes and consumption. Key annotations include @VDM.viewType to define the view as basic, composite, or cube; @Analytics annotations to define whether the view supports queries, data category, and extraction; @OData.Publish to expose the view via OData; and @Metadata annotations to allow extensions and ignore propagated annotations.
This document discusses various annotations used to define CDS views for different purposes and consumption. Key annotations include @VDM.viewType to define the view as basic, composite, or cube; @Analytics annotations to define whether the view supports queries, data category, and extraction; @OData.Publish to expose the view via OData; and @Metadata annotations to allow extensions and ignore propagated annotations.
@Analytics.DataCategory: #DIMENSION , FACT,CUBE(crearte trasaint provider) @Analytics.Query: # TRUE,FALSE @Analytics.dataExtraction.enabled: #TRUE, FALSE If set to true, the view is suitable for data replication. @ObjectModel.dataCategory: #TEXT, HIERARCHY @Odata.Publish: TRUE @ObjectModel.representativeKey: [ 'SalesDocument' ] @AbapCatalog.preserveKey: true @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #NOT_REQUIRED @EndUserText.label: 'Delivery Item data( Basic View , Fact table)' Used below Annotations to define size and data class of the CDS view based on requirements @ObjectModel.usageType.dataClass: #TRANSACTIONAL @ObjectModel.usageType.serviceQuality: #B @ObjectModel.usageType.sizeCategory: #XL
It is necessary to publish the CDS view as an OData Service to consume it in Fiori
Apps. Below annotation helps. @ODATA.Publish: true @Search.searchable: True: This annotation is necessary to define that the search function is supported for the view.
for anayltical @Analytics.query: true are transient queries which can be interpreted by the Analytic Engine. @Analytics.dataCategory:#CUBE are transient BW providers.
Meta Data Extension (MDE)
CDS Metadata Extension (MDE), you define CDS annotations for a CDS view outside of the corresponding data definition. A CDS metadata extension is always assigned to a layer such as core, industry, partner or customer. MDEs are possible for CDS views but NOT yet for CDS table functions. @Metadata.allowExtensions :===annotation with the value true is added. This annotation allows explicitly the use of metadata extensions.