C_CustomCDSViewElement

DDL: C_CUSTOMCDSVIEWELEMENT SQL: APS_CCV_C_ELEM_V Type: view

Consumption View Custom CDS View Element

C_CustomCDSViewElement is a CDS View that provides data about "Consumption View Custom CDS View Element" in SAP S/4HANA. It reads from 1 data source (I_CustomCDSViewElement) and exposes 32 fields with key fields EntityName, ElementUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomCDSViewElement I_CustomCDSViewElement from

Associations (6)

CardinalityTargetAliasCondition
[1..1] C_CustomCDSViewRoot _Root _Root.EntityName = $projection.EntityName
[1..1] C_CustomCDSViewDataSource _Datasource _Datasource.EntityName = $projection.EntityName and _Datasource.DataSourceUUID = $projection.DatasourceUUID
[1..1] C_CustomCDSViewParameter _Parameter _Parameter.EntityName = $projection.EntityName and _Parameter.ParameterUUID = $projection.ParameterUUID
[0..*] C_CustomCDSViewElementPathComp _ElementPathComp _ElementPathComp.EntityName = $projection.EntityName and _ElementPathComp.ElementUUID = $projection.ElementUUID
[0..1] C_CustomCDSViewElemProperties _ElementProperties _ElementProperties.EntityName = $projection.EntityName and _ElementProperties.ElementUUID = $projection.ElementUUID
[0..1] I_CCV_Element_Successors _ElementSuccessors _ElementSuccessors.entity_name = $projection.SourceEntityName and _ElementSuccessors.element_name = $projection.DatasourceElement

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName APS_CCV_C_ELEM_V view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Consumption View Custom CDS View Element view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
Metadata.allowExtensions true view
Search.searchable true view
UI.headerInfo.typeName Element view
UI.headerInfo.typeNamePlural Elements view
UI.headerInfo.title.label Element view
UI.headerInfo.title.value ElementAlias view
UI.headerInfo.description.value ElementLabel view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY EntityName entity_name Table Name
KEY ElementUUID elem_uuid UUID
Counter counter Version
ElementAlias elem_alias Alias
ElementLabel elem_label Label
DatasourceUUID data_source_uuid UUID
ParameterUUID param_uuid UUID
ParameterName _Parameter ParameterName Rule Parameter
ParameterTypeName _Parameter DdicType
ParameterTypeLength _Parameter Length Text Length
ParameterTypeDecimals _Parameter Decimals Rounding Places
DatasourceAlias _Datasource DataSourceAlias
Scenario _Root Scenario VAT Scenario
AssocTextViewIndicator
AssocMasterdataViewIndicator
DatasourceElement data_source_elem Alias
DeprecatedIndicator Task
ElementSuccessor Successor
ExpressionIndicator expression_ind Calculated field
Expression expression Expression
AssociationIndicator assoc_ind Association
KeyIndicator key_ind Key
Origincode origin_code Origin
PathEdit path Path rule
PathDisplay
SourceEntityName source_entity_name DD: Name of a structured object (e.g. entity, context)
DataType
_Root _Root
_ElementPathComp _ElementPathComp
_ElementProperties _ElementProperties
_Datasource _Datasource
_Parameter _Parameter

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_CustomCDSViewElement.
-- 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_ELEM_V

CREATE VIEW C_CustomCDSViewElement AS
SELECT
  entity_name AS EntityName,
  elem_uuid AS ElementUUID,
  Counter,
  elem_alias AS ElementAlias,
  elem_label AS ElementLabel,
  data_source_uuid AS DatasourceUUID,
  param_uuid AS ParameterUUID,
  _Parameter.ParameterName AS ParameterName,
  _Parameter.DdicType AS ParameterTypeName,
  _Parameter.Length AS ParameterTypeLength,
  _Parameter.Decimals AS ParameterTypeDecimals,
  _Datasource.DataSourceAlias AS DatasourceAlias,
  _Root.Scenario AS Scenario,
  cast('' as boolean preserving type ) AS AssocTextViewIndicator,
  cast('' as boolean preserving type ) AS AssocMasterdataViewIndicator,
  data_source_elem AS DatasourceElement,
  cast('' as boolean preserving type ) AS DeprecatedIndicator,
  cast ( _ElementSuccessors.successor_camel_case as aps_ccv_element_alias ) AS ElementSuccessor,
  expression_ind AS ExpressionIndicator,
  Expression,
  assoc_ind AS AssociationIndicator,
  key_ind AS KeyIndicator,
  origin_code AS Origincode,
  path AS PathEdit,
  cast('' as abap.sstring(1000) ) AS PathDisplay,
  source_entity_name AS SourceEntityName,
  cast('' as abap.sstring(15) ) AS DataType
FROM I_CustomCDSViewElement
LEFT OUTER JOIN C_CustomCDSViewRoot AS _Root ON _Root.EntityName = EntityName  -- association [1..1]
LEFT OUTER JOIN C_CustomCDSViewDataSource AS _Datasource ON _Datasource.EntityName = EntityName AND _Datasource.DataSourceUUID = DatasourceUUID  -- association [1..1]
LEFT OUTER JOIN C_CustomCDSViewParameter AS _Parameter ON _Parameter.EntityName = EntityName AND _Parameter.ParameterUUID = ParameterUUID  -- association [1..1]
LEFT OUTER JOIN C_CustomCDSViewElementPathComp AS _ElementPathComp ON _ElementPathComp.EntityName = EntityName AND _ElementPathComp.ElementUUID = ElementUUID  -- association [0..*]
LEFT OUTER JOIN C_CustomCDSViewElemProperties AS _ElementProperties ON _ElementProperties.EntityName = EntityName AND _ElementProperties.ElementUUID = ElementUUID  -- association [0..1]
LEFT OUTER JOIN I_CCV_Element_Successors AS _ElementSuccessors ON _ElementSuccessors.entity_name = SourceEntityName AND _ElementSuccessors.element_name = DatasourceElement  -- association [0..1]
;