C_ProductBufferLevelChartTP

DDL: C_PRODUCTBUFFERLEVELCHARTTP SQL: CPRODBUFFCHARTTP Type: view CONSUMPTION Package: ODATA_PP_DD_STLM

Product Buffer Level Zone Chart - Transactions

C_ProductBufferLevelChartTP is a Consumption CDS View that provides data about "Product Buffer Level Zone Chart - Transactions" in SAP S/4HANA. It reads from 1 data source (I_ProdBufLvlChartTP) and exposes 30 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 2 associations to related views. Part of development package ODATA_PP_DD_STLM.

Data Sources (1)

SourceAliasJoin Type
I_ProdBufLvlChartTP I_ProdBufLvlChartTP from

Associations (2)

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] P_TimeDependentBufferLevels _TimeDependentStock $projection.Material = _TimeDependentStock.Material and $projection.Plant = _TimeDependentStock.Plant and $projection.MRPArea = _TimeDependentStock.MRPArea and $projection.BufPrpslZonePostingDate >= _TimeDependentStock.BufferLevelStartDate and $projection.BufPrpslZonePostingDate <= _TimeDependentStock.BufferLevelEndDate

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CPRODBUFFCHARTTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.representativeKey BufPrpslZonePostingDate 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
EndUserText.label Product Buffer Level Zone Chart - Transactions view

Fields (30)

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 Date
RedZoneAdjustmentFactor RedZoneAdjustmentFactor
YellowZoneAdjustmentFactor YellowZoneAdjustmentFactor
GreenZoneAdjustmentFactor GreenZoneAdjustmentFactor
DemandAdjustmentFactor DemandAdjustmentFactor
ProposedRedZone ProposedRedZone Red Zone
ProposedYellowZone ProposedYellowZone Yellow Zone
ProposedGreenZone ProposedGreenZone Green Zone
ProposedSafetyStockQty MaterialSafetyStockQty Proposed Safety Stock
ProposedReorderThresholdQty ReorderThresholdQuantity Proposed Reorder Point
ProposedMaxStockQty MaterialMaxStockLevelQuantity Proposed Max. Stock
MaterialSafetyStockQty _TimeDependentStock MaterialSafetyStockQty Current Safety Stock
ReorderThresholdQuantity _TimeDependentStock ReorderThresholdQuantity Current Reorder Point
MaterialMaxStockLevelQuantity _TimeDependentStock MaterialMaxStockLevelQuantity Current Max. Stock
CurrentRedZone _TimeDependentStock MaterialSafetyStockQty Safety Stock
CurrentYellowZone _TimeDependentStock CurrentYellowZone
CurrentGreenZone _TimeDependentStock CurrentGreenZone
ProductAuthorizationGroup I_ProdBufLvlChartTP ProductAuthorizationGroup
ProductGroupAuthorizationGroup I_ProdBufLvlChartTP ProductGroupAuthorizationGroup
ProductTypeAuthorizationGroup I_ProdBufLvlChartTP ProductTypeAuthorizationGroup
MinOrdQtyIsConsideredGreenZone I_ProdBufLvlChartTP MinOrdQtyIsConsideredGreenZone
AverageDailyUsage AverageDailyUsage
AvgDailyUsageUnit AvgDailyUsageUnit
MaterialBaseUnit MaterialBaseUnit Valuation Unit
_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_ProductBufferLevelChartTP.
-- 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: CPRODBUFFCHARTTP

CREATE VIEW C_ProductBufferLevelChartTP AS
SELECT
  Material,
  Plant,
  MRPArea,
  ProposalStartDate,
  ProposalVersion,
  BufPrpslZonePostingDate,
  RedZoneAdjustmentFactor,
  YellowZoneAdjustmentFactor,
  GreenZoneAdjustmentFactor,
  DemandAdjustmentFactor,
  ProposedRedZone,
  ProposedYellowZone,
  ProposedGreenZone,
  MaterialSafetyStockQty AS ProposedSafetyStockQty,
  ReorderThresholdQuantity AS ProposedReorderThresholdQty,
  MaterialMaxStockLevelQuantity AS ProposedMaxStockQty,
  _TimeDependentStock.MaterialSafetyStockQty AS MaterialSafetyStockQty,
  _TimeDependentStock.ReorderThresholdQuantity AS ReorderThresholdQuantity,
  _TimeDependentStock.MaterialMaxStockLevelQuantity AS MaterialMaxStockLevelQuantity,
  _TimeDependentStock.MaterialSafetyStockQty AS CurrentRedZone,
  _TimeDependentStock.CurrentYellowZone AS CurrentYellowZone,
  _TimeDependentStock.CurrentGreenZone AS CurrentGreenZone,
  I_ProdBufLvlChartTP.ProductAuthorizationGroup AS ProductAuthorizationGroup,
  I_ProdBufLvlChartTP.ProductGroupAuthorizationGroup AS ProductGroupAuthorizationGroup,
  I_ProdBufLvlChartTP.ProductTypeAuthorizationGroup AS ProductTypeAuthorizationGroup,
  I_ProdBufLvlChartTP.MinOrdQtyIsConsideredGreenZone AS MinOrdQtyIsConsideredGreenZone,
  AverageDailyUsage,
  AvgDailyUsageUnit,
  MaterialBaseUnit
FROM I_ProdBufLvlChartTP
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 P_TimeDependentBufferLevels AS _TimeDependentStock ON Material = _TimeDependentStock.Material AND Plant = _TimeDependentStock.Plant AND MRPArea = _TimeDependentStock.MRPArea AND BufPrpslZonePostingDate >= _TimeDependentStock.BufferLevelStartDate AND BufPrpslZonePostingDate <= _TimeDependentStock.BufferLevelEndDate  -- association [1..1]
;