ANA_AQD_ANNO_DATACATEGORY
CDS view to filter on header annotation
ANA_AQD_ANNO_DATACATEGORY is a CDS View that provides data about "CDS view to filter on header annotation" in SAP S/4HANA. It reads from 1 data source (ddheadanno) and exposes 3 fields. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ddheadanno | a_ddheadanno | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| p_datacategory | abap.char(10) |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | ANA_AQD_ENDUSERLABEL | _enduserlabel | _enduserlabel.name = a_ddheadanno.strucobjn |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ANA_AQD_DATAC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | CDS view to filter on header annotation | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| name | ddheadanno | strucobjn | ||
| description | _enduserlabel | description | ||
| type | ddheadanno | value |
// ****************
// This CDS view returns the datasource which have the datacategory matching the parameter passed.
// Parameter Definition:
// - p_datacategory: Data category of the views (#CUBE / #DIMENSION)
// Annotation ex:
// "ANALYTICS.DATACATEGORY:#CUBE"
//
// *******************
@AbapCatalog.sqlViewName: 'ANA_AQD_DATAC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck:#NOT_REQUIRED
@EndUserText.label: 'CDS view to filter on header annotation'
define view ANA_AQD_ANNO_DATACATEGORY
with parameters
p_datacategory : abap.char(10)
as select from ddheadanno as a_ddheadanno
association [0..1] to ANA_AQD_ENDUSERLABEL as _enduserlabel on _enduserlabel.name = a_ddheadanno.strucobjn
{
a_ddheadanno.strucobjn as name,
_enduserlabel.description,
a_ddheadanno.value as type
}
where
a_ddheadanno.value = :p_datacategory
and a_ddheadanno.name = 'ANALYTICS.DATACATEGORY';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ANA_AQD_ENDUSERLABEL",
"DDHEADANNO"
],
"ASSOCIATED":
[
"ANA_AQD_ENDUSERLABEL"
],
"BASE":
[],
"VERSION":0
}
}*/
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