P_ForecastDemand

DDL: P_FORECASTDEMAND SQL: PPPFCSTDMND Type: view COMPOSITE Package: VDM_PP_MP

Forecast Demand

P_ForecastDemand is a Composite CDS View that provides data about "Forecast Demand" in SAP S/4HANA. It reads from 11 data sources and exposes 34 fields. Part of development package VDM_PP_MP.

Data Sources (11)

SourceAliasJoin Type
I_ForecastDemandHeader ForecastHeader inner
I_ForecastDemandHeader ForecastHeader inner
I_ForecastDemandItemHistory ForecastHistory from
I_ForecastDemandItemHistory ForecastHistory left_outer
I_ForecastDemandItemHistory ForecastHistory union
P_ForecastDemandItem ForecastItem left_outer
P_ForecastDemandItem ForecastItem inner
P_ForecastDemandItem ForecastItem union
P_CurrentYearMonth P_CurrentYearMonth inner
P_CurrentYearMonth P_CurrentYearMonth inner
P_CurrentYearMonth P_CurrentYearMonth inner

Parameters (1)

NameTypeDefault
P_TodayDate sydate

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPPFCSTDMND view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (34)

KeyFieldSource TableSource FieldDescription
Material I_ForecastDemandItemHistory Material Vehicle Model
ProductionPlant I_ForecastDemandItemHistory ProductionPlant Prod plnt
RequirementType I_ForecastDemandItemHistory RequirementType RequirementType
RequirementPlan I_ForecastDemandItemHistory RequirementPlan Requirements Plan
PlannedIndependentRequirement I_ForecastDemandItemHistory PlannedIndependentRequirement Plnd ID
MRPArea I_ForecastDemandItemHistory MRPArea MRP Area
ProductBaseUnit
DemandPlanner P_ForecastDemandItem DemandPlanner
CalendarMonth I_ForecastDemandItemHistory CalendarMonth Calendar Month
_CalendarMonth I_ForecastDemandItemHistory _CalendarMonth
_YearMonth I_ForecastDemandItemHistory _YearMonth
Material I_ForecastDemandHeader Material Vehicle Model
ProductionPlant I_ForecastDemandHeader ProductionPlant Prod plnt
RequirementType I_ForecastDemandItemHistory RequirementType RequirementType
RequirementPlan I_ForecastDemandItemHistory RequirementPlan Requirements Plan
PlannedIndependentRequirement I_ForecastDemandItemHistory PlannedIndependentRequirement Plnd ID
MRPArea I_ForecastDemandItemHistory MRPArea MRP Area
ProductBaseUnit
DemandPlanner P_ForecastDemandItem DemandPlanner
CalendarMonth P_ForecastDemandItem CalendarMonth Calendar Month
_CalendarMonth P_ForecastDemandItem _CalendarMonth
_YearMonth P_ForecastDemandItem _YearMonth
Material I_ForecastDemandHeader Material Vehicle Model
ProductionPlant I_ForecastDemandHeader ProductionPlant Prod plnt
RequirementType I_ForecastDemandItemHistory RequirementType RequirementType
RequirementPlan I_ForecastDemandItemHistory RequirementPlan Requirements Plan
PlannedIndependentRequirement I_ForecastDemandItemHistory PlannedIndependentRequirement Plnd ID
MRPArea I_ForecastDemandItemHistory MRPArea MRP Area
ProductBaseUnit
DemandPlanner I_ForecastDemandItemHistory DemandPlanner
CalendarMonth I_ForecastDemandItemHistory CalendarMonth Calendar Month
_CalendarMonth I_ForecastDemandItemHistory _CalendarMonth
_YearMonth I_ForecastDemandItemHistory _YearMonth
_ProductBaseUnit

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_ForecastDemand.
-- 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: PPPFCSTDMND
-- Parameters: P_TodayDate : sydate

CREATE VIEW P_ForecastDemand AS
SELECT
  ForecastHistory.Material AS Material,
  ForecastHistory.ProductionPlant AS ProductionPlant,
  ForecastHistory.RequirementType AS RequirementType,
  ForecastHistory.RequirementPlan AS RequirementPlan,
  ForecastHistory.PlannedIndependentRequirement AS PlannedIndependentRequirement,
  ForecastHistory.MRPArea AS MRPArea,
  ForecastHistory._MaterialMaster.MaterialBaseUnit AS ProductBaseUnit,
  ForecastItem.DemandPlanner AS DemandPlanner,
  ForecastHistory.CalendarMonth AS CalendarMonth,
  ForecastHistory._CalendarMonth AS _CalendarMonth,
  ForecastHistory._YearMonth AS _YearMonth,
  ForecastHeader._MaterialMaster._BaseUnit AS _ProductBaseUnit
FROM I_ForecastDemandItemHistory AS ForecastHistory
INNER JOIN P_CurrentYearMonth ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ForecastDemandItem AS ForecastItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_ForecastDemandHeader AS ForecastHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ForecastDemandItemHistory AS ForecastHistory ON /* join condition not captured in parsed metadata */
INNER JOIN P_ForecastDemandItem AS ForecastItem ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): P_ForecastDemandItem, I_ForecastDemandItemHistory
;