C_CustomCDSViewDataSource

DDL: C_CUSTOMCDSVIEWDATASOURCE SQL: APS_CCV_C_DSRC_V Type: view

Custom CDS View Data Source

C_CustomCDSViewDataSource is a CDS View that provides data about "Custom CDS View Data Source" in SAP S/4HANA. It reads from 1 data source (I_CustomCDSViewDataSource) and exposes 40 fields with key fields EntityName, DataSourceUUID. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomCDSViewDataSource I_CustomCDSViewDataSource from

Associations (7)

CardinalityTargetAliasCondition
[1..1] C_CustomCDSViewRoot _Root _Root.EntityName = I_CustomCDSViewDataSource.entity_name
[0..*] C_CustomCDSViewDSJoinCondition _JoinCondition _JoinCondition.EntityName = I_CustomCDSViewDataSource.entity_name and _JoinCondition.DataSourceUUID = I_CustomCDSViewDataSource.data_source_uuid
[0..*] C_CustomCDSViewParameterValue _ParameterValue _ParameterValue.EntityName = I_CustomCDSViewDataSource.entity_name and _ParameterValue.DataSourceUUID = I_CustomCDSViewDataSource.data_source_uuid
[0..1] I_CustomCDSViewDatasourceType _DatasourceType _DatasourceType.DataSourceType = I_CustomCDSViewDataSource.type
[0..1] I_CCV_DATASOURCE_HELPER _DataSource _DataSource.DataSourceName = I_CustomCDSViewDataSource.data_source_name
[0..1] I_CustomCDSViewRework _Rework _Rework.EntityName = I_CustomCDSViewDataSource.data_source_name
[0..1] I_CCV_ATO_BOM_DS _AtoBomDataSource _AtoBomDataSource.EntityName = I_CustomCDSViewDataSource.data_source_name

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName APS_CCV_C_DSRC_V view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Custom CDS View Data Source view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
Metadata.allowExtensions true view
UI.headerInfo.typeName Datasource view
UI.headerInfo.typeNamePlural Datasources view
UI.headerInfo.title.label Datasource view
UI.headerInfo.title.value DataSourceAlias view
UI.headerInfo.description.value Type view

Fields (40)

KeyFieldSource TableSource FieldDescription
KEY EntityName entity_name Table Name
KEY DataSourceUUID data_source_uuid UUID
DataSourceAlias data_source_alias Data Source Alias
Counter counter Version
DataSourceName data_source_name Name
Type type Worklist Type
Cardinality cardinality Cardinality
JoinCondComparisonOperator join_cond_comparison_operator Operator
_Cardinality _Cardinality
_LogicalLinkOperator _LogicalLinkOperator
_Root _Root
Scenario _Root Scenario VAT Scenario
_Scenario _Root _Scenario
_JoinCondition _JoinCondition
_ParameterValue _ParameterValue
_DatasourceType _DatasourceType
_DataSource _DataSource
SourceOrigin _DataSource SourceOrigin
_SourceOrigin _DataSource _SourceOrigin
AccessProtection _DataSource AccessProtection
_AccessProtection _DataSource _AccessProtection
AnalyticsDataCategory _DataSource AnalyticsDataCategory
_AnaDataCategory _DataSource _AnaDataCategory
TextViewIndicator _DataSource TextViewIndicator
MasterdataViewIndicator _DataSource MasterdataViewIndicator
TaskPriorityId _Rework HighestPriority
TaskPriority _Rework HighestPriorityText
TaskPrioritySortOrder _Rework HighestPrioritySortOrder
ReworkIndicator
ReworkCategoryText _Rework CategoryText
ReworkItemId _Rework ItemId Russia Statutory Reporting Report Land Tax, Run Item ID
ReworkItemType _Rework ItemType Object Type
_TaskPriority _Rework _TaskPriority
AtoItemId _AtoBomDataSource ItemId Russia Statutory Reporting Report Land Tax, Run Item ID
AtoItemType _AtoBomDataSource ItemType Object Type
ObjectStatusText
ObjectStatus
CDBStatusCode
JoinCondition_fc
ParameterValue_fc

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 C_CustomCDSViewDataSource.
-- 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: APS_CCV_C_DSRC_V

