C_ProductBufferLevelMgmtTP

DDL: C_PRODUCTBUFFERLEVELMGMTTP SQL: CPRODBUFLVLMNGTP Type: view CONSUMPTION

Buffer Levels

C_ProductBufferLevelMgmtTP is a Consumption CDS View that provides data about "Buffer Levels" in SAP S/4HANA. It reads from 1 data source (I_ProdBufLvlPrpslTP) and exposes 74 fields with key fields MRPArea, Plant, Material, ProposalStartDate, ProposalVersion. It has 17 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProdBufLvlPrpslTP StockProposal from

Associations (17)

CardinalityTargetAliasCondition
[0..1] P_MRPAreaByAreaOfRespy2 _SDMAreaOfResponsibility StockProposal.MRPController = _SDMAreaOfResponsibility.MRPController and StockProposal.Plant = _SDMAreaOfResponsibility.Plant
[1..*] C_ProdBufLvlDmndAdjmtFctrTP _ProposalDemandTP $projection.Material = _ProposalDemandTP.Material and $projection.Plant = _ProposalDemandTP.Plant and $projection.MRPArea = _ProposalDemandTP.MRPArea and $projection.ProposalStartDate = _ProposalDemandTP.ProposalStartDate and $projection.ProposalVersion = _ProposalDemandTP.ProposalVersion
[1..*] C_ProductDailyDemandChartTP _DemandChartTP $projection.Material = _DemandChartTP.Material and $projection.Plant = _DemandChartTP.Plant and $projection.MRPArea = _DemandChartTP.MRPArea and $projection.ProposalStartDate = _DemandChartTP.ProposalStartDate and $projection.ProposalVersion = _DemandChartTP.ProposalVersion
[1..*] C_ProductBufferLevelChartTP _BufferChartTP $projection.Material = _BufferChartTP.Material and $projection.Plant = _BufferChartTP.Plant and $projection.MRPArea = _BufferChartTP.MRPArea and $projection.ProposalStartDate = _BufferChartTP.ProposalStartDate and $projection.ProposalVersion = _BufferChartTP.ProposalVersion
[1..*] C_ProdBufLvlZnAdjmtFctrTP _ProposalAdjFactorsTP $projection.Material = _ProposalAdjFactorsTP.Material and $projection.Plant = _ProposalAdjFactorsTP.Plant and $projection.MRPArea = _ProposalAdjFactorsTP.MRPArea and $projection.ProposalStartDate = _ProposalAdjFactorsTP.ProposalStartDate and $projection.ProposalVersion = _ProposalAdjFactorsTP.ProposalVersion
[1..*] C_ProductBufferLevelMicroChart _BufferLevelMicroCht $projection.Material = _BufferLevelMicroCht.Material and $projection.Plant = _BufferLevelMicroCht.Plant and $projection.MRPArea = _BufferLevelMicroCht.MRPArea and $projection.ProposalStartDate = _BufferLevelMicroCht.ProposalStartDate and $projection.ProposalVersion = _BufferLevelMicroCht.ProposalVersion
[1..1] I_MaterialText _MaterialT $projection.Material = _MaterialT.Material and _MaterialT.Language = $session.system_language
[1..1] P_ProdBufLvlMgmtCalcFields _CalcFields $projection.Material = _CalcFields.Material and $projection.Plant = _CalcFields.Plant and $projection.MRPArea = _CalcFields.MRPArea and $projection.ProposalStartDate = _CalcFields.ProposalStartDate and $projection.ProposalVersion = _CalcFields.ProposalVersion
[1..1] P_ProdBufLvlMicroChtAggrgn _MicroChartData $projection.Material = _MicroChartData.Material and $projection.Plant = _MicroChartData.Plant and $projection.MRPArea = _MicroChartData.MRPArea
[1..1] P_TimeDependentBufferLevels _CurrentBuffer $projection.Material = _CurrentBuffer.Material and $projection.Plant = _CurrentBuffer.Plant and $projection.MRPArea = _CurrentBuffer.MRPArea and _CurrentBuffer.BufferLevelStartDate <= $session.system_date and _CurrentBuffer.BufferLevelEndDate >= $session.system_date
[1..1] I_Indicatortext _IndicatorText $projection.minorderquantityhaschanged = _IndicatorText.IndicatorValue and _IndicatorText.Language = $session.system_language ------------------------------ -- Object Page Facets -- ------------------------------
[1..*] C_MaterialBufferLevelChart _MaterialBufferLevelChart $projection.Material = _MaterialBufferLevelChart.Material and $projection.Plant = _MaterialBufferLevelChart.Plant and $projection.MRPArea = _MaterialBufferLevelChart.MRPArea
[1..*] C_MaterialDailyDemand _MaterialDailyDemand $projection.Material = _MaterialDailyDemand.Material and $projection.Plant = _MaterialDailyDemand.Plant and $projection.MRPArea = _MaterialDailyDemand.MRPArea
[1..*] C_ProposedBufferMatlBOM _ProposedBOM $projection.Material = _ProposedBOM.Material and $projection.Plant = _ProposedBOM.Plant and $projection.MRPArea = _ProposedBOM.MRPArea
[1..*] C_ProdBufPrflAndClassfctn _BufferClassifications $projection.Material = _BufferClassifications.Material and $projection.Plant = _BufferClassifications.Plant and $projection.MRPArea = _BufferClassifications.MRPArea
[1..1] I_MRPArea _MRPAreaText $projection.MRPArea = _MRPAreaText.MRPArea
[1..1] C_DDScopeProductVH _DDScopeValueHelp $projection.DDScopeProduct = _DDScopeValueHelp.DDScopeProduct

