I_PostedMatlInventoryValuation

DDL: I_POSTEDMATLINVENTORYVALUATION Type: view_entity COMPOSITE Package: ODATA_ML_UPLMATINVPR

Matl Inventory Valuation After Posting

I_PostedMatlInventoryValuation is a Composite CDS View that provides data about "Matl Inventory Valuation After Posting" in SAP S/4HANA. It reads from 4 data sources (I_MatlLedgerValnCrcyRoleName, R_InventoryPriceByKeyDate, I_MatlInventoryValuationHeader, I_UploadedIntmdMatlChgdPrice) and exposes 27 fields with key fields CreatedByUser, BatchUUID, CostEstimate, Ledger, CurrencyRole. It has 3 associations to related views. Part of development package ODATA_ML_UPLMATINVPR.

Data Sources (4)

SourceAliasJoin Type
I_MatlLedgerValnCrcyRoleName mlnc inner
R_InventoryPriceByKeyDate R_InventoryPriceByKeyDate from
I_MatlInventoryValuationHeader xls_header inner
I_UploadedIntmdMatlChgdPrice xls_item inner

Parameters (6)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_CompanyCode bukrs
P_Ledger fins_ledger
P_BatchUUID sysuuid_x16
P_FiscalPeriod fin_fiscper
P_FiscalYear fin_fiscyear

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $parameters.P_CompanyCode
[0..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[0..1] I_MaterialText _MaterialText _MaterialText.Material = $projection.Material and _MaterialText.Language = $session.system_language

Annotations (7)

NameValueLevelField
EndUserText.label Matl Inventory Valuation After Posting view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY CreatedByUser I_UploadedIntmdMatlChgdPrice CreatedByUser User Name
KEY BatchUUID I_UploadedIntmdMatlChgdPrice BatchUUID Target Grp GUID
KEY CostEstimate invpr CostEstimate Cost EstimateNo
InventoryValuationType Valuation Type
KEY Ledger invpr Ledger Ledger
KEY CurrencyRole invpr CurrencyRole Curr./Val. Type
Material invpr Material Vehicle Model
MaterialName _MaterialText MaterialName Material Description
Plant invpr ValuationArea Valuation Area
PlantName _Plant PlantName Plant Name
LegalCurrencyRole invpr LegalCurrencyRole Plain Currency Type
LedgerName invpr LedgerName Ledger Name
AcctgValnVwSubviewCombinedName
LegalCurrencyRoleName invpr LegalCurrencyRoleName
NewInventoryPrice
Currency invpr Currency Valuation Crcy
NewMaterialPriceUnitQty
ValuationQuantityUnit invpr BaseUnit Unit of Measure
InventoryValuationType invpr InventoryValuationType Valuation Type
MaterialStatusText
SystemMessageType
MaterialLedgerDocument
MaterialLedgerDocumentYear
KeyDate
CompanyCode _CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CompanyCode CompanyCodeName Company Name
DocumentHeaderText I_MatlInventoryValuationHeader DocumentHeaderText Doc.Header Text

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_PostedMatlInventoryValuation.
-- 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_Ledger : fins_ledger, P_BatchUUID : sysuuid_x16, P_FiscalPeriod : fin_fiscper, P_FiscalYear : fin_fiscyear

CREATE VIEW I_PostedMatlInventoryValuation AS
SELECT
  xls_item.CreatedByUser AS CreatedByUser,
  xls_item.BatchUUID AS BatchUUID,
  invpr.CostEstimate AS CostEstimate,
  invpr.Ledger AS Ledger,
  invpr.CurrencyRole AS CurrencyRole,
  invpr.Material AS Material,
  _MaterialText.MaterialName AS MaterialName,
  invpr.ValuationArea AS Plant,
  _Plant.PlantName AS PlantName,
  invpr.LegalCurrencyRole AS LegalCurrencyRole,
  invpr.LedgerName AS LedgerName,
  cast( invpr.AcctgValnVwSubviewCombinedName as fml_umip_valuviewname preserving type ) AS AcctgValnVwSubviewCombinedName,
  invpr.LegalCurrencyRoleName AS LegalCurrencyRoleName,
  cast( invpr.InventoryPrice as fml_umip_new_price preserving type ) AS NewInventoryPrice,
  invpr.Currency AS Currency,
  cast( invpr.MaterialPriceUnitQty as fml_umip_new_price_unit preserving type ) AS NewMaterialPriceUnitQty,
  invpr.BaseUnit AS ValuationQuantityUnit,
  invpr.InventoryValuationType AS InventoryValuationType,
  cast ('' as fml_umip_mat_status_txt) AS MaterialStatusText,
  cast( '' as symsgty preserving type ) AS SystemMessageType,
  cast( '' as ck_belnr ) AS MaterialLedgerDocument,
  cast( '' as ck_kjahr ) AS MaterialLedgerDocumentYear,
  $parameters.P_KeyDate AS KeyDate,
  _CompanyCode.CompanyCode AS CompanyCode,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  xls_header.DocumentHeaderText AS DocumentHeaderText
FROM R_InventoryPriceByKeyDate
INNER JOIN I_MatlLedgerValnCrcyRoleName AS mlnc ON /* join condition not captured in parsed metadata */
INNER JOIN I_UploadedIntmdMatlChgdPrice AS xls_item ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlInventoryValuationHeader AS xls_header 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 = Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
;