C_MaterialInventoryPrice
Material Inventory Price
C_MaterialInventoryPrice is a Consumption CDS View that provides data about "Material Inventory Price" in SAP S/4HANA. It reads from 1 data source (I_MaterialValuationsByPeriods) and exposes 38 fields with key fields CostEstimate, FiscalYear, FiscalPeriod, LedgerValuationCurrencyRole. It is exposed through 1 OData service (ASQL_F4006). Part of development package ODATA_ML_UPLMATINVPR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialValuationsByPeriods | I_MaterialValuationsByPeriods | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMATINVPR | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Material Inventory Price | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F4006 | ASQL_F4006 | C2 | NOT_RELEASED |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | CostEstimate | Cost EstimateNo | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | FiscalPeriod | FiscalPeriod | Tax period | |
| KEY | LedgerValuationCurrencyRole | LedgerValuationCurrencyRole | ||
| CurrencyRole | I_MaterialValuationsByPeriods | CurrencyRole | Curr./Val. Type | |
| CurrencyRoleName | I_MaterialValuationsByPeriods | CurrencyRoleName | ||
| OpnCtlgIconPath | ||||
| Material | Material | Vehicle Model | ||
| MaterialName | MaterialName | Material Description | ||
| InventoryValuationType | Valuation Type | |||
| InventoryValuationCategory | ||||
| Plant | Plant | Valuation Area | ||
| PlantName | PlantName | Plant Name | ||
| LdgrValnCrcyRoleSemanticKey | ||||
| LegalCurrencyRole | LegalCurrencyRole | |||
| LegalCurrencyRoleName | LegalCurrencyRoleName | |||
| Ledger | Ledger | Ledger | ||
| LedgerName | LedgerName | Ledger Name | ||
| AcctgValnVwSubviewCombinedName | ||||
| AccountingValuationView | AccountingValuationView | |||
| AccountingValuationSubview | AccountingValuationSubview | |||
| NewInventoryPrice | ||||
| NewMaterialPriceUnitQty | ||||
| MaterialPriceUnitQty | Price unit | |||
| TotalVltdStockQuantity | ||||
| NewStockAmount | ||||
| TotalValuatedStockAmount | ||||
| ValuationImpactValue | ||||
| MaterialStatusText | ||||
| Currency | I_MaterialValuationsByPeriods | Currency | Valuation Crcy | |
| ValuationQuantityUnit | ValuationQuantityUnit | |||
| CompanyCode | ||||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| ExchangeRateType | ||||
| ControllingArea | I_MaterialValuationsByPeriods | ControllingArea | Controlling Area | |
| ControllingValuationType | ControllingValuationType | |||
| ValuationArea | ValuationArea | Valuation Area | ||
| InvtryValnSpecialStockType | InvtryValnSpecialStockType |
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_MaterialInventoryPrice.
-- 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: CMATINVPR
CREATE VIEW C_MaterialInventoryPrice AS
SELECT
CostEstimate,
FiscalYear,
FiscalPeriod,
LedgerValuationCurrencyRole,
I_MaterialValuationsByPeriods.CurrencyRole AS CurrencyRole,
I_MaterialValuationsByPeriods.CurrencyRoleName AS CurrencyRoleName,
cast ('' as fml_umip_icon_path) AS OpnCtlgIconPath,
Material,
MaterialName,
cast( InventoryValuationType as fml_umip_invtry_valuation_type ) AS InventoryValuationType,
cast( InventoryValuationCategory as bwtty_d ) AS InventoryValuationCategory,
Plant,
PlantName,
cast( concat( LegalCurrencyRole, concat( '/', concat ( Ledger, concat( '/', AcctgValnVwSubviewCombinedName ) ) ) ) as fins_ldgrvalncrcyrolesemkey ) AS LdgrValnCrcyRoleSemanticKey,
LegalCurrencyRole,
LegalCurrencyRoleName,
Ledger,
LedgerName,
cast( AcctgValnVwSubviewCombinedName as fml_umip_valuviewname ) AS AcctgValnVwSubviewCombinedName,
AccountingValuationView,
AccountingValuationSubview,
cast (1 as fml_umip_new_price) AS NewInventoryPrice,
cast (0 as fml_umip_new_price_unit) AS NewMaterialPriceUnitQty,
cast (MaterialPriceUnitQty as fml_umip_current_price_unit) AS MaterialPriceUnitQty,
cast(TotalVltdStockQuantity as fml_umip_valuation_quantity) AS TotalVltdStockQuantity,
cast (0 as fml_umip_new_total_value) AS NewStockAmount,
cast (TotalValuatedStockAmount as fml_umip_current_total_value) AS TotalValuatedStockAmount,
cast ('' as fml_umip_valuation_impact) AS ValuationImpactValue,
cast ('' as fml_umip_mat_status_txt) AS MaterialStatusText,
I_MaterialValuationsByPeriods.Currency AS Currency,
ValuationQuantityUnit,
cast( I_MaterialValuationsByPeriods.CompanyCode as fis_bukrs ) AS CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
cast ('' as kurst ) AS ExchangeRateType,
I_MaterialValuationsByPeriods.ControllingArea AS ControllingArea,
ControllingValuationType,
ValuationArea,
InvtryValnSpecialStockType
FROM I_MaterialValuationsByPeriods
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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