I_ProductBufferLevelChart

DDL: I_PRODUCTBUFFERLEVELCHART SQL: IDDPRODBUFCHART Type: view COMPOSITE Package: PPH_DD_VDM_STLM

Product Buffer Level Chart

I_ProductBufferLevelChart is a Composite CDS View that provides data about "Product Buffer Level Chart" in SAP S/4HANA. It reads from 4 data sources (P_DDMRPChartHorizon, I_ProdBufLvlPrpsl, P_ProductAdoptedBufferLevels, P_ProductBufferLevelChartFutr) and exposes 49 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 1 association to related views. Part of development package PPH_DD_VDM_STLM.

Data Sources (4)

SourceAliasJoin Type
P_DDMRPChartHorizon _Cald union_all
I_ProdBufLvlPrpsl _ProposalHeader left_outer
P_ProductAdoptedBufferLevels _TimeStkBuffer left_outer
P_ProductBufferLevelChartFutr P_ProductBufferLevelChartFutr from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ProdBufLvlPrpslDemand _dmndpast _dmndpast.Material = _TimeStkBuffer.Material and _dmndpast.Plant = _TimeStkBuffer.Plant and _dmndpast.MRPArea = _TimeStkBuffer.MRPArea and _dmndpast.ProposalStartDate = _TimeStkBuffer.ProposalStartDate and _dmndpast.ProposalVersion = _TimeStkBuffer.ProposalVersion and _dmndpast.ProposalRecordDetailsStartDate <= _Cald.CalendarDate and _dmndpast.ProposalRecordDetailsEndDate >= _Cald.CalendarDate and _dmndpast.ProposalRecordDetailsStartDate <= $session.system_date

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IDDPRODBUFCHART view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Buffer Level Chart view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (49)

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 BufPrpslZonePostingDate BufPrpslZonePostingDate Calendar Date
RedZoneAdjustmentFactor RedZoneAdjustmentFactor
YellowZoneAdjustmentFactor YellowZoneAdjustmentFactor
GreenZoneAdjustmentFactor GreenZoneAdjustmentFactor
DemandAdjustmentFactor DemandAdjustmentFactor
ProposedGreenZoneMinOrdQty ProposedGreenZoneMinOrdQty Minimum Order Quantity
ProposedGreenZoneOrdCycle
DecoupledLeadTime DecoupledLeadTime
VariabilityFactor VariabilityFactor
LeadTimeFactor LeadTimeFactor
AverageDailyUsage AverageDailyUsage
AvgDailyUsageUnit AvgDailyUsageUnit
MaterialBaseUnit MaterialBaseUnit Valuation Unit
ProductAuthorizationGroup ProductAuthorizationGroup
ProductTypeAuthorizationGroup ProductTypeAuthorizationGroup
ProductGroupAuthorizationGroup ProductGroupAuthorizationGroup
Material Vehicle Model
KEY Plant I_ProdBufLvlPrpsl Plant Valuation Area
KEY MRPArea I_ProdBufLvlPrpsl MRPArea MRP Area
KEY ProposalStartDate I_ProdBufLvlPrpsl ProposalStartDate
KEY ProposalVersion I_ProdBufLvlPrpsl ProposalVersion
KEY BufPrpslZonePostingDate P_DDMRPChartHorizon CalendarDate Calendar Date
RedZoneAdjustmentFactor
YellowZoneAdjustmentFactor
GreenZoneAdjustmentFactor
DemandAdjustmentFactor
ProposedRedZone MaterialSafetyStockQty Safety Stock
MaterialSafetyStockQty MaterialSafetyStockQty Safety Stock
ProposedYellowZone
ReorderThresholdQuantity ReorderThresholdQuantity Reorder Point
ProposedGreenZone
MaterialMaxStockLevelQuantity MaterialMaxStockLevelQuantity
ProposedGreenZoneMinOrdQty Minimum Order Quantity
ProposedGreenZoneOrdCycle
DecoupledLeadTime
VariabilityFactor
LeadTimeFactor
AverageDailyUsage _dmndpast AverageDailyUsage
AvgDailyUsageUnit
MaterialBaseUnit MaterialBaseUnit Valuation Unit
ProductAuthorizationGroup I_ProdBufLvlPrpsl ProductAuthorizationGroup
ProductTypeAuthorizationGroup I_ProdBufLvlPrpsl ProductTypeAuthorizationGroup
ProductGroupAuthorizationGroup I_ProdBufLvlPrpsl ProductGroupAuthorizationGroup
MinOrdQtyIsConsideredGreenZone P_ProductAdoptedBufferLevels MinOrdQtyIsConsideredGreenZone

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_ProductBufferLevelChart.
-- 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: IDDPRODBUFCHART

CREATE VIEW I_ProductBufferLevelChart AS
SELECT
  Material,
  Plant,
  MRPArea,
  ProposalStartDate,
  ProposalVersion,
  BufPrpslZonePostingDate,
  RedZoneAdjustmentFactor,
  YellowZoneAdjustmentFactor,
  GreenZoneAdjustmentFactor,
  DemandAdjustmentFactor,
  ProposedGreenZoneMinOrdQty,
  cast(ProposedGreenZoneOrdCycle as pph_proposed_greenzone) AS ProposedGreenZoneOrdCycle,
  DecoupledLeadTime,
  VariabilityFactor,
  LeadTimeFactor,
  AverageDailyUsage,
  AvgDailyUsageUnit,
  MaterialBaseUnit,
  ProductAuthorizationGroup,
  ProductTypeAuthorizationGroup,
  ProductGroupAuthorizationGroup,
  MaterialSafetyStockQty AS ProposedRedZone,
  MaterialSafetyStockQty,
  ReorderThresholdQuantity - MaterialSafetyStockQty AS ProposedYellowZone,
  ReorderThresholdQuantity,
  MaterialMaxStockLevelQuantity - ReorderThresholdQuantity AS ProposedGreenZone,
  MaterialMaxStockLevelQuantity,
  _TimeStkBuffer.MinOrdQtyIsConsideredGreenZone AS MinOrdQtyIsConsideredGreenZone
FROM P_ProductBufferLevelChartFutr
LEFT OUTER JOIN I_ProdBufLvlPrpsl AS _ProposalHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ProductAdoptedBufferLevels AS _TimeStkBuffer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProdBufLvlPrpslDemand AS _dmndpast ON _dmndpast.Material = _TimeStkBuffer.Material AND _dmndpast.Plant = _TimeStkBuffer.Plant AND _dmndpast.MRPArea = _TimeStkBuffer.MRPArea AND _dmndpast.ProposalStartDate = _TimeStkBuffer.ProposalStartDate AND _dmndpast.ProposalVersion = _TimeStkBuffer.ProposalVersion AND _dmndpast.ProposalRecordDetailsStartDate <= _Cald.CalendarDate AND _dmndpast.ProposalRecordDetailsEndDate >= _Cald.CalendarDate AND _dmndpast.ProposalRecordDetailsStartDate <= $session.system_date  -- association [1..1]
-- UNION ALL with additional select branch(es): P_DDMRPChartHorizon
;