P_MatVal_By_Period_Types
P_MatVal_By_Period_Types is a Basic CDS View in SAP S/4HANA. It reads from 9 data sources and exposes 49 fields with key fields CostEstimate, FiscalYear, FiscalPeriod, LedgerValuationCurrencyRole, Ledger.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_CCLdgrShiftedPrevYearPer | marvld | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| I_MaterialLedgerPrice | price | from |
| I_MaterialLedgerPrice | price | union_all |
| I_MaterialLedgerPrice | price | union_all |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PMTVLPERIODTYPES | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (49)
| 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 | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| FiscalYearPer | P_CCLdgrShiftedPrevYearPer | CurrentFiscalYearPeriod | Period/Year | |
| CurrencyRole | P_MaterialLedger_Name_Curtp | ext_curtype | Crcy.Type/Val.View | |
| CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price Control | |
| MatlPrcValdtyStrtFsclYearPerd | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| MatlPrcValdtyEndFsclYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyEndFsclYearPeriod | ||
| 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 | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| FiscalYearPer | P_CCLdgrShiftedPrevYearPer | PreviousFiscalYearPeriod | Period/Year | |
| CurrencyRole | P_MaterialLedger_Name_Curtp | ext_curtype | Crcy.Type/Val.View | |
| CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price Control | |
| MatlPrcValdtyStrtFsclYearPerd | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| MatlPrcValdtyEndFsclYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyEndFsclYearPeriod | ||
| 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 | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | I_MaterialLedgerPrice | ValuationArea | Valuation Area |
| FiscalYearPer | P_CCLdgrShiftedPrevYearPer | PrevFsclYearLastFsclYearPeriod | Period/Year | |
| CurrencyRole | P_MaterialLedger_Name_Curtp | ext_curtype | Crcy.Type/Val.View | |
| CompanyCode | I_MaterialLedgerPrice | CompanyCode | Receiver Company Code | |
| Material | I_MaterialLedgerPrice | Material | Vehicle Model | |
| MaterialPrice | I_MaterialLedgerPrice | MaterialPrice | Inventory Price | |
| MaterialPriceControl | I_MaterialLedgerPrice | MaterialPriceControl | Price Control | |
| MatlPrcValdtyStrtFsclYearPerd | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| MatlPrcValdtyEndFsclYearPeriod | I_MaterialLedgerPrice | MatlPrcValdtyEndFsclYearPeriod | ||
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | ||||
| rcolumn | P_MaterialLedger_Name_Curtp | rcolumn | Char01 |
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.curtp AS LedgerValuationCurrencyRole,
mlnc.rldnr AS Ledger,
price.ValuationArea AS ValuationArea,
marvld.CurrentFiscalYearPeriod AS FiscalYearPer,
mlnc.ext_curtype AS CurrencyRole,
price.CompanyCode AS CompanyCode,
price.Material AS Material,
price.MaterialPrice AS MaterialPrice,
price.MaterialPriceControl AS MaterialPriceControl,
price.MatlPrcValdtyStrtFsclYearPerd AS MatlPrcValdtyStrtFsclYearPerd,
price.MatlPrcValdtyEndFsclYearPeriod AS MatlPrcValdtyEndFsclYearPeriod,
price.MatlPrcValdtyStrtFsclYearPerd AS MaxFiscPerCKMLPP,
'LF' AS period_type,
mlnc.rcolumn AS rcolumn
FROM I_MaterialLedgerPrice AS price
INNER JOIN P_MaterialLedger_Name_Curtp 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