I_MaterialValuationHist

DDL: I_MATERIALVALUATIONHIST SQL: IMMVALNHIST Type: view COMPOSITE

Material Valuation History

I_MaterialValuationHist is a Composite CDS View that provides data about "Material Valuation History" in SAP S/4HANA. It reads from 3 data sources (I_CompanyCode, Mbv_Mbewh, I_ValuationArea) and exposes 17 fields with key fields Material, ValuationArea, ValuationType, FiscalYearCurrentPeriod, FiscalMonthCurrentPeriod.

Data Sources (3)

SourceAliasJoin Type
I_CompanyCode CompanyCode inner
Mbv_Mbewh MatValHist from
I_ValuationArea ValuationArea inner

Annotations (13)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Valuation History view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName IMMVALNHIST view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey Material view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Material Mbv_Mbewh matnr Vehicle Model
KEY ValuationArea Mbv_Mbewh bwkey Valuation Area
KEY ValuationType bwtar Valuation Type
KEY FiscalYearCurrentPeriod Mbv_Mbewh lfgja Year Cur.Period
KEY FiscalMonthCurrentPeriod Mbv_Mbewh lfmon Current Period
TotalValStockQuantity lbkum Valuated stock
StockValueInCCCrcy salk3 Total Value
MaterialPriceControl vprsv Price control
MovingAveragePrice verpr Moving price
StandardPrice stprs Standard price
MaterialPriceUnitQty peinh Unit of measure
ValuationClass bklas Valuation Class
ValBsdOnMvgAvgPrcInCCCrcy salkv Value/MA price
TotStkValAtSlsPrcInCoCodeCrcy vksal Value at Sales Price
Currency I_CompanyCode Currency Valuation Crcy
CompanyCode I_CompanyCode CompanyCode Receiver Company Code
lfmon01aserdatasCreationDate

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 I_MaterialValuationHist.
-- 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: IMMVALNHIST

CREATE VIEW I_MaterialValuationHist AS
SELECT
  MatValHist.matnr AS Material,
  MatValHist.bwkey AS ValuationArea,
  bwtar AS ValuationType,
  MatValHist.lfgja AS FiscalYearCurrentPeriod,
  MatValHist.lfmon AS FiscalMonthCurrentPeriod,
  lbkum AS TotalValStockQuantity,
  salk3 AS StockValueInCCCrcy,
  vprsv AS MaterialPriceControl,
  verpr AS MovingAveragePrice,
  stprs AS StandardPrice,
  peinh AS MaterialPriceUnitQty,
  bklas AS ValuationClass,
  salkv AS ValBsdOnMvgAvgPrcInCCCrcy,
  vksal AS TotStkValAtSlsPrcInCoCodeCrcy,
  CompanyCode.Currency AS Currency,
  CompanyCode.CompanyCode AS CompanyCode,
  cast ( concat( MatValHist.lfgja , concat( MatValHist.lfmon , '01' ) ) as erdat )as CreationDate AS lfmon01aserdatasCreationDate
FROM Mbv_Mbewh AS MatValHist
INNER JOIN I_ValuationArea AS ValuationArea ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
;