C_PostedMatlInventoryValuation

DDL: C_POSTEDMATLINVENTORYVALUATION SQL: CMATINVVAP Type: view CONSUMPTION

Matl. Inventory Valuation After Posting

C_PostedMatlInventoryValuation is a Consumption CDS View that provides data about "Matl. Inventory Valuation After Posting" in SAP S/4HANA. It reads from 1 data source (I_MaterialInventoryValuation) and exposes 30 fields with key fields BatchUUID, CostEstimate, LedgerValuationCurrencyRole. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialInventoryValuation _MaterialInventoryValuation from

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 (1)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = :P_CompanyCode

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMATINVVAP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #CONSUMPTION view
EndUserText.label Matl. Inventory Valuation After Posting view

Fields (30)

KeyFieldSource TableSource FieldDescription
resultElementFiscalPeriod
resultElementFiscalYear
CreatedByUser
KEY BatchUUID I_MaterialInventoryValuation BatchUUID Target Grp GUID
KEY CostEstimate I_MaterialInventoryValuation CostEstimate Cost EstimateNo
KEY LedgerValuationCurrencyRole I_MaterialInventoryValuation LedgerValuationCurrencyRole Valuation Area
InventoryValuationType Valuation Type
Material _MatlInvtryPrice Material Vehicle Model
MaterialName _MatlInvtryPrice MaterialName Material Description
Plant _MatlInvtryPrice Plant Valuation Area
PlantName _MatlInvtryPrice PlantName Plant Name
LegalCurrencyRole _MatlInvtryPrice LegalCurrencyRole
Ledger _MatlInvtryPrice Ledger Ledger
LedgerName _MatlInvtryPrice LedgerName Ledger Name
AcctgValnVwSubviewCombinedName
LegalCurrencyRoleName _MatlInvtryPrice LegalCurrencyRoleName
NewInventoryPrice
Currency _MatlInvtryPrice Currency Valuation Crcy
NewMaterialPriceUnitQty
ValuationQuantityUnit _MatlInvtryPrice ValuationQuantityUnit
InventoryValuationType _MatlInvtryPrice InventoryValuationType Valuation Type
MaterialStatusText _MatlInvtryPrice MaterialStatusText
SystemMessageType
MaterialLedgerDocument
MaterialLedgerDocumentYear
KeyDate
CompanyCode _MatlInvtryPrice CompanyCode Receiver Company Code
CompanyCodeName _MatlInvtryPrice CompanyCodeName Company Name
DocumentHeaderText _MatlInventoryValuationHeader DocumentHeaderText Doc.Header Text
_CurrentMaterialValuations _CurrentMaterialValuations

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_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.
-- SQL view name: CMATINVVAP
-- 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 C_PostedMatlInventoryValuation AS
SELECT
  resultElement : 'FiscalPeriod' AS resultElementFiscalPeriod,
  resultElement : 'FiscalYear' AS resultElementFiscalYear,
  binding : [ { targetParameter : 'P_KeyDate', type : #PARAMETER, value : 'P_KeyDate' AS CreatedByUser,
  _MaterialInventoryValuation.BatchUUID AS BatchUUID,
  _MaterialInventoryValuation.CostEstimate AS CostEstimate,
  _MaterialInventoryValuation.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
  _MatlInvtryPrice.Material AS Material,
  _MatlInvtryPrice.MaterialName AS MaterialName,
  _MatlInvtryPrice.Plant AS Plant,
  _MatlInvtryPrice.PlantName AS PlantName,
  _MatlInvtryPrice.LegalCurrencyRole AS LegalCurrencyRole,
  _MatlInvtryPrice.Ledger AS Ledger,
  _MatlInvtryPrice.LedgerName AS LedgerName,
  cast( _MatlInvtryPrice.AcctgValnVwSubviewCombinedName as fml_umip_valuviewname ) AS AcctgValnVwSubviewCombinedName,
  _MatlInvtryPrice.LegalCurrencyRoleName AS LegalCurrencyRoleName,
  cast(_MatlInvtryPrice.InventoryPrice as fml_umip_new_price ) AS NewInventoryPrice,
  _MatlInvtryPrice.Currency AS Currency,
  cast(_MatlInvtryPrice.MaterialPriceUnitQty as fml_umip_new_price_unit) AS NewMaterialPriceUnitQty,
  _MatlInvtryPrice.ValuationQuantityUnit AS ValuationQuantityUnit,
  _MatlInvtryPrice.InventoryValuationType AS InventoryValuationType,
  _MatlInvtryPrice.MaterialStatusText AS MaterialStatusText,
  cast( '' as symsgty ) AS SystemMessageType,
  cast( '' as ck_belnr ) AS MaterialLedgerDocument,
  cast( '' as ck_kjahr ) AS MaterialLedgerDocumentYear,
  :P_KeyDate AS KeyDate,
  _MatlInvtryPrice.CompanyCode AS CompanyCode,
  _MatlInvtryPrice.CompanyCodeName AS CompanyCodeName,
  _MatlInventoryValuationHeader.DocumentHeaderText AS DocumentHeaderText
FROM I_MaterialInventoryValuation AS _MaterialInventoryValuation
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = :P_CompanyCode  -- association [0..1]
;