I_UpldMaterialInventoryPrice

DDL: I_UPLDMATERIALINVENTORYPRICE Type: view_entity COMPOSITE Package: ODATA_ML_UPLMATINVPR

Uploaded Material Inventory Price

I_UpldMaterialInventoryPrice is a Composite CDS View that provides data about "Uploaded Material Inventory Price" in SAP S/4HANA. It reads from 3 data sources (I_MatlLedgerValnCrcyRoleName, R_InventoryPriceByKeyDate, I_UploadedIntmdMatlChgdPrice) and exposes 35 fields with key fields CostEstimate, Ledger, CurrencyRole. It has 4 associations to related views. Part of development package ODATA_ML_UPLMATINVPR.

Data Sources (3)

SourceAliasJoin Type
I_MatlLedgerValnCrcyRoleName mlnc inner
R_InventoryPriceByKeyDate R_InventoryPriceByKeyDate from
I_UploadedIntmdMatlChgdPrice xls inner

Parameters (5)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_CompanyCode bukrs
P_BatchUUID sysuuid_x16
P_FiscalPeriod fin_fiscper
P_FiscalYear fin_fiscyear

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $parameters.P_CompanyCode
[0..1] I_Plant _Plant _Plant.Plant = invpr.ValuationArea
[0..1] I_MaterialText _MaterialText _MaterialText.Material = invpr.Material and _MaterialText.Language = $session.system_language
[0..1] I_CurrencyRole _CurrencyRole _CurrencyRole.CurrencyRole = invpr.CurrencyRole

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Uploaded Material Inventory Price view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY CostEstimate invpr CostEstimate Cost EstimateNo
KEY Ledger invpr Ledger Ledger
KEY CurrencyRole invpr CurrencyRole Curr./Val. Type
OpnCtlgIconPath
Material invpr Material Vehicle Model
InventoryValuationType
InventoryValuationCategory
Plant
LdgrValnCrcyRoleSemanticKey
LegalCurrencyRole invpr LegalCurrencyRole
LedgerName invpr LedgerName Ledger Name
AcctgValnVwSubviewCombinedName
AccountingValuationView invpr AccountingValuationView
AccountingValuationSubview _CurrencyRole AccountingValuationSubview
NewInventoryPrice I_UploadedIntmdMatlChgdPrice NewInventoryPrice
InventoryPrice invpr InventoryPrice Price
NewMaterialPriceUnitQty I_UploadedIntmdMatlChgdPrice NewMaterialPriceUnitQty Price unit
MaterialPriceUnitQty invpr MaterialPriceUnitQty Price unit
TotalVltdStockQuantity bal ValuationQuantity
NewStockAmount
ValuationImpactValue
SimulationStatusCriticality I_UploadedIntmdMatlChgdPrice SimulationStatusCriticality Simulation Status
Currency invpr Currency Valuation Crcy
ValuationQuantityUnit invpr BaseUnit Unit of Measure
CompanyCode invpr CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name
PlantName _Plant PlantName Plant Name
MaterialName _MaterialText MaterialName Material Description
LegalCurrencyRoleName invpr LegalCurrencyRoleName
LineItemIsCrtedFromCrcyCnvrsn
LineItemIsCreatedFromUpload
ControllingArea _CompanyCode ControllingArea Controlling Area
ControllingValuationType invpr AccountingValuationView
ValuationArea invpr ValuationArea Valuation Area
KeyDate

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_UpldMaterialInventoryPrice.
-- 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.
-- Parameters: P_KeyDate : vdm_v_key_date, P_CompanyCode : bukrs, P_BatchUUID : sysuuid_x16, P_FiscalPeriod : fin_fiscper, P_FiscalYear : fin_fiscyear

CREATE VIEW I_UpldMaterialInventoryPrice AS
SELECT
  invpr.CostEstimate AS CostEstimate,
  invpr.Ledger AS Ledger,
  invpr.CurrencyRole AS CurrencyRole,
  cast('' as fml_umip_icon_path) AS OpnCtlgIconPath,
  invpr.Material AS Material,
  cast(invpr.InventoryValuationType as fml_umip_invtry_valuation_type) AS InventoryValuationType,
  cast('' as bwtty_d) AS InventoryValuationCategory,
  cast(invpr.ValuationArea as werks_d preserving type) AS Plant,
  cast(concat(invpr.LegalCurrencyRole, concat('/', concat(invpr.Ledger, concat('/', invpr.AcctgValnVwSubviewCombinedName)))) as fins_ldgrvalncrcyrolesemkey) AS LdgrValnCrcyRoleSemanticKey,
  invpr.LegalCurrencyRole AS LegalCurrencyRole,
  invpr.LedgerName AS LedgerName,
  cast(invpr.AcctgValnVwSubviewCombinedName as fml_umip_valuviewname) AS AcctgValnVwSubviewCombinedName,
  invpr.AccountingValuationView AS AccountingValuationView,
  _CurrencyRole.AccountingValuationSubview AS AccountingValuationSubview,
  xls.NewInventoryPrice AS NewInventoryPrice,
  invpr.InventoryPrice AS InventoryPrice,
  xls.NewMaterialPriceUnitQty AS NewMaterialPriceUnitQty,
  invpr.MaterialPriceUnitQty AS MaterialPriceUnitQty,
  bal.ValuationQuantity AS TotalVltdStockQuantity,
  cast(0 as fml_umip_new_total_value) AS NewStockAmount,
  cast('' as fml_umip_valuation_impact) AS ValuationImpactValue,
  xls.SimulationStatusCriticality AS SimulationStatusCriticality,
  invpr.Currency AS Currency,
  invpr.BaseUnit AS ValuationQuantityUnit,
  invpr.CompanyCode AS CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _Plant.PlantName AS PlantName,
  _MaterialText.MaterialName AS MaterialName,
  invpr.LegalCurrencyRoleName AS LegalCurrencyRoleName,
  cast('' as fml_umip_line_from_crcy_cnvrsn) AS LineItemIsCrtedFromCrcyCnvrsn,
  cast('' as fml_umip_line_from_upload) AS LineItemIsCreatedFromUpload,
  _CompanyCode.ControllingArea AS ControllingArea,
  invpr.AccountingValuationView AS ControllingValuationType,
  invpr.ValuationArea AS ValuationArea,
  $parameters.P_KeyDate AS KeyDate
FROM R_InventoryPriceByKeyDate
INNER JOIN I_MatlLedgerValnCrcyRoleName AS mlnc ON /* join condition not captured in parsed metadata */
INNER JOIN I_UploadedIntmdMatlChgdPrice AS xls ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = $parameters.P_CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = invpr.ValuationArea  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = invpr.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CurrencyRole AS _CurrencyRole ON _CurrencyRole.CurrencyRole = invpr.CurrencyRole  -- association [0..1]
;