C_PostedMatlInventoryValuation
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)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialInventoryValuation | _MaterialInventoryValuation | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = :P_CompanyCode |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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