Cds_view_annotation_query
CDS View Header Annotations
Cds_view_annotation_query is a CDS View that provides data about "CDS View Header Annotations" in SAP S/4HANA. It reads from 1 data source (Cds_View_Annotation_Position) and exposes 3 fields with key fields DDLSourceName, AnnotationName.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| Cds_View_Annotation_Position | ddh | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDSVIEWANNOQRY | view | |
| EndUserText.label | CDS View Header Annotations | view | |
| ObjectModel.usageType.dataClass | #META | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DDLSourceName | ddldependency | ddlname | |
| KEY | AnnotationName | Cds_View_Annotation_Position | AnnotationName | |
| AnnotationValue | Cds_View_Annotation_Position | AnnotationValue |
@AbapCatalog.sqlViewName: 'CDSVIEWANNOQRY'
@EndUserText.label: 'CDS View Header Annotations'
@ObjectModel.usageType.dataClass: #META
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #M
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view Cds_view_annotation_query
as select from Cds_View_Annotation_Position as ddh
left outer to one join ddldependency
on ddh.CDSName = ddldependency.objectname
and ddldependency.state = 'A' and ddldependency.objecttype = 'STOB'
//and ddddlsrc.as4local = 'A'
{
key ddldependency.ddlname as DDLSourceName,
key ddh.AnnotationName as AnnotationName,
ddh.AnnotationValue as AnnotationValue
}where ddldependency.ddlname is not null and ddh.AnnotationName != '' and ddh.AnnotationValue != ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"CDS_VIEW_ANNOTATION_POSITION",
"DDLDEPENDENCY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA