Cds_Views_Info

DDL: CDS_VIEWS_INFO SQL: CDSVIEWSINFO Type: view

List of All CDS Views with details

Cds_Views_Info is a CDS View that provides data about "List of All CDS Views with details" in SAP S/4HANA. It reads from 3 data sources (Cds_Views, Cds_Views_Pkg_Appcomp, Cds_Views_Vdm_Type) and exposes 15 fields with key field DDLSourceName. It has 4 associations to related views.

Data Sources (3)

SourceAliasJoin Type
Cds_Views Cds_Views from
Cds_Views_Pkg_Appcomp CDSPkgAppComp left_outer
Cds_Views_Vdm_Type CDSVDMType left_outer

Associations (4)

CardinalityTargetAliasCondition
[0..*] Cds_View_Text _Text $projection.DDLSourceName = _Text.DDLSourceName and $projection.CDSName = _Text.CDSName
[0..1] Cds_Views_Favorite _CdsFavorite $projection.DDLSourceName = _CdsFavorite.DDLSourceName
[0..1] Cds_Views_Tag_Count _CdsTagCount $projection.DDLSourceName = _CdsTagCount.DDLSourceName
[0..*] CDS_ALL_SUPPORTED_CAPABILITIES _CdsSupportedCapabilities $projection.DDLSourceName = _CdsSupportedCapabilities.Ddlsourcename

Annotations (5)

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

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName Cds_Views DDLSourceName DDL Source Name
SQLViewName Cds_Views SQLViewName View Name
CDSName Cds_Views CDSName DDL Source Name
CdsViewTypeelseNAendasCdsViewType
ApplicationComponent Cds_Views_Pkg_Appcomp ApplicationComponent
ApplicationComponentName Cds_Views_Pkg_Appcomp ApplicationComponentName
CDSViewPackage Cds_Views_Pkg_Appcomp CDSViewPackage Package (Obsolete)
CDSOriginKey Cds_Views CDSOriginKey Source Origin
_CDSAppCompText Cds_Views_Pkg_Appcomp _CDSAppCompText
CDSViewSourceSystem Cds_Views_Pkg_Appcomp CDSViewSourceSystem Source system
_Text _Text
_CdsFavorite _CdsFavorite
_CdsTagCount _CdsTagCount
_CdsSupportedCapabilities _CdsSupportedCapabilities
SourceType Cds_Views SourceType Source Type

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view Cds_Views_Info.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CDSVIEWSINFO

CREATE VIEW Cds_Views_Info AS
SELECT
  Cds_Views.DDLSourceName AS DDLSourceName,
  Cds_Views.SQLViewName AS SQLViewName,
  Cds_Views.CDSName AS CDSName,
  case when CDSVDMType.CDSName is not null then CDSVDMType.CdsViewType else 'NA' end as CdsViewType AS CdsViewTypeelseNAendasCdsViewType,
  CDSPkgAppComp.ApplicationComponent AS ApplicationComponent,
  CDSPkgAppComp.ApplicationComponentName AS ApplicationComponentName,
  CDSPkgAppComp.CDSViewPackage AS CDSViewPackage,
  Cds_Views.CDSOriginKey AS CDSOriginKey,
  CDSPkgAppComp._CDSAppCompText AS _CDSAppCompText,
  CDSPkgAppComp.CDSViewSourceSystem AS CDSViewSourceSystem,
  Cds_Views.SourceType AS SourceType
FROM Cds_Views
LEFT OUTER JOIN Cds_Views_Vdm_Type AS CDSVDMType ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Cds_Views_Pkg_Appcomp AS CDSPkgAppComp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Cds_View_Text AS _Text ON DDLSourceName = _Text.DDLSourceName AND CDSName = _Text.CDSName  -- association [0..*]
LEFT OUTER JOIN Cds_Views_Favorite AS _CdsFavorite ON DDLSourceName = _CdsFavorite.DDLSourceName  -- association [0..1]
LEFT OUTER JOIN Cds_Views_Tag_Count AS _CdsTagCount ON DDLSourceName = _CdsTagCount.DDLSourceName  -- association [0..1]
LEFT OUTER JOIN CDS_ALL_SUPPORTED_CAPABILITIES AS _CdsSupportedCapabilities ON DDLSourceName = _CdsSupportedCapabilities.Ddlsourcename  -- association [0..*]
;