P_Matval_Manage_Pnv_Pre
P_Matval_Manage_Pnv_Pre is a Basic CDS View in SAP S/4HANA. It reads from 20 data sources and exposes 33 fields with key fields CostEstimate, vjgjaelseendasfin_fiscyearasFiscalYear, vjmonelseendasfin_fiscperasFiscalPeriod, LedgerValuationCurrencyRole, Ledger.
Data Sources (20)
| Source | Alias | Join Type |
|---|---|---|
| ckmlhd | hd | inner |
| ckmlhd | hd | inner |
| ckmlhd | hd | inner |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_MatlCtrlRecdLdgrFiscalPeriod | marvld | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| P_MaterialLedger_Name_Curtp | mlnc | inner |
| marv | mv | inner |
| P_Matval_Manage_Max | mx | from |
| I_MaterialLedgerPrice | price | union_all |
| I_MaterialLedgerPrice | price | union_all |
| I_MaterialLedgerPrice | price | union_all |
| R_MatlPriceDataMigrationStatus | tf | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| R_MatlPriceDataMigrationStatus | tf | inner |
| t001k | tk | inner |
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 | PMATVALMGMPRE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostEstimate | CostEstimate | Cost EstimateNo | |
| KEY | vjgjaelseendasfin_fiscyearasFiscalYear | |||
| KEY | vjmonelseendasfin_fiscperasFiscalPeriod | |||
| KEY | LedgerValuationCurrencyRole | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | P_Matval_Manage_Max | ValuationArea | Valuation Area |
| MaxFiscPerCKMLPP | MaxFiscPerCKMLPP | |||
| period_type | P_Matval_Manage_Max | period_type | Repeat Appmt Type | |
| matnrkeyCostEstimate | ||||
| KEY | FiscalYear | P_MatlCtrlRecdLdgrFiscalPeriod | CurrentFiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_MatlCtrlRecdLdgrFiscalPeriod | CurrentFiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | ckmlhd | bwkey | Valuation Area |
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | Repeat Appmt Type | |||
| matnrkeyCostEstimate | ||||
| KEY | FiscalYear | P_MatlCtrlRecdLdgrFiscalPeriod | PreviousFiscalPeriodFiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_MatlCtrlRecdLdgrFiscalPeriod | PreviousFiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | ckmlhd | bwkey | Valuation Area |
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | Repeat Appmt Type | |||
| matnrkeyCostEstimate | ||||
| KEY | FiscalYear | P_MatlCtrlRecdLdgrFiscalPeriod | PreviousFiscalYear | G/L Fiscal Year |
| KEY | FiscalPeriod | P_MatlCtrlRecdLdgrFiscalPeriod | PrevFiscalYearLastFiscalPeriod | Tax period |
| KEY | LedgerValuationCurrencyRole | P_MaterialLedger_Name_Curtp | curtp | Valuation Area |
| KEY | Ledger | P_MaterialLedger_Name_Curtp | rldnr | Ledger (Compat.) |
| KEY | ValuationArea | ckmlhd | bwkey | Valuation Area |
| MaxFiscPerCKMLPP | I_MaterialLedgerPrice | MatlPrcValdtyStrtFsclYearPerd | ||
| period_type | Repeat Appmt 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_Manage_Pnv_Pre.
-- 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: PMATVALMGMPRE
CREATE VIEW P_Matval_Manage_Pnv_Pre AS
SELECT
CostEstimate,
cast(case mx.period_type when 'LF' then mv.lfgja when 'VM' then mv.vmgja when 'VJ' then mv.vjgja else '' end as fin_fiscyear) as FiscalYear AS vjgjaelseendasfin_fiscyearasFiscalYear,
cast(case mx.period_type when 'LF' then concat('0',mv.lfmon) when 'VM' then concat('0',mv.vmmon) when 'VJ' then concat('0',mv.vjmon) else '' end as fin_fiscper) as FiscalPeriod AS vjmonelseendasfin_fiscperasFiscalPeriod,
mlnc.curtp AS LedgerValuationCurrencyRole,
mlnc.rldnr AS Ledger,
mx.ValuationArea AS ValuationArea,
MaxFiscPerCKMLPP,
mx.period_type AS period_type,
mlnc.rcolumn AS matnrkeyCostEstimate,
marvld.CurrentFiscalYear AS FiscalYear,
marvld.CurrentFiscalPeriod AS FiscalPeriod,
mlnc.rcolumn AS rcolumn
FROM P_Matval_Manage_Max AS mx
INNER JOIN R_MatlPriceDataMigrationStatus AS tf ON /* join condition not captured in parsed metadata */
INNER JOIN t001k AS tk ON /* join condition not captured in parsed metadata */
INNER JOIN marv AS mv ON /* join condition not captured in parsed metadata */
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 ckmlhd AS hd 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