P_Cfd_Associable_Cds_View
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 9 data sources and exposes 11 fields with key field ViewName. It has 4 associations to related views.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| ddheadanno | analyticsDataCategoryAnno | left_outer |
| ATOV_U_ITEM_KEY | atoItems | 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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_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]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA