Cds_View

DDL: CDS_VIEW SQL: CDSVIEW Type: view

List of CDS View based on App Type

Cds_View is a CDS View that provides data about "List of CDS View based on App Type" in SAP S/4HANA. It reads from 2 data sources (Cds_View_All, CDS_VIEW_FIRST_REFERENCE) and exposes 24 fields with key field DDLSourceName. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
Cds_View_All Cds_View_All from
CDS_VIEW_FIRST_REFERENCE CdsViewFirstReference left_outer

Associations (1)

CardinalityTargetAliasCondition
[0..1] report_chips _AnalyticalQueryPublished $projection.DDLSourceName = _AnalyticalQueryPublished.ddlsourcename and $projection.CDSType = 1

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName CDSVIEW view
EndUserText.label List of CDS View based on App Type view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY DDLSourceName Cds_View_All DDLSourceName DDL Source Name
DDLSourceNameText Cds_View_All DDLSourceNameText
CDSName Cds_View_All CDSName Object name
SQLViewName Cds_View_All SQLViewName View Name
CDSViewPackage Cds_View_All CDSViewPackage Package (Obsolete)
CDSViewSourceSystem Cds_View_All CDSViewSourceSystem Source system
CDSOrigin Cds_View_All CDSOrigin
CDSReleaseStatus Cds_View_All CDSReleaseStatus
CDSType Cds_View_All CDSType
SQLAnalyticalView CDS_VIEW_FIRST_REFERENCE CreferredObject
SQLAnalyticalQuery CDS_VIEW_FIRST_REFERENCE CSQLViewName
ReferredObjectDDLSourceName CDS_VIEW_FIRST_REFERENCE ReferredObjectDDLSourceName DDL Source Name
AppID _AnalyticalQueryPublished app_id Identifier
CdsViewType
_CdsApplComp Cds_View_All _CdsApplComp
_CdsBrowserTag Cds_View_All _CdsBrowserTag
_CdsTagCount Cds_View_All _CdsTagCount
_CdsFavorite Cds_View_All _CdsFavorite
_CdsDefinition Cds_View_All _CdsDefinition
_CdsViewParameter Cds_View_All _CdsViewParameter
_CdsViewAnnotation Cds_View_All _CdsViewAnnotation
_CdsViewCrossreference Cds_View_All _CdsViewCrossreference
_Text Cds_View_All _Text
_EditorText Cds_View_All _EditorText

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_View.
-- 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: CDSVIEW

CREATE VIEW Cds_View AS
SELECT
  Cds_View_All.DDLSourceName AS DDLSourceName,
  Cds_View_All.DDLSourceNameText AS DDLSourceNameText,
  Cds_View_All.CDSName AS CDSName,
  Cds_View_All.SQLViewName AS SQLViewName,
  Cds_View_All.CDSViewPackage AS CDSViewPackage,
  Cds_View_All.CDSViewSourceSystem AS CDSViewSourceSystem,
  Cds_View_All.CDSOrigin AS CDSOrigin,
  Cds_View_All.CDSReleaseStatus AS CDSReleaseStatus,
  Cds_View_All.CDSType AS CDSType,
  CdsViewFirstReference.CreferredObject AS SQLAnalyticalView,
  CdsViewFirstReference.CSQLViewName AS SQLAnalyticalQuery,
  CdsViewFirstReference.ReferredObjectDDLSourceName AS ReferredObjectDDLSourceName,
  _AnalyticalQueryPublished.app_id AS AppID,
  cast( Cds_View_All.CdsViewType as vdmviewtype ) AS CdsViewType,
  Cds_View_All._CdsApplComp AS _CdsApplComp,
  Cds_View_All._CdsBrowserTag AS _CdsBrowserTag,
  Cds_View_All._CdsTagCount AS _CdsTagCount,
  Cds_View_All._CdsFavorite AS _CdsFavorite,
  Cds_View_All._CdsDefinition AS _CdsDefinition,
  Cds_View_All._CdsViewParameter AS _CdsViewParameter,
  Cds_View_All._CdsViewAnnotation AS _CdsViewAnnotation,
  Cds_View_All._CdsViewCrossreference AS _CdsViewCrossreference,
  Cds_View_All._Text AS _Text,
  Cds_View_All._EditorText AS _EditorText
FROM Cds_View_All
LEFT OUTER JOIN CDS_VIEW_FIRST_REFERENCE AS CdsViewFirstReference ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN report_chips AS _AnalyticalQueryPublished ON DDLSourceName = _AnalyticalQueryPublished.ddlsourcename AND CDSType = 1  -- association [0..1]
;