Annotations (24)

NameValueLevelField
AbapCatalog.sqlViewName CPRODBUFLVLMNGTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Buffer Levels view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
Search.searchable true view
UI.headerInfo.description.label Product Description view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value PlantName2 view
UI.headerInfo.title.label Product view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value Material view
UI.headerInfo.typeNamePlural Buffers view
UI.headerInfo.typeName Buffer view
ObjectModel.compositionRoot true view
ObjectModel.draftEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.deleteEnabled true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (74)

KeyFieldSource TableSource FieldDescription
KEY MRPArea I_ProdBufLvlPrpslTP MRPArea MRP Area
KEY Plant I_ProdBufLvlPrpslTP Plant Valuation Area
KEY Material I_ProdBufLvlPrpslTP Material Product
KEY ProposalStartDate
KEY ProposalVersion I_ProdBufLvlPrpslTP ProposalVersion
ProposalStatusChangeDate _CalcFields ProposalStatusChangeDate
MemoLine
UserID _SDMAreaOfResponsibility UserID User Name
MaterialName _MaterialT MaterialName Material Description
PlantName
MRPAreaText _MRPAreaText MRPAreaText
BaseUnit I_ProdBufLvlPrpslTP MaterialBaseUnit Valuation Unit
StockLevelProposalID I_ProdBufLvlPrpslTP StockLevelProposalID
StockLevelProposalStatus I_ProdBufLvlPrpslTP StockLevelProposalStatus
ProposalRunIsSuspended _CalcFields ProposalRunIsSuspended
ProposalRunIsNotSuspended _CalcFields ProposalRunIsNotSuspended
ProposalRunSuspendedFromDate
ProposalRunSuspendedToDate
ProposalMode _CalcFields ProposalMode
ProposalModeDescription
ProposalStatusDescription
PlantName2
IsMinOrderQtyConsidered _CalcFields IsMinOrderQtyConsidered
MinOrderQuantityHasChanged _CalcFields MinOrderQuantityHasChanged
MinOrderQtyHasChangedStsText
AdjustmentType _CalcFields AdjustmentType
CurrentRedZone _CurrentBuffer CurrentRedZone Current
RedZoneDifference Change
ProposedRedZone I_ProdBufLvlPrpslTP ProposedRedZone
CurrentYellowZone _CurrentBuffer CurrentYellowZone
YellowZoneDifference
ProposedYellowZone I_ProdBufLvlPrpslTP ProposedYellowZone
CurrentGreenZone _CurrentBuffer CurrentGreenZone
GreenZoneDifference
ProposedGreenZone I_ProdBufLvlPrpslTP ProposedGreenZone
MaxStockDifference _CalcFields MaxStockDifference
MaxStockDeviationRate _CalcFields MaxStockDeviationRate
MaterialMaxStockLevelQuantity _CalcFields MaterialMaxStockLevelQuantity
MatlCurrentMaxStock _CalcFields MaterialMaxStockLevelQuantity
MatlProposedMaxStock _CalcFields MatlProposedMaxStock
UnitOfMeasure
CurrentAverageDailyUsage _CurrentBuffer CurrentAvgDailyUsage
ProposedAverageDailyUsage _CalcFields AverageDailyUsage
AverageDailyUsageMode _CalcFields AverageDailyUsageMode
AverageDailyUsageModeDesc _CalcFields AverageDailyUsageModeDesc
AvgDailyUsageDifference
AvgDailyUsageDeviationRate _CalcFields AvgDailyUsageDeviationRate
CurrentVariabilityFactor _CurrentBuffer CurrentVariabilityFactor
ProposedVariabilityFactor _CalcFields VariabilityFactor
VariabilityFactorDeviationRate _CalcFields VariabilityFactorDeviationRate
VariabilityFactorDifference _CalcFields VariabilityFactorDifference
CurrentLeadTime _CurrentBuffer CurrentLeadTime
ProposedLeadTime _CalcFields DecoupledLeadTime
LeadTimeDeviationRate _CalcFields LeadTimeDeviationRate
LeadTimeDifference _CalcFields LeadTimeDifference
DifferenceInDays
DifferenceInDaysDesc
MaterialGroup Product Group
MRPController I_ProdBufLvlPrpslTP MRPController MRP Controller
MRPControllerName _SDMAreaOfResponsibility MRPControllerName Controller name
PurchasingGroup _CalcFields PurchasingGroup Purchasing Group
MRPGroup _CalcFields MRPGroup MRP Group
MatlPrpslAdjmtFctrIsApplied _CalcFields MatlPrpslAdjmtFctrIsApplied
NormalizedCurrentGreenZone _CalcFields NormalizedCurrentGreenZone
NormalizedCurrentYellowZone _CalcFields NormalizedCurrentYellowZone
NormalizedCurrentRedZone _CalcFields NormalizedCurrentRedZone
NormalizedProposedGreenZone _CalcFields NormalizedProposedGreenZone
NormalizedProposedYellowZone _CalcFields NormalizedProposedYellowZone
NormalizedProposedRedZone _CalcFields NormalizedProposedRedZone
MRPAreaCategory
HorizonDaysInPast _CalcFields HorizonDaysInPast Horizon for Past
HorizonDaysInFuture _CalcFields HorizonDaysInFuture Horizon for Future
ProductProfileHasChanged _CalcFields ProductProfileHasChanged
ChartZoomHorizonStartDate

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_ProductBufferLevelMgmtTP.
-- 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: CPRODBUFLVLMNGTP

