P_DMVCECCostElement

DDL: P_DMVCECCOSTELEMENT Type: view_entity BASIC

P_DMVCECCostElement is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_CostElementOnChartOfAccounts, I_CostElementOnControllingArea) and exposes 7 fields with key fields ControllingArea, CostElement. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_CostElementOnChartOfAccounts I_CostElementOnChartOfAccounts inner
I_CostElementOnControllingArea I_CostElementOnControllingArea from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_CostElementText _Text $projection.ChartOfAccounts = _Text.ChartOfAccounts and $projection.CostElement = _Text.CostElement

Annotations (5)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey CostElement view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea I_CostElementOnControllingArea ControllingArea Controlling Area
KEY CostElement I_CostElementOnControllingArea CostElement G/L Account
ValidityStartDate I_CostElementOnControllingArea ValidityStartDate Validity Start Date
ValidityEndDate I_CostElementOnControllingArea ValidityEndDate ValidTo
CostElementCategory I_CostElementOnControllingArea CostElementCategory CElem category
ChartOfAccounts I_CostElementOnChartOfAccounts ChartOfAccounts Node Class
_Text _Text

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_DMVCECCostElement.
-- 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_DMVCECCostElement AS
SELECT
  I_CostElementOnControllingArea.ControllingArea AS ControllingArea,
  I_CostElementOnControllingArea.CostElement AS CostElement,
  I_CostElementOnControllingArea.ValidityStartDate AS ValidityStartDate,
  I_CostElementOnControllingArea.ValidityEndDate AS ValidityEndDate,
  I_CostElementOnControllingArea.CostElementCategory AS CostElementCategory,
  I_CostElementOnChartOfAccounts.ChartOfAccounts AS ChartOfAccounts
FROM I_CostElementOnControllingArea
INNER JOIN I_CostElementOnChartOfAccounts ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CostElementText AS _Text ON ChartOfAccounts = _Text.ChartOfAccounts AND CostElement = _Text.CostElement  -- association [0..*]
;