P_DMVCECCostElement
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CostElementOnChartOfAccounts | I_CostElementOnChartOfAccounts | inner |
| I_CostElementOnControllingArea | I_CostElementOnControllingArea | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CostElementText | _Text | $projection.ChartOfAccounts = _Text.ChartOfAccounts and $projection.CostElement = _Text.CostElement |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.representativeKey | CostElement | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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