sdsh_ddl_obj_names
List of all cds entities
sdsh_ddl_obj_names is a CDS View that provides data about "List of all cds entities" in SAP S/4HANA. It reads from 3 data sources (ddldependency, ddldependency, ddddlsrc) and exposes 6 fields.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| ddldependency | dep_db_view | left_outer |
| ddldependency | dep_entity | inner |
| ddddlsrc | src | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SSHDDLOBJNAMESV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | List of all cds entities | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CDS_DDL | ddddlsrc | ddlname | ||
| CDS_ENTITY | ddldependency | objectname | ||
| CDS_DB_VIEW | ddldependency | objectname | ||
| CDS_PARENT_VIEW | ddddlsrc | parentname | ||
| CDS_OBJECT_TYPE | ddddlsrc | source_type | ||
| STATE | ddddlsrc | as4local |
@AbapCatalog.sqlViewName: 'SSHDDLOBJNAMESV'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'List of all cds entities '
define view sdsh_ddl_obj_names
as select from ddddlsrc as src
inner join ddldependency as dep_entity on src.ddlname = dep_entity.ddlname
and src.as4local = dep_entity.state
and dep_entity.objecttype = 'STOB'
left outer join ddldependency as dep_db_view on src.ddlname = dep_db_view.ddlname
and src.as4local = dep_db_view.state
and dep_db_view.objecttype = 'VIEW'
{
src.ddlname as CDS_DDL,
dep_entity.objectname as CDS_ENTITY,
dep_db_view.objectname as CDS_DB_VIEW,
src.parentname as CDS_PARENT_VIEW,
src.source_type as CDS_OBJECT_TYPE,
src.as4local as STATE
}
//Correction for only list of cds views
// define view DDL_OBJECT_NAMES
// as select from ddddlsrc as src
// inner join ddldependency as dep_entity on src.ddlname = dep_entity.ddlname
// and src.as4local = dep_entity.state
// and dep_entity.objecttype = 'STOB'
//
// left outer join ddldependency as dep_db_view on src.ddlname = dep_db_view.ddlname
// and src.as4local = dep_db_view.state
// and dep_db_view.objecttype = 'VIEW'
// inner join dd02bnd as tf on src.ddlname = tf.strucobjn
// and tf.with_parameters <> 'X'
//
//{
// src.ddlname as CDS_DDL,
// dep_entity.objectname as CDS_ENTITY,
// dep_db_view.objectname as CDS_DB_VIEW,
// src.parentname as CDS_PARENT_VIEW,
// src.source_type as CDS_OBJECT_TYPE,
// src.as4local as STATE
//}
//where src.as4local = 'A'
// and src.source_type = 'V'
// or src.source_type = 'E'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DDDDLSRC",
"DDLDEPENDENCY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"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