I_ProdDailyDemandChart

DDL: I_PRODDAILYDEMANDCHART Type: view_entity COMPOSITE Package: PPH_DD_VDM_STLM

Product Daily Demand Chart

I_ProdDailyDemandChart is a Composite CDS View that provides data about "Product Daily Demand Chart" in SAP S/4HANA. It reads from 6 data sources and exposes 29 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. Part of development package PPH_DD_VDM_STLM.

Data Sources (6)

SourceAliasJoin Type
P_ChartHorizon _cald from
P_ChartHorizon _cald union_all
P_ProdDailyDemandChartFutr _dmndfut left_outer
P_ProdDailyDemandChartPast _dmndpast left_outer
I_ProdBufLvlPrpslData _ProposalHeader left_outer
I_ProdBufLvlPrpslData _ProposalHeader left_outer

Annotations (7)

NameValueLevelField
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Daily Demand Chart view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY Material I_ProdBufLvlPrpslData Material Vehicle Model
KEY Plant I_ProdBufLvlPrpslData Plant Valuation Area
KEY MRPArea I_ProdBufLvlPrpslData MRPArea MRP Area
KEY ProposalStartDate I_ProdBufLvlPrpslData ProposalStartDate Proposal Valid From
KEY ProposalVersion I_ProdBufLvlPrpslData ProposalVersion Proposal Version
KEY DemandPostingDate P_ChartHorizon CalendarDate Calendar Date
DemandAdjustmentFactor P_ProdDailyDemandChartFutr DemandAdjustmentFactor
AverageDailyUsage P_ProdDailyDemandChartFutr AverageDailyUsage
AdjustedAverageDailyUsage P_ProdDailyDemandChartFutr AdjustedAverageDailyUsage
AvgDailyUsageUnit P_ProdDailyDemandChartFutr AvgDailyUsageUnit
HorizonDaysInFuture P_ProdDailyDemandChartFutr HorizonDaysInFuture Horizon for future
HorizonDaysInPast P_ProdDailyDemandChartFutr HorizonDaysInPast Horizon for past
ProductAuthorizationGroup P_ProdDailyDemandChartFutr ProductAuthorizationGroup AuthorizGroup
ProductTypeAuthorizationGroup P_ProdDailyDemandChartFutr ProductTypeAuthorizationGroup
Material Vehicle Model
KEY Plant I_ProdBufLvlPrpslData Plant Valuation Area
KEY MRPArea I_ProdBufLvlPrpslData MRPArea MRP Area
KEY ProposalStartDate I_ProdBufLvlPrpslData ProposalStartDate Proposal Valid From
KEY ProposalVersion I_ProdBufLvlPrpslData ProposalVersion Proposal Version
KEY DemandPostingDate P_ChartHorizon CalendarDate Calendar Date
DemandAdjustmentFactor P_ProdDailyDemandChartPast DemandAdjustmentFactor
AverageDailyUsage P_ProdDailyDemandChartPast AverageDailyUsage
AdjustedAverageDailyUsage P_ProdDailyDemandChartPast AdjustedAverageDailyUsage
AvgDailyUsageUnit P_ProdDailyDemandChartPast AvgDailyUsageUnit
HorizonDaysInFuture I_ProdBufLvlPrpslData HorizonDaysInFuture Horizon for future
HorizonDaysInPast I_ProdBufLvlPrpslData HorizonDaysInPast Horizon for past
ProductAuthorizationGroup I_ProdBufLvlPrpslData ProductAuthorizationGroup AuthorizGroup
ProductTypeAuthorizationGroup I_ProdBufLvlPrpslData ProductTypeAuthorizationGroup
ProductGroupAuthorizationGroup I_ProdBufLvlPrpslData ProductGroupAuthorizationGroup

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 I_ProdDailyDemandChart.
-- 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.

CREATE VIEW I_ProdDailyDemandChart AS
SELECT
  _ProposalHeader.Material AS Material,
  _ProposalHeader.Plant AS Plant,
  _ProposalHeader.MRPArea AS MRPArea,
  _ProposalHeader.ProposalStartDate AS ProposalStartDate,
  _ProposalHeader.ProposalVersion AS ProposalVersion,
  _cald.CalendarDate AS DemandPostingDate,
  _dmndfut.DemandAdjustmentFactor AS DemandAdjustmentFactor,
  _dmndfut.AverageDailyUsage AS AverageDailyUsage,
  _dmndfut.AdjustedAverageDailyUsage AS AdjustedAverageDailyUsage,
  _dmndfut.AvgDailyUsageUnit AS AvgDailyUsageUnit,
  _dmndfut.HorizonDaysInFuture AS HorizonDaysInFuture,
  _dmndfut.HorizonDaysInPast AS HorizonDaysInPast,
  _dmndfut.ProductAuthorizationGroup AS ProductAuthorizationGroup,
  _dmndfut.ProductTypeAuthorizationGroup AS ProductTypeAuthorizationGroup,
  _ProposalHeader.ProductGroupAuthorizationGroup AS ProductGroupAuthorizationGroup
FROM P_ChartHorizon AS _cald
LEFT OUTER JOIN I_ProdBufLvlPrpslData AS _ProposalHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ProdDailyDemandChartFutr AS _dmndfut ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ProdDailyDemandChartPast AS _dmndpast ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_ChartHorizon
;