I_MaterialValuationsByPeriods
Material Valuations by Currtp/Period
I_MaterialValuationsByPeriods is a Composite CDS View that provides data about "Material Valuations by Currtp/Period" in SAP S/4HANA. It reads from 4 data sources (R_MatlLedgerValnCrcyRole, I_MatlCtrlRecdLdgrFiscalPeriod, P_Matval_Manage_Md2, P_Matval_Manage_Pnv) and exposes 42 fields with key fields CostEstimate, FiscalYear, FiscalPeriod, LedgerValuationCurrencyRole, ValuationArea. It has 3 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| R_MatlLedgerValnCrcyRole | lvcr | inner |
| I_MatlCtrlRecdLdgrFiscalPeriod | mcrfp | inner |
| P_Matval_Manage_Md2 | md | inner |
| P_Matval_Manage_Pnv | pnv | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Plant | _Plant | $projection.ValuationArea = _Plant.Plant |
| [0..1] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMATVALMGMPNV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Material Valuations by Currtp/Period | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | P_Matval_Manage_Pnv | CostEstimate | Cost EstimateNo |
| KEY | FiscalYear | P_Matval_Manage_Pnv | FiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_Matval_Manage_Pnv | FiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | P_Matval_Manage_Pnv | LedgerValuationCurrencyRole | |
| KEY | ValuationArea | P_Matval_Manage_Md2 | ValuationArea | Valuation Area |
| LegalCurrencyRole | R_MatlLedgerValnCrcyRole | LegalCurrencyRole | ||
| Ledger | R_MatlLedgerValnCrcyRole | Ledger | Ledger | |
| AccountingValuationView | R_MatlLedgerValnCrcyRole | AccountingValuationView | ||
| AccountingValuationSubview | R_MatlLedgerValnCrcyRole | AccountingValuationSubview | ||
| LedgerValnCrcyRoleIsUsedInLogs | R_MatlLedgerValnCrcyRole | LedgerValnCrcyRoleIsUsedInLogs | Is Log. Curr. Type | |
| LegalCurrencyRoleName | R_MatlLedgerValnCrcyRole | LegalCurrencyRoleName | ||
| LedgerName | R_MatlLedgerValnCrcyRole | LedgerName | Ledger Name | |
| AccountingValuationViewName | R_MatlLedgerValnCrcyRole | AccountingValuationViewName | ||
| AccountingValuationSubviewName | R_MatlLedgerValnCrcyRole | AccountingValuationSubviewName | ||
| AcctgValnVwSubviewCombinedName | R_MatlLedgerValnCrcyRole | AcctgValnVwSubviewCombinedName | ||
| CurrencyRole | R_MatlLedgerValnCrcyRole | CurrencyRole | Curr./Val. Type | |
| ControllingArea | _CompanyCode | ControllingArea | Controlling Area | |
| ControllingValuationType | ||||
| MaterialPriceUnitQty | P_Matval_Manage_Pnv | MaterialPriceUnitQty | Price unit | |
| MovingAveragePrice | P_Matval_Manage_Pnv | MovingAveragePrice | Per. Unit Price | |
| InvtryValnSpecialStockType | P_Matval_Manage_Pnv | InvtryValnSpecialStockType | ||
| InventorySpecialStockValnType | P_Matval_Manage_Pnv | InventorySpecialStockValnType | Valuation | |
| MaterialPriceControl | P_Matval_Manage_Pnv | MaterialPriceControl | Price Control | |
| StandardPrice | P_Matval_Manage_Pnv | StandardPrice | Standard price | |
| PriceDeterminationControl | P_Matval_Manage_Pnv | PriceDeterminationControl | Price Determ. | |
| FuturePrice | P_Matval_Manage_Pnv | FuturePrice | ||
| FuturePriceValidityStartDate | P_Matval_Manage_Pnv | FuturePriceValidityStartDate | Valid from | |
| FuturePlannedPrice | P_Matval_Manage_Pnv | FuturePlannedPrice | ||
| TotalValuatedStockAmount | P_Matval_Manage_Pnv | TotalValuatedStockAmount | ||
| TotalVltdStockQuantity | P_Matval_Manage_Pnv | TotalVltdStockQuantity | ||
| Currency | P_Matval_Manage_Md2 | Currency | Valuation Crcy | |
| BaseUnit | P_Matval_Manage_Md2 | BaseUnit | Unit of Measure | |
| ValuationQuantityUnit | P_Matval_Manage_Md2 | ValuationQuantityUnit | ||
| CompanyCode | P_Matval_Manage_Md2 | CompanyCode | Receiver Company Code | |
| Material | P_Matval_Manage_Md2 | Material | Vehicle Model | |
| MaterialName | _MaterialText | MaterialName | Material Description | |
| InventoryValuationType | P_Matval_Manage_Md2 | InventoryValuationType | Valuation Type | |
| InventoryValuationCategory | P_Matval_Manage_Md2 | InventoryValuationCategory | ||
| Plant | ||||
| PlantName | _Plant | PlantName | Plant Name | |
| PostgFsclPerdCurDateRelation | ||||
| _ControllingArea | _CompanyCode | _ControllingArea |
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_MaterialValuationsByPeriods.
-- 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: IMATVALMGMPNV
CREATE VIEW I_MaterialValuationsByPeriods AS
SELECT
pnv.CostEstimate AS CostEstimate,
pnv.FiscalYear AS FiscalYear,
pnv.FiscalPeriod AS FiscalPeriod,
pnv.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
md.ValuationArea AS ValuationArea,
lvcr.LegalCurrencyRole AS LegalCurrencyRole,
lvcr.Ledger AS Ledger,
lvcr.AccountingValuationView AS AccountingValuationView,
lvcr.AccountingValuationSubview AS AccountingValuationSubview,
lvcr.LedgerValnCrcyRoleIsUsedInLogs AS LedgerValnCrcyRoleIsUsedInLogs,
lvcr.LegalCurrencyRoleName AS LegalCurrencyRoleName,
lvcr.LedgerName AS LedgerName,
lvcr.AccountingValuationViewName AS AccountingValuationViewName,
lvcr.AccountingValuationSubviewName AS AccountingValuationSubviewName,
lvcr.AcctgValnVwSubviewCombinedName AS AcctgValnVwSubviewCombinedName,
lvcr.CurrencyRole AS CurrencyRole,
_CompanyCode.ControllingArea AS ControllingArea,
cast (lvcr.AccountingValuationView as valutyp) AS ControllingValuationType,
pnv.MaterialPriceUnitQty AS MaterialPriceUnitQty,
pnv.MovingAveragePrice AS MovingAveragePrice,
pnv.InvtryValnSpecialStockType AS InvtryValnSpecialStockType,
pnv.InventorySpecialStockValnType AS InventorySpecialStockValnType,
pnv.MaterialPriceControl AS MaterialPriceControl,
pnv.StandardPrice AS StandardPrice,
pnv.PriceDeterminationControl AS PriceDeterminationControl,
pnv.FuturePrice AS FuturePrice,
pnv.FuturePriceValidityStartDate AS FuturePriceValidityStartDate,
pnv.FuturePlannedPrice AS FuturePlannedPrice,
pnv.TotalValuatedStockAmount AS TotalValuatedStockAmount,
pnv.TotalVltdStockQuantity AS TotalVltdStockQuantity,
md.Currency AS Currency,
md.BaseUnit AS BaseUnit,
md.ValuationQuantityUnit AS ValuationQuantityUnit,
md.CompanyCode AS CompanyCode,
md.Material AS Material,
_MaterialText.MaterialName AS MaterialName,
md.InventoryValuationType AS InventoryValuationType,
md.InventoryValuationCategory AS InventoryValuationCategory,
cast (md.ValuationArea as werks_d) AS Plant,
_Plant.PlantName AS PlantName,
cast ( pnv.period_type as ck_per_art ) AS PostgFsclPerdCurDateRelation,
_CompanyCode._ControllingArea AS _ControllingArea
FROM P_Matval_Manage_Pnv AS pnv
INNER JOIN P_Matval_Manage_Md2 AS md ON /* join condition not captured in parsed metadata */
INNER JOIN R_MatlLedgerValnCrcyRole AS lvcr ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlCtrlRecdLdgrFiscalPeriod AS mcrfp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON ValuationArea = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language -- association [0..1]
;
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