C_ProductDailyDemandChartTP

DDL: C_PRODUCTDAILYDEMANDCHARTTP SQL: CPRODDMNDCHARTTP Type: view CONSUMPTION

Demand Chart

C_ProductDailyDemandChartTP is a Consumption CDS View that provides data about "Demand Chart" in SAP S/4HANA. It reads from 1 data source (I_ProdDailyDemandChartTP) and exposes 25 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProdDailyDemandChartTP I_ProdDailyDemandChartTP from

Associations (3)

CardinalityTargetAliasCondition
[1..1] C_ProductBufferLevelMgmtTP _ProposalHeaderTP $projection.Material = _ProposalHeaderTP.Material and $projection.Plant = _ProposalHeaderTP.Plant and $projection.MRPArea = _ProposalHeaderTP.MRPArea and $projection.ProposalStartDate = _ProposalHeaderTP.ProposalStartDate and $projection.ProposalVersion = _ProposalHeaderTP.ProposalVersion
[1..1] C_MaterialDailyDemand _MatDailyDemand $projection.Material = _MatDailyDemand.Material and $projection.Plant = _MatDailyDemand.Plant and $projection.MRPArea = _MatDailyDemand.MRPArea and $projection.DemandPostingDate = _MatDailyDemand.PostingDate
[1..1] I_ProdBufLvlPrpsl _ProposalHeader $projection.Material = _ProposalHeader.Material and $projection.Plant = _ProposalHeader.Plant and $projection.MRPArea = _ProposalHeader.MRPArea and $projection.ProposalStartDate = _ProposalHeader.ProposalStartDate and $projection.ProposalVersion = _ProposalHeader.ProposalVersion

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CPRODDMNDCHARTTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Demand Chart view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.representativeKey DemandPostingDate view
ObjectModel.compositionRoot false view
ObjectModel.draftEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
VDM.viewType #CONSUMPTION view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY MRPArea MRPArea MRP Area
KEY ProposalStartDate ProposalStartDate
KEY ProposalVersion ProposalVersion
KEY DemandPostingDate DemandPostingDate
DemandAdjustmentFactor DemandAdjustmentFactor Demand Adjustment Factor
AverageDailyUsage AverageDailyUsage
AdjustedAverageDailyUsage AdjustedAverageDailyUsage Adjusted Average Daily Usage
AvgDailyUsageUnit AvgDailyUsageUnit
AverageDailyUsageMode _ProposalHeader AverageDailyUsageMode
AvgDailyUsageHorizonStartDate
AvgDailyUsageHorizonEndDate
QuantityInBaseUnit _MatDailyDemand QuantityInBaseUnit Goods Issue Quantity
PlndIndepRqmtQuantity _MatDailyDemand PlndIndepRqmtQuantity Planned Independent Requirement Quantity
DailyPlndIndepRqmtQuantity _MatDailyDemand DailyPlndIndepRqmtQuantity
WeeklyPlndIndepRqmtQtyPerDay _MatDailyDemand WeeklyPlndIndepRqmtQtyPerDay
MonthlyPlndIndepRqmtQtyPerDay _MatDailyDemand MonthlyPlndIndepRqmtQtyPerDay
TotalWeeklyPlndIndepRqmtQty _MatDailyDemand TotalWeeklyPlndIndepRqmtQty
TotalMonthlyPlndIndepRqmtQty _MatDailyDemand TotalMonthlyPlndIndepRqmtQty
MaterialBaseUnit _MatDailyDemand MaterialBaseUnit Valuation Unit
ProductAuthorizationGroup I_ProdDailyDemandChartTP ProductAuthorizationGroup
ProductGroupAuthorizationGroup I_ProdDailyDemandChartTP ProductGroupAuthorizationGroup
ProductTypeAuthorizationGroup I_ProdDailyDemandChartTP ProductTypeAuthorizationGroup
_ProposalHeaderTP _ProposalHeaderTP

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 C_ProductDailyDemandChartTP.
-- 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: CPRODDMNDCHARTTP

CREATE VIEW C_ProductDailyDemandChartTP AS
SELECT
  Material,
  Plant,
  MRPArea,
  ProposalStartDate,
  ProposalVersion,
  DemandPostingDate,
  DemandAdjustmentFactor,
  AverageDailyUsage,
  AdjustedAverageDailyUsage,
  AvgDailyUsageUnit,
  _ProposalHeader.AverageDailyUsageMode AS AverageDailyUsageMode,
  cast('' as sydatum) AS AvgDailyUsageHorizonStartDate,
  cast('' as sydatum) AS AvgDailyUsageHorizonEndDate,
  _MatDailyDemand.QuantityInBaseUnit AS QuantityInBaseUnit,
  _MatDailyDemand.PlndIndepRqmtQuantity AS PlndIndepRqmtQuantity,
  _MatDailyDemand.DailyPlndIndepRqmtQuantity AS DailyPlndIndepRqmtQuantity,
  _MatDailyDemand.WeeklyPlndIndepRqmtQtyPerDay AS WeeklyPlndIndepRqmtQtyPerDay,
  _MatDailyDemand.MonthlyPlndIndepRqmtQtyPerDay AS MonthlyPlndIndepRqmtQtyPerDay,
  _MatDailyDemand.TotalWeeklyPlndIndepRqmtQty AS TotalWeeklyPlndIndepRqmtQty,
  _MatDailyDemand.TotalMonthlyPlndIndepRqmtQty AS TotalMonthlyPlndIndepRqmtQty,
  _MatDailyDemand.MaterialBaseUnit AS MaterialBaseUnit,
  I_ProdDailyDemandChartTP.ProductAuthorizationGroup AS ProductAuthorizationGroup,
  I_ProdDailyDemandChartTP.ProductGroupAuthorizationGroup AS ProductGroupAuthorizationGroup,
  I_ProdDailyDemandChartTP.ProductTypeAuthorizationGroup AS ProductTypeAuthorizationGroup
FROM I_ProdDailyDemandChartTP
LEFT OUTER JOIN C_ProductBufferLevelMgmtTP AS _ProposalHeaderTP ON Material = _ProposalHeaderTP.Material AND Plant = _ProposalHeaderTP.Plant AND MRPArea = _ProposalHeaderTP.MRPArea AND ProposalStartDate = _ProposalHeaderTP.ProposalStartDate AND ProposalVersion = _ProposalHeaderTP.ProposalVersion  -- association [1..1]
LEFT OUTER JOIN C_MaterialDailyDemand AS _MatDailyDemand ON Material = _MatDailyDemand.Material AND Plant = _MatDailyDemand.Plant AND MRPArea = _MatDailyDemand.MRPArea AND DemandPostingDate = _MatDailyDemand.PostingDate  -- association [1..1]
LEFT OUTER JOIN I_ProdBufLvlPrpsl AS _ProposalHeader ON Material = _ProposalHeader.Material AND Plant = _ProposalHeader.Plant AND MRPArea = _ProposalHeader.MRPArea AND ProposalStartDate = _ProposalHeader.ProposalStartDate AND ProposalVersion = _ProposalHeader.ProposalVersion  -- association [1..1]
;