C_MaterialInventoryPrice

DDL: C_MATERIALINVENTORYPRICE SQL: CMATINVPR Type: view CONSUMPTION Package: ODATA_ML_UPLMATINVPR

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)

SourceAliasJoin Type
I_MaterialValuationsByPeriods I_MaterialValuationsByPeriods from

Annotations (9)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F4006 ASQL_F4006 C2 NOT_RELEASED

Fields (38)

KeyFieldSource TableSource FieldDescription
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
;