CREATE VIEW C_ProductBufferLevelMgmtTP AS
SELECT
  StockProposal.MRPArea AS MRPArea,
  StockProposal.Plant AS Plant,
  StockProposal.Material AS Material,
  cast(StockProposal.ProposalStartDate as pph_dd_proposalrundate preserving type) AS ProposalStartDate,
  StockProposal.ProposalVersion AS ProposalVersion,
  _CalcFields.ProposalStatusChangeDate AS ProposalStatusChangeDate,
  cast('' as abap.sstring(1333)) AS MemoLine,
  _SDMAreaOfResponsibility.UserID AS UserID,
  _MaterialT.MaterialName AS MaterialName,
  StockProposal._BufMatPlant._Plant.PlantName AS PlantName,
  _MRPAreaText.MRPAreaText AS MRPAreaText,
  StockProposal.MaterialBaseUnit AS BaseUnit,
  StockProposal.StockLevelProposalID AS StockLevelProposalID,
  StockProposal.StockLevelProposalStatus AS StockLevelProposalStatus,
  _CalcFields.ProposalRunIsSuspended AS ProposalRunIsSuspended,
  _CalcFields.ProposalRunIsNotSuspended AS ProposalRunIsNotSuspended,
  cast(StockProposal.ProposalRunSuspendedFromDate as pph_susp_prpsl_begda) AS ProposalRunSuspendedFromDate,
  cast(StockProposal.ProposalRunSuspendedToDate as pph_susp_prpsl_endda) AS ProposalRunSuspendedToDate,
  _CalcFields.ProposalMode AS ProposalMode,
  cast (cast(_CalcFields.ProposalModeDescription as char40) as pph_proposal_modetext preserving type) AS ProposalModeDescription,
  cast(cast('' as char40) as pph_proposal_statustext preserving type) AS ProposalStatusDescription,
  cast(0 as abap.sstring(400)) AS PlantName2,
  _CalcFields.IsMinOrderQtyConsidered AS IsMinOrderQtyConsidered,
  _CalcFields.MinOrderQuantityHasChanged AS MinOrderQuantityHasChanged,
  cast(cast('' as abap.char(60)) as pph_dd_minordqtyhaschangedtext preserving type) AS MinOrderQtyHasChangedStsText,
  _CalcFields.AdjustmentType AS AdjustmentType,
  _CurrentBuffer.CurrentRedZone AS CurrentRedZone,
  cast(0 as abap.quan(13,3)) AS RedZoneDifference,
  StockProposal.ProposedRedZone AS ProposedRedZone,
  _CurrentBuffer.CurrentYellowZone AS CurrentYellowZone,
  cast(0 as abap.quan(13,3)) AS YellowZoneDifference,
  StockProposal.ProposedYellowZone AS ProposedYellowZone,
  _CurrentBuffer.CurrentGreenZone AS CurrentGreenZone,
  cast(0 as abap.quan(13,3)) AS GreenZoneDifference,
  StockProposal.ProposedGreenZone AS ProposedGreenZone,
  _CalcFields.MaxStockDifference AS MaxStockDifference,
  _CalcFields.MaxStockDeviationRate AS MaxStockDeviationRate,
  _CalcFields.MaterialMaxStockLevelQuantity AS MaterialMaxStockLevelQuantity,
  _CalcFields.MaterialMaxStockLevelQuantity AS MatlCurrentMaxStock,
  _CalcFields.MatlProposedMaxStock AS MatlProposedMaxStock,
  cast('%' as msehi) AS UnitOfMeasure,
  _CurrentBuffer.CurrentAvgDailyUsage AS CurrentAverageDailyUsage,
  _CalcFields.AverageDailyUsage AS ProposedAverageDailyUsage,
  _CalcFields.AverageDailyUsageMode AS AverageDailyUsageMode,
  _CalcFields.AverageDailyUsageModeDesc AS AverageDailyUsageModeDesc,
  cast(0 as abap.quan(13,3)) AS AvgDailyUsageDifference,
  _CalcFields.AvgDailyUsageDeviationRate AS AvgDailyUsageDeviationRate,
  _CurrentBuffer.CurrentVariabilityFactor AS CurrentVariabilityFactor,
  _CalcFields.VariabilityFactor AS ProposedVariabilityFactor,
  _CalcFields.VariabilityFactorDeviationRate AS VariabilityFactorDeviationRate,
  _CalcFields.VariabilityFactorDifference AS VariabilityFactorDifference,
  _CurrentBuffer.CurrentLeadTime AS CurrentLeadTime,
  _CalcFields.DecoupledLeadTime AS ProposedLeadTime,
  _CalcFields.LeadTimeDeviationRate AS LeadTimeDeviationRate,
  _CalcFields.LeadTimeDifference AS LeadTimeDifference,
  cast('' as abap.char(100)) AS DifferenceInDays,
  cast('' as abap.sstring(200)) AS DifferenceInDaysDesc,
  StockProposal._BufMatPlant._Material.ProductGroup AS MaterialGroup,
  StockProposal.MRPController AS MRPController,
  _SDMAreaOfResponsibility.MRPControllerName AS MRPControllerName,
  _CalcFields.PurchasingGroup AS PurchasingGroup,
  _CalcFields.MRPGroup AS MRPGroup,
  _CalcFields.MatlPrpslAdjmtFctrIsApplied AS MatlPrpslAdjmtFctrIsApplied,
  _CalcFields.NormalizedCurrentGreenZone AS NormalizedCurrentGreenZone,
  _CalcFields.NormalizedCurrentYellowZone AS NormalizedCurrentYellowZone,
  _CalcFields.NormalizedCurrentRedZone AS NormalizedCurrentRedZone,
  _CalcFields.NormalizedProposedGreenZone AS NormalizedProposedGreenZone,
  _CalcFields.NormalizedProposedYellowZone AS NormalizedProposedYellowZone,
  _CalcFields.NormalizedProposedRedZone AS NormalizedProposedRedZone,
  StockProposal._MatMRPArea._MRPArea.MRPAreaCategory AS MRPAreaCategory,
  _CalcFields.HorizonDaysInPast AS HorizonDaysInPast,
  _CalcFields.HorizonDaysInFuture AS HorizonDaysInFuture,
  _CalcFields.ProductProfileHasChanged AS ProductProfileHasChanged,
  cast('' as sydatum) AS ChartZoomHorizonStartDate
