P_Matval_Manage_Cost

DDL: P_MATVAL_MANAGE_COST SQL: PMATVALMGMCOST Type: view BASIC

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)

SourceAliasJoin 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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;