C_ProductValuationCosting
Consumption Product Valuation Costing
C_ProductValuationCosting is a Consumption CDS View that provides data about "Consumption Product Valuation Costing" in SAP S/4HANA. It reads from 1 data source (I_ProductValuationCostingTP) and exposes 15 fields with key fields Product, ValuationArea, ValuationType. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductValuationCostingTP | ValuationCosting | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_Productvaluation | _Valuation | $projection.Product = _Valuation.Product and $projection.ValuationArea = _Valuation.ValuationArea and $projection.ValuationType = _Valuation.ValuationType |
| [1..1] | C_Product | _Product | $projection.Product = _Product.Product |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRDVALCOST | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Consumption Product Valuation Costing | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.allowExtensions | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_ProductValuationCostingTP | Product | Product Sold |
| KEY | ValuationArea | I_ProductValuationCostingTP | ValuationArea | Valuation Area |
| KEY | ValuationType | I_ProductValuationCostingTP | ValuationType | Valuation Type |
| PlannedPrice1InCoCodeCrcy | I_ProductValuationCostingTP | PlannedPrice1InCoCodeCrcy | ||
| FuturePlndPrice1ValdtyDate | I_ProductValuationCostingTP | FuturePlndPrice1ValdtyDate | ||
| PlannedPrice2InCoCodeCrcy | I_ProductValuationCostingTP | PlannedPrice2InCoCodeCrcy | ||
| FuturePlndPrice2ValdtyDate | I_ProductValuationCostingTP | FuturePlndPrice2ValdtyDate | ||
| PlannedPrice3InCoCodeCrcy | I_ProductValuationCostingTP | PlannedPrice3InCoCodeCrcy | ||
| FuturePlndPrice3ValdtyDate | I_ProductValuationCostingTP | FuturePlndPrice3ValdtyDate | ||
| Currency | Currency | Valuation Crcy | ||
| IsMaterialCostedWithQtyStruc | I_ProductValuationCostingTP | IsMaterialCostedWithQtyStruc | ||
| CostOriginGroup | I_ProductValuationCostingTP | CostOriginGroup | Origin Group | |
| ControllingArea | I_ProductValuationCostingTP | ControllingArea | Controlling Area | |
| _Product | _Product | |||
| _Valuation | _Valuation |
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_ProductValuationCosting.
-- 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: CPRDVALCOST
CREATE VIEW C_ProductValuationCosting AS
SELECT
ValuationCosting.Product AS Product,
ValuationCosting.ValuationArea AS ValuationArea,
ValuationCosting.ValuationType AS ValuationType,
ValuationCosting.PlannedPrice1InCoCodeCrcy AS PlannedPrice1InCoCodeCrcy,
ValuationCosting.FuturePlndPrice1ValdtyDate AS FuturePlndPrice1ValdtyDate,
ValuationCosting.PlannedPrice2InCoCodeCrcy AS PlannedPrice2InCoCodeCrcy,
ValuationCosting.FuturePlndPrice2ValdtyDate AS FuturePlndPrice2ValdtyDate,
ValuationCosting.PlannedPrice3InCoCodeCrcy AS PlannedPrice3InCoCodeCrcy,
ValuationCosting.FuturePlndPrice3ValdtyDate AS FuturePlndPrice3ValdtyDate,
Currency,
ValuationCosting.IsMaterialCostedWithQtyStruc AS IsMaterialCostedWithQtyStruc,
ValuationCosting.CostOriginGroup AS CostOriginGroup,
ValuationCosting.ControllingArea AS ControllingArea
FROM I_ProductValuationCostingTP AS ValuationCosting
LEFT OUTER JOIN C_Productvaluation AS _Valuation ON Product = _Valuation.Product AND ValuationArea = _Valuation.ValuationArea AND ValuationType = _Valuation.ValuationType -- association [1..1]
LEFT OUTER JOIN C_Product AS _Product ON Product = _Product.Product -- association [1..1]
;
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