P_Matval_Manage_Cost
P_Matval_Manage_Cost is a Basic CDS View in SAP S/4HANA. It reads from 16 data sources and exposes 45 fields with key fields CostEstimate, CostingVersion, ValuationVariant, LedgerValuationCurrencyRole, ValuationArea.
Data Sources (16)
| Source | Alias | Join Type |
|---|---|---|
| fvmkld | f | inner |
| fvmkld | f | inner |
| I_ProductCostEstimate | k | inner |
| I_ProductCostEstimate | k | inner |
| P_LedgerValuationCrcyRole | lvcr | inner |
| P_LedgerValuationCrcyRole | lvcr | inner |
| v_mbew_md | m | inner |
| mara | ma | inner |
| mara | ma | inner |
| I_MatlLedgerValnCrcyRoleName | ml | inner |
| I_MatlLedgerValnCrcyRoleName | ml | inner |
| ckmlpr | pr | from |
| I_MaterialLedgerPrice | price | union_all |
| R_MatlPriceDataMigrationStatus | tf | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| t001k | tk | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMATVALMGMCOST | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | ckmlpr | kalnr | ProdCostEst.No. |
| KEY | CostingVersion | I_ProductCostEstimate | CostingVersion | Costing Version |
| KEY | ValuationVariant | I_ProductCostEstimate | ValuationVariant | Valuation Variant |
| KEY | LedgerValuationCurrencyRole | ckmlpr | curtp | Valuation Area |
| KEY | ValuationArea | v_mbew_md | bwkey | Valuation Area |
| KEY | CompanyCode | t001k | bukrs | Receiver Company Code |
| AccountingValuationView | fvmkld | valuation | Valuation View | |
| AccountingValuationSubview | fvmkld | valusubtyp | Subtype Val | |
| CostingStatus | I_ProductCostEstimate | CostEstimateStatus | Costing Status | |
| CostingVariant | I_ProductCostEstimate | CostingVariant | Costing Variant | |
| CostingType | I_ProductCostEstimate | CostingType | Costing Type | |
| ControllingValuationType | fvmkld | valuation | Valuation View | |
| CostEstimateMarkingDate | I_ProductCostEstimate | CostEstimateMarkingDate | Marked On | |
| CostEstimateMarkingUser | I_ProductCostEstimate | CostEstimateMarkingUser | Marked By | |
| CostEstimateReleaseDate | I_ProductCostEstimate | CostEstimateReleaseDate | Released On | |
| CostEstimateReleaseUser | I_ProductCostEstimate | CostEstimateReleaseUser | Released By | |
| Currency | I_MatlLedgerValnCrcyRoleName | Currency | Valuation Crcy | |
| Material | v_mbew_md | matnr | Vehicle Model | |
| MaterialPriceUnitQty | Price unit | |||
| BaseUnit | mara | meins | Valuation Unit | |
| cwmxcwmat | mara | /cwm/xcwmat | ||
| CostEstimateasCostEstimate | ||||
| KEY | CostingVersion | I_ProductCostEstimate | CostingVersion | Costing Version |
| KEY | ValuationVariant | I_ProductCostEstimate | ValuationVariant | Valuation Variant |
| KEY | LedgerValuationCurrencyRole | I_MatlLedgerValnCrcyRoleName | LedgerValuationCurrencyRole | Valuation Area |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| KEY | CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code |
| AccountingValuationView | fvmkld | valuation | Valuation View | |
| AccountingValuationSubview | fvmkld | valusubtyp | Subtype Val | |
| CostingStatus | I_ProductCostEstimate | CostEstimateStatus | Costing Status | |
| CostingVariant | I_ProductCostEstimate | CostingVariant | Costing Variant | |
| CostingType | I_ProductCostEstimate | CostingType | Costing Type | |
| ControllingValuationType | fvmkld | valuation | Valuation View | |
| CostEstimateMarkingDate | I_ProductCostEstimate | CostEstimateMarkingDate | Marked On | |
| CostEstimateMarkingUser | I_ProductCostEstimate | CostEstimateMarkingUser | Marked By | |
| CostEstimateReleaseDate | I_ProductCostEstimate | CostEstimateReleaseDate | Released On | |
| CostEstimateReleaseUser | I_ProductCostEstimate | CostEstimateReleaseUser | Released By | |
| PlannedPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| FixedPortionOfPlannedPrice | I_MaterialLedgerPrice | FixedPortionOfMaterialPrice | ||
| Currency | I_MaterialLedgerPrice | Currency | Valuation Crcy | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPriceUnitQty | I_MaterialLedgerPrice | MaterialPriceUnitQty | Price unit | |
| BaseUnit | mara | meins | Valuation Unit | |
| cwmxcwmat | mara | /cwm/xcwmat | ||
| CostEstimateValidityStartDate | I_ProductCostEstimate | CostEstimateValidityStartDate | Cstg Date From |
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_Matval_Manage_Cost.
-- 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: PMATVALMGMCOST
CREATE VIEW P_Matval_Manage_Cost AS
SELECT
pr.kalnr AS CostEstimate,
k.CostingVersion AS CostingVersion,
k.ValuationVariant AS ValuationVariant,
pr.curtp AS LedgerValuationCurrencyRole,
m.bwkey AS ValuationArea,
tk.bukrs AS CompanyCode,
f.valuation AS AccountingValuationView,
f.valusubtyp AS AccountingValuationSubview,
k.CostEstimateStatus AS CostingStatus,
k.CostingVariant AS CostingVariant,
k.CostingType AS CostingType,
f.valuation AS ControllingValuationType,
k.CostEstimateMarkingDate AS CostEstimateMarkingDate,
k.CostEstimateMarkingUser AS CostEstimateMarkingUser,
k.CostEstimateReleaseDate AS CostEstimateReleaseDate,
k.CostEstimateReleaseUser AS CostEstimateReleaseUser,
ml.Currency AS Currency,
m.matnr AS Material,
cast(pr.peinh as ck_peinh_1) AS MaterialPriceUnitQty,
ma.meins AS BaseUnit,
ma./cwm/xcwmat AS cwmxcwmat,
k.CostEstimateValidityStartDate as CostEstimateValidityStartDate AS CostEstimateasCostEstimate,
price.MaterialPrice AS PlannedPrice,
price.FixedPortionOfMaterialPrice AS FixedPortionOfPlannedPrice,
k.CostEstimateValidityStartDate AS CostEstimateValidityStartDate
FROM ckmlpr AS pr
INNER JOIN v_mbew_md AS m ON /* join condition not captured in parsed metadata */
INNER JOIN t001k AS tk ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlLedgerValnCrcyRoleName AS ml ON /* join condition not captured in parsed metadata */
INNER JOIN P_LedgerValuationCrcyRole AS lvcr ON /* join condition not captured in parsed metadata */
INNER JOIN fvmkld AS f ON /* join condition not captured in parsed metadata */
INNER JOIN I_ProductCostEstimate AS k ON /* join condition not captured in parsed metadata */
INNER JOIN mara AS ma ON /* join condition not captured in parsed metadata */
INNER JOIN R_MatlPriceDataMigrationStatus AS tf ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_MaterialLedgerPrice
;
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