I_MaterialValuationHist
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | CompanyCode | inner |
| Mbv_Mbewh | MatValHist | from |
| I_ValuationArea | ValuationArea | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
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