P_ForecastDemand
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)
| Source | Alias | Join 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)
| Name | Type | Default |
|---|---|---|
| P_TodayDate | sydate |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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