DBC2ABAP_CDS_TABLE_ELEMENTS
CDS Table Entities in SQL1 Services
DBC2ABAP_CDS_TABLE_ELEMENTS is a CDS View that provides data about "CDS Table Entities in SQL1 Services" in SAP S/4HANA. It reads from 5 data sources (dd03nd, DDCDS_ENTITY_ELEMENTS_INTERN, dd02b, sql1_head, E_SRVD_RT_ENTITIES) and exposes 4 fields with key field element_name. Part of development package SABP_DBC2ABAP_RUNTIME.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| dd03nd | dd03 | inner |
| DDCDS_ENTITY_ELEMENTS_INTERN | elem | inner |
| dd02b | enti | inner |
| sql1_head | sql1 | from |
| E_SRVD_RT_ENTITIES | srvd | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | CDS Table Entities in SQL1 Services | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | element_name | DDCDS_ENTITY_ELEMENTS_INTERN | element_name | |
| is_key | DDCDS_ENTITY_ELEMENTS_INTERN | is_key | ||
| ddic_type | DDCDS_ENTITY_ELEMENTS_INTERN | data_type_d | ||
| ddic_length | DDCDS_ENTITY_ELEMENTS_INTERN | length |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'CDS Table Entities in SQL1 Services'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
define view entity DBC2ABAP_CDS_TABLE_ELEMENTS
as select from sql1_head as sql1
inner join E_SRVD_RT_ENTITIES as srvd on srvd.service = sql1.service_def_name
and srvd.exposed_artifact_type = 'E'
inner join DDCDS_ENTITY_ELEMENTS_INTERN as elem on elem.entity_name = srvd.exposed_artifact
and elem.entity_state = 'A'
inner join dd02b as enti on enti.strucobjn = srvd.exposed_artifact
and enti.as4local = 'A'
and enti.strucobjclass = 'TABENTITY'
inner join dd03nd as dd03 on dd03.strucobjn = elem.entity_name
and dd03.as4local = 'A'
and dd03.nodename = '.NODE1'
and dd03.fieldname = elem.element_name
{
key sql1.sql1_name as sql_service_name,
key case when srvd.exposed_alias = ' '
then srvd.exposed_artifact
else srvd.exposed_alias end as external_entity_name,
key elem.element_name as element_name,
srvd.exposed_artifact as internal_entity_name,
sql1.sql1_name_raw as sql_service_name_raw,
case when srvd.exposed_alias_raw = ' '
then elem.entity_name_raw
else srvd.exposed_alias_raw end as external_entity_name_raw,
elem.element_name_raw as element_name_raw,
elem.element_position as element_position,
elem.is_key as is_key,
elem.data_type_d as ddic_type,
elem.length as ddic_length,
elem.decimals as ddic_decimals,
coalesce( elem.direct_element_label,
elem.data_element_label_m ) as ddic_label,
cast( case
when elem.is_key = 'X' then 0
when dd03.notnull = 'X' then 0
else 1 end as sql1_nullable ) as nullable
}
where
sql1.state = 'A'
and sql1.sql1_name <> 'S_PRIVILEGED'
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