P_Cfd_Associable_Cds_View

DDL: P_CFD_ASSOCIABLE_CDS_VIEW Type: view_entity

Associable CDS Views

P_Cfd_Associable_Cds_View is a CDS View that provides data about "Associable CDS Views" in SAP S/4HANA. It reads from 10 data sources and exposes 11 fields with key field ViewName. It has 4 associations to related views.

Data Sources (10)

SourceAliasJoin Type
ddheadanno analyticsDataCategoryAnno left_outer
ATOV_U_ITEM_KEY atoItems left_outer
ATOV_SETTINGS atoSettings left_outer
ddddlsrc ddlSource inner
dd02b entity inner
P_Cfd_Associable_Cds_View_Keys keyFields left_outer
ddheadanno objectModelDataCategoryAnno left_outer
ddheadanno objectModelQueryImplemented left_outer
dd10b parameters left_outer
ARS_APIS_RELEASED_C1_OR_GROUPS releasedObjects left_outer

Associations (4)

CardinalityTargetAliasCondition
[0..1] P_Cfd_Cds_Source_Origin _sourceOrigin _sourceOrigin.Code = $projection.SourceOrigin
[0..1] ddddlsrc02bt _viewLabelCurrentLanguage _viewLabelCurrentLanguage.ddlname = ddlSource.ddlname and _viewLabelCurrentLanguage.strucobjn = stob.objectname and _viewLabelCurrentLanguage.as4local = stob.state and _viewLabelCurrentLanguage.ddlanguage = $session.system_language
[0..1] ddddlsrc02bt _viewLabelFallbackLanguage _viewLabelFallbackLanguage.ddlname = ddlSource.ddlname and _viewLabelFallbackLanguage.strucobjn = stob.objectname and _viewLabelFallbackLanguage.as4local = stob.state and _viewLabelFallbackLanguage.ddlanguage = 'E'
[0..1] ddddlsrct _viewDescriptionFallback _viewDescriptionFallback.ddlname = ddlSource.ddlname and _viewDescriptionFallback.as4local = stob.state and _viewDescriptionFallback.ddlanguage = $session.system_language

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Associable CDS Views view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY ViewName stob objectname Object name
ViewNameCamelCase dd02b strucobjn_raw DD: Original Name of a Struct. Obj. (e.g. Entity, Context)
ddtextasViewDescription
SourceOrigin
source_typeQthenXelseendasIsCustomEntity
NumberOfKeys
CustomEntityImplementation ddheadanno value Value from table
ViewDescriptionCurrentLanguage _viewLabelCurrentLanguage ddtext Short text
ViewDescriptionFallbackLang _viewLabelFallbackLanguage ddtext Short text
ViewDescriptionFallback _viewDescriptionFallback ddtext Short text
_sourceOrigin _sourceOrigin

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 P_Cfd_Associable_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.

CREATE VIEW P_Cfd_Associable_Cds_View AS
SELECT
  stob.objectname AS ViewName,
  entity.strucobjn_raw AS ViewNameCamelCase,
  coalesce( _viewLabelCurrentLanguage.ddtext, coalesce( _viewLabelFallbackLanguage.ddtext, _viewDescriptionFallback.ddtext ) ) as ViewDescription AS ddtextasViewDescription,
  cast( ddlSource.source_origin as abap.char( 3 ) ) AS SourceOrigin,
  case when ddlSource.source_type = 'Q' then 'X' else '' end as IsCustomEntity AS source_typeQthenXelseendasIsCustomEntity,
  count( distinct keyFields.FieldName ) AS NumberOfKeys,
  objectModelQueryImplemented.value AS CustomEntityImplementation,
  _viewLabelCurrentLanguage.ddtext AS ViewDescriptionCurrentLanguage,
  _viewLabelFallbackLanguage.ddtext AS ViewDescriptionFallbackLang,
  _viewDescriptionFallback.ddtext AS ViewDescriptionFallback
INNER JOIN ddddlsrc AS ddlSource ON /* join condition not captured in parsed metadata */
INNER JOIN dd02b AS entity ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ATOV_SETTINGS AS atoSettings ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ATOV_U_ITEM_KEY AS atoItems ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ARS_APIS_RELEASED_C1_OR_GROUPS AS releasedObjects ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ddheadanno AS analyticsDataCategoryAnno ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ddheadanno AS objectModelDataCategoryAnno ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ddheadanno AS objectModelQueryImplemented ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dd10b AS parameters ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Cfd_Associable_Cds_View_Keys AS keyFields ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Cfd_Cds_Source_Origin AS _sourceOrigin ON _sourceOrigin.Code = SourceOrigin  -- association [0..1]
LEFT OUTER JOIN ddddlsrc02bt AS _viewLabelCurrentLanguage ON _viewLabelCurrentLanguage.ddlname = ddlSource.ddlname AND _viewLabelCurrentLanguage.strucobjn = stob.objectname AND _viewLabelCurrentLanguage.as4local = stob.state AND _viewLabelCurrentLanguage.ddlanguage = $session.system_language  -- association [0..1]
LEFT OUTER JOIN ddddlsrc02bt AS _viewLabelFallbackLanguage ON _viewLabelFallbackLanguage.ddlname = ddlSource.ddlname AND _viewLabelFallbackLanguage.strucobjn = stob.objectname AND _viewLabelFallbackLanguage.as4local = stob.state AND _viewLabelFallbackLanguage.ddlanguage = 'E'  -- association [0..1]
LEFT OUTER JOIN ddddlsrct AS _viewDescriptionFallback ON _viewDescriptionFallback.ddlname = ddlSource.ddlname AND _viewDescriptionFallback.as4local = stob.state AND _viewDescriptionFallback.ddlanguage = $session.system_language  -- association [0..1]
;