Cds_Views

DDL: CDS_VIEWS SQL: CDSVIEWS Type: view Package: S_DICT_VB

List of All CDS Views

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)

SourceAliasJoin Type
ddddlsrc AllCDSViews union_all
Cds_Sql_View CDSSQLView inner
Cds_Stob_View CDSSTOBView inner
dd02bnd StructuredNodes inner
VB_CDS_SQLVIEWNAME VB_CDS_SQLVIEWNAME from
ddddlsrc Views union_all

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName CDSVIEWS view
EndUserText.label List of All CDS Views view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName DDLSourceName
CDSOriginKey CDSOriginKey
SQLViewName SQLViewName
CDSName CDSName
ddlnameasDDLSourceName
CDSOriginKey ddddlsrc source_origin
SQLViewName anno value
CDSName ddddlsrc ddlname
ddlnameasDDLSourceName
CDSOriginKey ddddlsrc source_origin
SQLViewName Cds_Sql_View SQLViewName
CDSName Cds_Stob_View CDSName
SourceType ddddlsrc source_type
@AbapCatalog.sqlViewName: 'CDSVIEWS'
@EndUserText.label: 'List of All CDS Views'
@ObjectModel.usageType.serviceQuality:  #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view Cds_Views
  as select from VB_CDS_SQLVIEWNAME // CDS 2.0 view entities

{
  key DDLSourceName,
      CDSOriginKey,
      SQLViewName,
      CDSName,
      SourceType
}

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'
      
 union all
 
 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,
      CDSSQLView.SQLViewName    as SQLViewName,
      CDSSTOBView.CDSName,
      AllCDSViews.source_type   as SourceType
}
where
      AllCDSViews.as4local    = 'A'
  and AllCDSViews.source_type = 'V'