CREATE VIEW C_CustomCDSViewDataSource AS
SELECT
  entity_name AS EntityName,
  data_source_uuid AS DataSourceUUID,
  data_source_alias AS DataSourceAlias,
  Counter,
  data_source_name AS DataSourceName,
  Type,
  Cardinality,
  join_cond_comparison_operator AS JoinCondComparisonOperator,
  _Root.Scenario AS Scenario,
  _Root._Scenario AS _Scenario,
  _DataSource.SourceOrigin AS SourceOrigin,
  _DataSource._SourceOrigin AS _SourceOrigin,
  _DataSource.AccessProtection AS AccessProtection,
  _DataSource._AccessProtection AS _AccessProtection,
  _DataSource.AnalyticsDataCategory AS AnalyticsDataCategory,
  _DataSource._AnaDataCategory AS _AnaDataCategory,
  _DataSource.TextViewIndicator AS TextViewIndicator,
  _DataSource.MasterdataViewIndicator AS MasterdataViewIndicator,
  _Rework.HighestPriority AS TaskPriorityId,
  _Rework.HighestPriorityText AS TaskPriority,
  _Rework.HighestPrioritySortOrder AS TaskPrioritySortOrder,
  cast( _Rework.ReworkIndicator as aps_ccv_rework_ind preserving type ) AS ReworkIndicator,
  _Rework.CategoryText AS ReworkCategoryText,
  _Rework.ItemId AS ReworkItemId,
  _Rework.ItemType AS ReworkItemType,
  _Rework._TaskPriority AS _TaskPriority,
  _AtoBomDataSource.ItemId AS AtoItemId,
  _AtoBomDataSource.ItemType AS AtoItemType,
  cast( ' ' as abap.sstring( 100 ) ) AS ObjectStatusText,
  cast( ' ' as abap.sstring( 10 ) ) AS ObjectStatus,
  ' ' AS CDBStatusCode,
  cast( ' ' as boolean preserving type ) AS JoinCondition_fc,
  cast( ' ' as boolean preserving type ) AS ParameterValue_fc
FROM I_CustomCDSViewDataSource
LEFT OUTER JOIN C_CustomCDSViewRoot AS _Root ON _Root.EntityName = I_CustomCDSViewDataSource.entity_name  -- association [1..1]
LEFT OUTER JOIN C_CustomCDSViewDSJoinCondition AS _JoinCondition ON _JoinCondition.EntityName = I_CustomCDSViewDataSource.entity_name AND _JoinCondition.DataSourceUUID = I_CustomCDSViewDataSource.data_source_uuid  -- association [0..*]
LEFT OUTER JOIN C_CustomCDSViewParameterValue AS _ParameterValue ON _ParameterValue.EntityName = I_CustomCDSViewDataSource.entity_name AND _ParameterValue.DataSourceUUID = I_CustomCDSViewDataSource.data_source_uuid  -- association [0..*]
LEFT OUTER JOIN I_CustomCDSViewDatasourceType AS _DatasourceType ON _DatasourceType.DataSourceType = I_CustomCDSViewDataSource.type  -- association [0..1]
LEFT OUTER JOIN I_CCV_DATASOURCE_HELPER AS _DataSource ON _DataSource.DataSourceName = I_CustomCDSViewDataSource.data_source_name  -- association [0..1]
LEFT OUTER JOIN I_CustomCDSViewRework AS _Rework ON _Rework.EntityName = I_CustomCDSViewDataSource.data_source_name  -- association [0..1]
LEFT OUTER JOIN I_CCV_ATO_BOM_DS AS _AtoBomDataSource ON _AtoBomDataSource.EntityName = I_CustomCDSViewDataSource.data_source_name  -- association [0..1]
;