P_MatVal_By_Period_Types

DDL: P_MATVAL_BY_PERIOD_TYPES SQL: PMTVLPERIODTYPES Type: view BASIC

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)

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;