P_MatVal_By_Period_Types
Prices and values for app Mat. Val. Manage
P_MatVal_By_Period_Types is a Composite CDS View that provides data about "Prices and values for app Mat. Val. Manage" in SAP S/4HANA. It reads from 9 data sources and exposes 61 fields with key fields CostEstimate, FiscalYear, FiscalPeriod, LedgerValuationCurrencyRole, Ledger. Part of development package ODATA_MATVAL_MANAGE.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_CCLdgrShiftedPrevYearPer | marvld | inner |
| R_MatlLedgerValnCrcyRole | mlnc | inner |
| R_MatlLedgerValnCrcyRole | mlnc | inner |
| R_MatlLedgerValnCrcyRole | mlnc | inner |
| I_MaterialLedgerPrice | price | from |
| I_MaterialLedgerPrice | price | union_all |
| I_MaterialLedgerPrice | price | union_all |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PMTVLPERIODTYPES | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (61)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | I_MaterialLedgerPrice | CostEstimate | Cost EstimateNo |
| KEY | FiscalYear | P_CCLdgrShiftedPrevYearPer | CurrentFiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_CCLdgrShiftedPrevYearPer | CurrentFiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | R_MatlLedgerValnCrcyRole | LedgerValuationCurrencyRole | |
| KEY | Ledger | R_MatlLedgerValnCrcyRole | Ledger | Ledger |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| FiscalYearPer | P_CCLdgrShiftedPrevYearPer | CurrentFiscalYearPeriod | Period/Year | |
| CurrencyRole | R_MatlLedgerValnCrcyRole | CurrencyRole | Curr./Val. Type | |
| CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| Currency | I_MaterialLedgerPrice | Currency | Valuation Crcy | |
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price Control | |
| MatlPrcValdtyStrtFsclYearPerd | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| MatlPrcValdtyEndFsclYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyEndFsclYearPeriod | ||
| MaterialPriceUnitQty | I_MaterialLedgerPrice | MaterialPriceUnitQty | Price unit | |
| BaseUnit | I_MaterialLedgerPrice | ValuationQuantityUnit | ||
| InventoryValuationType | I_MaterialLedgerPrice | InventoryValuationType | Valuation Type | |
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | ||||
| CostEstimate | Cost EstimateNo | |||
| KEY | FiscalYear | P_CCLdgrShiftedPrevYearPer | PreviousFiscalPeriodFiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_CCLdgrShiftedPrevYearPer | PreviousFiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | R_MatlLedgerValnCrcyRole | LedgerValuationCurrencyRole | |
| KEY | Ledger | R_MatlLedgerValnCrcyRole | Ledger | Ledger |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| FiscalYearPer | P_CCLdgrShiftedPrevYearPer | PreviousFiscalYearPeriod | Period/Year | |
| CurrencyRole | R_MatlLedgerValnCrcyRole | CurrencyRole | Curr./Val. Type | |
| CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| Currency | I_MaterialLedgerPrice | Currency | Valuation Crcy | |
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price Control | |
| MatlPrcValdtyStrtFsclYearPerd | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| MatlPrcValdtyEndFsclYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyEndFsclYearPeriod | ||
| MaterialPriceUnitQty | I_MaterialLedgerPrice | MaterialPriceUnitQty | Price unit | |
| BaseUnit | I_MaterialLedgerPrice | ValuationQuantityUnit | ||
| InventoryValuationType | I_MaterialLedgerPrice | InventoryValuationType | Valuation Type | |
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | ||||
| CostEstimate | Cost EstimateNo | |||
| KEY | FiscalYear | P_CCLdgrShiftedPrevYearPer | PreviousFiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_CCLdgrShiftedPrevYearPer | PrevFiscalYearLastFiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | R_MatlLedgerValnCrcyRole | LedgerValuationCurrencyRole | |
| KEY | Ledger | R_MatlLedgerValnCrcyRole | Ledger | Ledger |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| FiscalYearPer | P_CCLdgrShiftedPrevYearPer | PrevFsclYearLastFsclYearPeriod | Period/Year | |
| CurrencyRole | R_MatlLedgerValnCrcyRole | CurrencyRole | Curr./Val. Type | |
| CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| Currency | I_MaterialLedgerPrice | Currency | Valuation Crcy | |
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price Control | |
| MatlPrcValdtyStrtFsclYearPerd | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| MatlPrcValdtyEndFsclYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyEndFsclYearPeriod | ||
| MaterialPriceUnitQty | I_MaterialLedgerPrice | MaterialPriceUnitQty | Price unit | |
| BaseUnit | I_MaterialLedgerPrice | ValuationQuantityUnit | ||
| InventoryValuationType | I_MaterialLedgerPrice | InventoryValuationType | Valuation Type | |
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | ||||
| JrnlEntrItemCrcyRolePosition | R_MatlLedgerValnCrcyRole | JrnlEntrItemCrcyRolePosition |
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_MatVal_By_Period_Types.
-- 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: PMTVLPERIODTYPES
CREATE VIEW P_MatVal_By_Period_Types AS
SELECT
price.CostEstimate AS CostEstimate,
marvld.CurrentFiscalYear AS FiscalYear,
marvld.CurrentFiscalPeriod AS FiscalPeriod,
mlnc.LedgerValuationCurrencyRole AS LedgerValuationCurrencyRole,
mlnc.Ledger AS Ledger,
price.ValuationArea AS ValuationArea,
marvld.CurrentFiscalYearPeriod AS FiscalYearPer,
mlnc.CurrencyRole AS CurrencyRole,
price.CompanyCode AS CompanyCode,
price.Material AS Material,
price.MaterialPrice AS MaterialPrice,
price.Currency AS Currency,
price.MaterialPriceControl AS MaterialPriceControl,
price.MatlPrcValdtyStrtFsclYearPerd AS MatlPrcValdtyStrtFsclYearPerd,
price.MatlPrcValdtyEndFsclYearPeriod AS MatlPrcValdtyEndFsclYearPeriod,
price.MaterialPriceUnitQty AS MaterialPriceUnitQty,
price.ValuationQuantityUnit AS BaseUnit,
price.InventoryValuationType AS InventoryValuationType,
price.MatlPrcValdtyStrtFsclYearPerd AS MaxFiscPerCKMLPP,
'LF' AS period_type,
mlnc.JrnlEntrItemCrcyRolePosition AS JrnlEntrItemCrcyRolePosition
FROM I_MaterialLedgerPrice AS price
INNER JOIN R_MatlLedgerValnCrcyRole AS mlnc ON /* join condition not captured in parsed metadata */
INNER JOIN P_MatlCtrlRecdLdgrFiscalPeriod AS marvld ON /* join condition not captured in parsed metadata */
INNER JOIN P_CCLdgrShiftedPrevYearPer AS marvld ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_MaterialLedgerPrice
;
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