VB_CDS_VIEWS

DDL: VB_CDS_VIEWS SQL: VBCDSVIEWS Type: view

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.

Data Sources (6)

SourceAliasJoin 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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName ddddlsrc ddlname DDL Source Name
CDSOriginKey ddddlsrc source_origin Source Origin
SQLViewName Value from table
CDSName DDL Source Name
ddlnameasDDLSourceName
CDSOriginKey ddddlsrc source_origin Source Origin
SQLViewName anno value Value from table
CDSName ddddlsrc ddlname 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 VB_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: VBCDSVIEWS

CREATE VIEW VB_CDS_VIEWS AS
SELECT
  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 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): ddddlsrc
;