C_MatlValnManagePriceHist

DDL: C_MATLVALNMANAGEPRICEHIST SQL: CMVMPRHIS Type: view CONSUMPTION

Price History for Material Valuations

C_MatlValnManagePriceHist is a Consumption CDS View that provides data about "Price History for Material Valuations" in SAP S/4HANA. It reads from 1 data source (P_Matval_Manage_Val_Chart) and exposes 10 fields with key fields CostEstimate, FiscalYear, FiscalPeriod, LedgerValuationCurrencyRole. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_Matval_Manage_Val_Chart ch from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] R_MatlLedgerValnCrcyRole lvcr ch.LedgerValuationCurrencyRole = lvcr.LedgerValuationCurrencyRole and ch.CompanyCode = lvcr.CompanyCode

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CMVMPRHIS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Price History for Material Valuations view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate CostEstimate Cost EstimateNo
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY FiscalPeriod FiscalPeriod Tax period
KEY LedgerValuationCurrencyRole LedgerValuationCurrencyRole Valuation Area
InventoryPrice InventoryPrice Price
MovingAveragePrice MovingAveragePrice Per. Unit Price
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CompanyCode CompanyCode Receiver Company Code
ControllingArea _CompanyCode ControllingArea Controlling Area
ControllingValuationType

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_MatlValnManagePriceHist.
-- 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: CMVMPRHIS

CREATE VIEW C_MatlValnManagePriceHist AS
SELECT
  CostEstimate,
  FiscalYear,
  FiscalPeriod,
  LedgerValuationCurrencyRole,
  InventoryPrice,
  MovingAveragePrice,
  CompanyCodeCurrency,
  CompanyCode,
  _CompanyCode.ControllingArea AS ControllingArea,
  cast (lvcr.AccountingValuationView as valutyp) AS ControllingValuationType
FROM P_Matval_Manage_Val_Chart AS ch
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN R_MatlLedgerValnCrcyRole AS lvcr ON ch.LedgerValuationCurrencyRole = lvcr.LedgerValuationCurrencyRole AND ch.CompanyCode = lvcr.CompanyCode  -- association [0..1]
;