I_CCV_DATASOURCE_HELPER
Custom CDS View Datasource Helper
I_CCV_DATASOURCE_HELPER is a CDS View that provides data about "Custom CDS View Datasource Helper" in SAP S/4HANA. It reads from 4 data sources (ddldependency, ARS_APIS_RELEASED_C1_OR_GROUPS, ddddlsrc, dd02b) and exposes 9 fields with key field DataSourceName. It has 9 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| ddldependency | dep | inner |
| ARS_APIS_RELEASED_C1_OR_GROUPS | rel_c1_grp | inner |
| ddddlsrc | src | inner |
| dd02b | stob | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | ddheadanno | _odata | _odata.strucobjn = stob.strucobjn and _odata.name = 'ODATA.PUBLISH' -- Annotation value 'ANALYTICS.DATACATEGORY' |
| [0..1] | ddheadanno | _analytics_category | _analytics_category.strucobjn = stob.strucobjn and _analytics_category.name = 'ANALYTICS.DATACATEGORY' -- Annotation value 'ANALYTICS.QUERY' |
| [0..1] | ddheadanno | _analytics_query | _analytics_query.strucobjn = stob.strucobjn and _analytics_query.name = 'ANALYTICS.QUERY' -- Annotation value 'ACCESSCONTROL.AUTHORIZATIONCHECK' |
| [0..1] | ddheadanno | _access_control | _access_control.strucobjn = stob.strucobjn and _access_control.name = 'ACCESSCONTROL.AUTHORIZATIONCHECK' -- Show DCLs protecting DDLs |
| [0..1] | Sacm_Public_Dcl_For_Entity | _dcl_for_entity | _dcl_for_entity.entity = stob.strucobjn -- Annotation value 'OBJECTMODEL.DATACATEGORY' |
| [0..1] | ddheadanno | _object_category | _object_category.strucobjn = stob.strucobjn and _object_category.name = 'OBJECTMODEL.DATACATEGORY' |
| [0..1] | I_CustomCDSViewSourceOrigin | _SourceOrigin | _SourceOrigin.SourceOrigin = src.source_origin |
| [0..1] | I_CustomCDSViewAccProtection | _AccessProtection | _AccessProtection.AccessProtection = $projection.AccessProtection |
| [0..1] | I_CustomCDSViewAnaDataCategory | _AnaDataCategory | _AnaDataCategory.AnalyticsDatacategory = $projection.AnalyticsDataCategory |
Annotations (2)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Custom CDS View Datasource Helper | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DataSourceName | Entity Name Raw | ||
| DataSourceNameUpper | Entity Name Upper Case | |||
| SourceOrigin | ddddlsrc | source_origin | Source Origin | |
| char1asAccessProtection | ||||
| valueTEXTthenXendasTextViewIndicator | Is Text View | |||
| char1asAnalyticsDataCategory | ||||
| _SourceOrigin | _SourceOrigin | |||
| _AccessProtection | _AccessProtection | |||
| _AnaDataCategory | _AnaDataCategory |
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 I_CCV_DATASOURCE_HELPER.
-- 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 I_CCV_DATASOURCE_HELPER AS
SELECT
cast(stob.strucobjn_raw as abap.char(30)) AS DataSourceName,
cast(stob.strucobjn as abap.char(30)) AS DataSourceNameUpper,
src.source_origin AS SourceOrigin,
cast (case when _dcl_for_entity.dclname <> '' and _access_control .value = '#PRIVILEGED_ONLY' then '2' when _dcl_for_entity.dclname <> '' then '1' else '0' end as abap.char(1) ) as AccessProtection AS char1asAccessProtection,
case when _object_category.value = '#TEXT' then 'X' end as TextViewIndicator AS valueTEXTthenXendasTextViewIndicator,
cast (case when _analytics_category.value = '#CUBE' then '1' when _analytics_category.value = '#DIMENSION' then '2' end as abap.char(1) ) as AnalyticsDataCategory AS char1asAnalyticsDataCategory
FROM dd02b AS stob
INNER JOIN ddldependency AS dep ON /* join condition not captured in parsed metadata */
INNER JOIN ddddlsrc AS src ON /* join condition not captured in parsed metadata */
INNER JOIN ARS_APIS_RELEASED_C1_OR_GROUPS AS rel_c1_grp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ddheadanno AS _odata ON _odata.strucobjn = stob.strucobjn AND _odata.name = 'ODATA.PUBLISH' -- association [0..1]
LEFT OUTER JOIN ddheadanno AS _analytics_category ON _analytics_category.strucobjn = stob.strucobjn AND _analytics_category.name = 'ANALYTICS.DATACATEGORY' -- association [0..1]
LEFT OUTER JOIN ddheadanno AS _analytics_query ON _analytics_query.strucobjn = stob.strucobjn AND _analytics_query.name = 'ANALYTICS.QUERY' -- association [0..1]
LEFT OUTER JOIN ddheadanno AS _access_control ON _access_control.strucobjn = stob.strucobjn AND _access_control.name = 'ACCESSCONTROL.AUTHORIZATIONCHECK' -- association [0..1]
LEFT OUTER JOIN Sacm_Public_Dcl_For_Entity AS _dcl_for_entity ON _dcl_for_entity.entity = stob.strucobjn -- association [0..1]
LEFT OUTER JOIN ddheadanno AS _object_category ON _object_category.strucobjn = stob.strucobjn AND _object_category.name = 'OBJECTMODEL.DATACATEGORY' -- association [0..1]
LEFT OUTER JOIN I_CustomCDSViewSourceOrigin AS _SourceOrigin ON _SourceOrigin.SourceOrigin = src.source_origin -- association [0..1]
LEFT OUTER JOIN I_CustomCDSViewAccProtection AS _AccessProtection ON _AccessProtection.AccessProtection = AccessProtection -- association [0..1]
LEFT OUTER JOIN I_CustomCDSViewAnaDataCategory AS _AnaDataCategory ON _AnaDataCategory.AnalyticsDatacategory = AnalyticsDataCategory -- 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