Cds_Views

DDL: CDS_VIEWS SQL: CDSVIEWS Type: view

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 12 fields with key field DDLSourceName.

Data Sources (6)

SourceAliasJoin Type
ddddlsrc AllCDSViews from
Cds_Sql_View CDSSQLView inner
Cds_Stob_View CDSSTOBView inner
dd02bnd StructuredNodes inner
VB_CDS_SQLVIEWNAME VB_CDS_SQLVIEWNAME union_all
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 (12)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName ddddlsrc ddlname DDL Source Name
CDSOriginKey ddddlsrc source_origin Source Origin
SQLViewName Cds_Sql_View SQLViewName Value from table
CDSName Cds_Stob_View CDSName DDL Source Name
CDSOriginKey CDSOriginKey Source Origin
SQLViewName SQLViewName Value from table
CDSName CDSName DDL Source Name
ddlnameasDDLSourceName
CDSOriginKey ddddlsrc source_origin Source Origin
SQLViewName anno value Value from table
CDSName ddddlsrc ddlname DDL Source Name
SourceType ddddlsrc source_type SRVC 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.
-- 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: CDSVIEWS

CREATE VIEW Cds_Views AS
SELECT
  AllCDSViews.ddlname AS DDLSourceName,
  AllCDSViews.source_origin AS CDSOriginKey,
  CDSSQLView.SQLViewName AS SQLViewName,
  CDSSTOBView.CDSName AS CDSName,
  SourceType AS ddlnameasDDLSourceName,
  Views.source_type AS SourceType
FROM ddddlsrc AS AllCDSViews
INNER JOIN Cds_Sql_View AS CDSSQLView ON /* join condition not captured in parsed metadata */
INNER JOIN Cds_Stob_View AS CDSSTOBView ON /* join condition not captured in parsed metadata */
INNER JOIN dd02bnd AS StructuredNodes ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): VB_CDS_SQLVIEWNAME, ddddlsrc
;