P_MatVal_By_Period_Types

DDL: P_MATVAL_BY_PERIOD_TYPES SQL: PMTVLPERIODTYPES Type: view COMPOSITE Package: ODATA_MATVAL_MANAGE

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)

Annotations (6)

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

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 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
;