VB_CDS_VIEWS
List of All CDS Views
VB_CDS_VIEWS is a CDS View that provides data about "List of All CDS Views" in SAP S/4HANA. It reads from 6 data sources and exposes 13 fields with key field DDLSourceName. Part of development package S_DICT_VB.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| ddddlsrc | AllCDSViews | from |
| Cds_Sql_View | CDSSQLView | inner |
| Cds_Stob_View | CDSSTOBView | inner |
| dd02bnd | StructuredNodes | inner |
| ddddlsrc | Views | union_all |
| ddddlsrc | Views | union_all |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | VBCDSVIEWS | view | |
| EndUserText.label | List of All CDS Views | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DDLSourceName | ddddlsrc | ddlname | |
| CDSOriginKey | ddddlsrc | source_origin | ||
| SQLViewName | ||||
| CDSName | ||||
| ddlnameasDDLSourceName | ||||
| CDSOriginKey | ddddlsrc | source_origin | ||
| SQLViewName | anno | value | ||
| CDSName | ddddlsrc | ddlname | ||
| ddlnameasDDLSourceName | ||||
| CDSOriginKey | ddddlsrc | source_origin | ||
| SQLViewName | anno | value | ||
| CDSName | ddddlsrc | ddlname | ||
| SourceType | ddddlsrc | source_type |
@AbapCatalog.sqlViewName: 'VBCDSVIEWS'
@EndUserText.label: 'List of All CDS Views'
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
define view VB_CDS_VIEWS
as select from ddddlsrc as AllCDSViews
inner join Cds_Sql_View as CDSSQLView on AllCDSViews.ddlname = CDSSQLView.DDLSourceName
inner join Cds_Stob_View as CDSSTOBView on AllCDSViews.ddlname = CDSSTOBView.DDLSourceName
{
key AllCDSViews.ddlname as DDLSourceName,
AllCDSViews.source_origin as CDSOriginKey,
cast(CDSSQLView.SQLViewName as ddannotation_val) as SQLViewName,
cast(CDSSTOBView.CDSName as abap.char(40)) as CDSName,
AllCDSViews.source_type as SourceType
}
where
AllCDSViews.as4local = 'A'
and AllCDSViews.source_type = 'V'
union all
select from ddddlsrc as Views
left outer to one join ddheadanno as anno on Views.ddlname = anno.strucobjn
and anno.name = 'ANALYTICS.TECHNICALNAME'
and anno.value not like ''''
and (
anno.value is not null
or anno.value <> ''
)
{ // to fetch cds 2.0 views
key Views.ddlname as DDLSourceName,
Views.source_origin as CDSOriginKey,
anno.value as SQLViewName,
Views.ddlname as CDSName, // CDSName is DDLname for CDS 2.0, referred from BASIS view 'rsodp_abap_cds_odpname_cds'
Views.source_type as SourceType
}
where
Views.source_type = 'W'
and Views.as4local = 'A'
union all
select from ddddlsrc as Views
inner join dd02bnd as StructuredNodes on StructuredNodes.strucobjn = Views.ddlname
and provider_contract = 'AQ'
left outer to one join ddheadanno as anno on Views.ddlname = anno.strucobjn
and anno.name = 'ANALYTICS.TECHNICALNAME'
and anno.value not like ''''
and (
anno.value is not null
or anno.value <> ''
)
{
key Views.ddlname as DDLSourceName,
Views.source_origin as CDSOriginKey,
anno.value as SQLViewName,
Views.ddlname as CDSName,
Views.source_type as SourceType
}
where
Views.as4local = 'A'
and Views.source_type = 'P'
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