P_InventoryRevaluationPosting
Inventory revaluation posting
P_InventoryRevaluationPosting is a Composite CDS View that provides data about "Inventory revaluation posting" in SAP S/4HANA. It reads from 2 data sources (P_InvtryLdgrMatlLedgerDocument, P_MaterialWithActualCosting) and exposes 26 fields. It has 2 associations to related views. Part of development package FCML4H_DISPLAY.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_InvtryLdgrMatlLedgerDocument | MaterialLedgerDocument | from |
| P_MaterialWithActualCosting | MaterialWithActualCosting | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fml_fyearperiod_from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialLedgerCategoryTxt | _MaterialLedgerCategory | $projection.MaterialLedgerCategory = _MaterialLedgerCategory.MaterialLedgerCategory and _MaterialLedgerCategory.Language = $session.system_language |
| [0..1] | P_MLProcessCategoryText | _MLProcessCategory | $projection.ProcessCategory = _MLProcessCategory.ProcessCategory and _MLProcessCategory.Language = $session.system_language |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| PriceDeterminationControl | P_MaterialWithActualCosting | PriceDeterminationControl | Price Determ. | |
| CostEstimate | P_InvtryLdgrMatlLedgerDocument | CostEstimate | Cost EstimateNo | |
| Material | P_MaterialWithActualCosting | Material | Vehicle Model | |
| ValuationArea | P_MaterialWithActualCosting | ValuationArea | Valuation Area | |
| InventoryValuationType | P_MaterialWithActualCosting | InventoryValuationType | Valuation Type | |
| SalesOrder | P_MaterialWithActualCosting | SalesOrder | SD Document | |
| SalesOrderItem | P_MaterialWithActualCosting | SalesOrderItem | Sales Order Item | |
| InventorySpecialStockType | P_MaterialWithActualCosting | InventorySpecialStockType | Special Stock Type | |
| InventorySpecialStockTypeName | P_MaterialWithActualCosting | InventorySpecialStockTypeName | ||
| Supplier | P_MaterialWithActualCosting | Supplier | Supplier | |
| WBSElementExternalID | ||||
| CurrencyRole | P_InvtryLdgrMatlLedgerDocument | CurrencyRole | Curr./Val. Type | |
| Ledger | P_InvtryLdgrMatlLedgerDocument | Ledger | Ledger | |
| MaterialLedgerCategory | P_InvtryLdgrMatlLedgerDocument | MaterialLedgerCategory | Category | |
| MaterialLedgerCategoryText | _MaterialLedgerCategory | MaterialLedgerCategoryText | ||
| ProcessCategory | P_InvtryLdgrMatlLedgerDocument | ProcessCategory | Visibility (I/E/V/C) | |
| ProcessCategoryName | _MLProcessCategory | ProcessCategoryName | ||
| TotalVltdStockQuantity | ||||
| ValuationQuantityUnit | P_InvtryLdgrMatlLedgerDocument | ValuationQuantityUnit | Valuation Unit | |
| InvtryTransacAmtInDisplayCrcy | ||||
| PriceDiffAmtInDisplayCrcy | ||||
| ExchRateDiffAmtInDspCurrency | ||||
| Currency | P_InvtryLdgrMatlLedgerDocument | Currency | Valuation Crcy | |
| CompanyCode | P_MaterialWithActualCosting | CompanyCode | Receiver Company Code | |
| ControllingArea | P_MaterialWithActualCosting | ControllingArea | Controlling Area | |
| FiscalYearPeriod | P_InvtryLdgrMatlLedgerDocument | FiscalYearPeriod | Period/Year |
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 P_InventoryRevaluationPosting.
-- 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_FromFiscalYearPeriod : fml_fyearperiod_from
CREATE VIEW P_InventoryRevaluationPosting AS
SELECT
MaterialWithActualCosting.PriceDeterminationControl AS PriceDeterminationControl,
MaterialLedgerDocument.CostEstimate AS CostEstimate,
MaterialWithActualCosting.Material AS Material,
MaterialWithActualCosting.ValuationArea AS ValuationArea,
MaterialWithActualCosting.InventoryValuationType AS InventoryValuationType,
MaterialWithActualCosting.SalesOrder AS SalesOrder,
MaterialWithActualCosting.SalesOrderItem AS SalesOrderItem,
MaterialWithActualCosting.InventorySpecialStockType AS InventorySpecialStockType,
MaterialWithActualCosting.InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
MaterialWithActualCosting.Supplier AS Supplier,
MaterialWithActualCosting._WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
MaterialLedgerDocument.CurrencyRole AS CurrencyRole,
MaterialLedgerDocument.Ledger AS Ledger,
MaterialLedgerDocument.MaterialLedgerCategory AS MaterialLedgerCategory,
_MaterialLedgerCategory.MaterialLedgerCategoryText AS MaterialLedgerCategoryText,
MaterialLedgerDocument.ProcessCategory AS ProcessCategory,
_MLProcessCategory.ProcessCategoryName AS ProcessCategoryName,
sum( MaterialLedgerDocument.TotalVltdStockQuantity ) AS TotalVltdStockQuantity,
MaterialLedgerDocument.ValuationQuantityUnit AS ValuationQuantityUnit,
sum( MaterialLedgerDocument.InventoryAmtInCCCrcy ) AS InvtryTransacAmtInDisplayCrcy,
sum( MaterialLedgerDocument.PriceDiffAmtInDisplayCrcy ) AS PriceDiffAmtInDisplayCrcy,
sum( MaterialLedgerDocument.ExchRateDiffAmtInDspCurrency ) AS ExchRateDiffAmtInDspCurrency,
MaterialLedgerDocument.Currency AS Currency,
MaterialWithActualCosting.CompanyCode AS CompanyCode,
MaterialWithActualCosting.ControllingArea AS ControllingArea,
MaterialLedgerDocument.FiscalYearPeriod AS FiscalYearPeriod
FROM P_InvtryLdgrMatlLedgerDocument AS MaterialLedgerDocument
INNER JOIN P_MaterialWithActualCosting AS MaterialWithActualCosting ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialLedgerCategoryTxt AS _MaterialLedgerCategory ON MaterialLedgerCategory = _MaterialLedgerCategory.MaterialLedgerCategory AND _MaterialLedgerCategory.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN P_MLProcessCategoryText AS _MLProcessCategory ON ProcessCategory = _MLProcessCategory.ProcessCategory AND _MLProcessCategory.Language = $session.system_language -- 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