DDCDS_BASE_OBJECTS
Hierarchy of CDS VIEWS
DDCDS_BASE_OBJECTS is a CDS View that provides data about "Hierarchy of CDS VIEWS" in SAP S/4HANA. It reads from 3 data sources (ddcds_fromclause, DDCDS_VIEW_FROM_STOB, DDCDS_VIEW_FROM_STOB) and exposes 7 fields. It has 1 association to related views. Part of development package SD_CDS_INFO_PROVIDER.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ddcds_fromclause | _hierarchy | union |
| DDCDS_VIEW_FROM_STOB | trinity | from |
| DDCDS_VIEW_FROM_STOB | trinity | union |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | DDCDS_VIEW_FROM_STOB | _view_to_stobname | _view_to_stobname.viewname = _joins.tabname |
Annotations (2)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Hierarchy of CDS VIEWS | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| source | DDCDS_VIEW_FROM_STOB | stobname | ||
| target | dd08b | strucobjn_t | ||
| target | _joins | tabname | ||
| type | ||||
| target | ||||
| type | ||||
| name |
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Hierarchy of CDS VIEWS'
define view entity DDCDS_BASE_OBJECTS
as select from DDCDS_VIEW_FROM_STOB as trinity
join dd08b on trinity.stobname = dd08b.strucobjn
{
trinity.stobname as source,
dd08b.strucobjn_t as target,
case
when dd08b.associationkind = 1 then 'composition '
else 'association '
end as type,
dd08b.associationname as name
// ,
// _to_parent
}
union select from DDCDS_VIEW_FROM_STOB as trinity
join dd26s as _joins on _joins.viewname = trinity.viewname
association [1..1] to DDCDS_VIEW_FROM_STOB as _view_to_stobname on _view_to_stobname.viewname = _joins.tabname
association to ddtypes on _joins.tabname = ddtypes.typename
{
trinity.stobname as source,
_joins.tabname as target,
'from' as type,
'' as name
}
union select from ddcds_fromclause as _hierarchy
{
entity_name as source,
cast( parameter_value as ddstrucobjname ) as target,
'from' as type,
'child2parent' as name
}
where
parameter_name = 'HIER_SOURCE'
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