FROM I_ProdBufLvlPrpslTP AS StockProposal
LEFT OUTER JOIN P_MRPAreaByAreaOfRespy2 AS _SDMAreaOfResponsibility ON StockProposal.MRPController = _SDMAreaOfResponsibility.MRPController AND StockProposal.Plant = _SDMAreaOfResponsibility.Plant  -- association [0..1]
LEFT OUTER JOIN C_ProdBufLvlDmndAdjmtFctrTP AS _ProposalDemandTP ON Material = _ProposalDemandTP.Material AND Plant = _ProposalDemandTP.Plant AND MRPArea = _ProposalDemandTP.MRPArea AND ProposalStartDate = _ProposalDemandTP.ProposalStartDate AND ProposalVersion = _ProposalDemandTP.ProposalVersion  -- association [1..*]
LEFT OUTER JOIN C_ProductDailyDemandChartTP AS _DemandChartTP ON Material = _DemandChartTP.Material AND Plant = _DemandChartTP.Plant AND MRPArea = _DemandChartTP.MRPArea AND ProposalStartDate = _DemandChartTP.ProposalStartDate AND ProposalVersion = _DemandChartTP.ProposalVersion  -- association [1..*]
LEFT OUTER JOIN C_ProductBufferLevelChartTP AS _BufferChartTP ON Material = _BufferChartTP.Material AND Plant = _BufferChartTP.Plant AND MRPArea = _BufferChartTP.MRPArea AND ProposalStartDate = _BufferChartTP.ProposalStartDate AND ProposalVersion = _BufferChartTP.ProposalVersion  -- association [1..*]
LEFT OUTER JOIN C_ProdBufLvlZnAdjmtFctrTP AS _ProposalAdjFactorsTP ON Material = _ProposalAdjFactorsTP.Material AND Plant = _ProposalAdjFactorsTP.Plant AND MRPArea = _ProposalAdjFactorsTP.MRPArea AND ProposalStartDate = _ProposalAdjFactorsTP.ProposalStartDate AND ProposalVersion = _ProposalAdjFactorsTP.ProposalVersion  -- association [1..*]
LEFT OUTER JOIN C_ProductBufferLevelMicroChart AS _BufferLevelMicroCht ON Material = _BufferLevelMicroCht.Material AND Plant = _BufferLevelMicroCht.Plant AND MRPArea = _BufferLevelMicroCht.MRPArea AND ProposalStartDate = _BufferLevelMicroCht.ProposalStartDate AND ProposalVersion = _BufferLevelMicroCht.ProposalVersion  -- association [1..*]
LEFT OUTER JOIN I_MaterialText AS _MaterialT ON Material = _MaterialT.Material AND _MaterialT.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN P_ProdBufLvlMgmtCalcFields AS _CalcFields ON Material = _CalcFields.Material AND Plant = _CalcFields.Plant AND MRPArea = _CalcFields.MRPArea AND ProposalStartDate = _CalcFields.ProposalStartDate AND ProposalVersion = _CalcFields.ProposalVersion  -- association [1..1]
LEFT OUTER JOIN P_ProdBufLvlMicroChtAggrgn AS _MicroChartData ON Material = _MicroChartData.Material AND Plant = _MicroChartData.Plant AND MRPArea = _MicroChartData.MRPArea  -- association [1..1]
LEFT OUTER JOIN P_TimeDependentBufferLevels AS _CurrentBuffer ON Material = _CurrentBuffer.Material AND Plant = _CurrentBuffer.Plant AND MRPArea = _CurrentBuffer.MRPArea AND _CurrentBuffer.BufferLevelStartDate <= $session.system_date AND _CurrentBuffer.BufferLevelEndDate >= $session.system_date  -- association [1..1]
LEFT OUTER JOIN I_Indicatortext AS _IndicatorText ON minorderquantityhaschanged = _IndicatorText.IndicatorValue AND _IndicatorText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN C_MaterialBufferLevelChart AS _MaterialBufferLevelChart ON Material = _MaterialBufferLevelChart.Material AND Plant = _MaterialBufferLevelChart.Plant AND MRPArea = _MaterialBufferLevelChart.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_MaterialDailyDemand AS _MaterialDailyDemand ON Material = _MaterialDailyDemand.Material AND Plant = _MaterialDailyDemand.Plant AND MRPArea = _MaterialDailyDemand.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_ProposedBufferMatlBOM AS _ProposedBOM ON Material = _ProposedBOM.Material AND Plant = _ProposedBOM.Plant AND MRPArea = _ProposedBOM.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_ProdBufPrflAndClassfctn AS _BufferClassifications ON Material = _BufferClassifications.Material AND Plant = _BufferClassifications.Plant AND MRPArea = _BufferClassifications.MRPArea  -- association [1..*]
LEFT OUTER JOIN I_MRPArea AS _MRPAreaText ON MRPArea = _MRPAreaText.MRPArea  -- association [1..1]
LEFT OUTER JOIN C_DDScopeProductVH AS _DDScopeValueHelp ON DDScopeProduct = _DDScopeValueHelp.DDScopeProduct  -- association [1..1]
;