I_UpldMaterialInventoryPrice
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)
| Source | Alias | Join Type |
|---|---|---|
| I_MatlLedgerValnCrcyRoleName | mlnc | inner |
| R_InventoryPriceByKeyDate | R_InventoryPriceByKeyDate | from |
| I_UploadedIntmdMatlChgdPrice | xls | inner |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date | |
| P_CompanyCode | bukrs | |
| P_BatchUUID | sysuuid_x16 | |
| P_FiscalPeriod | fin_fiscper | |
| P_FiscalYear | fin_fiscyear |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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