C_MaterialBufferLevelChart

DDL: C_MATERIALBUFFERLEVELCHART SQL: CMATBUFLVLCHRT Type: view CONSUMPTION

Material Buffer Level Chart

C_MaterialBufferLevelChart is a Consumption CDS View that provides data about "Material Buffer Level Chart" in SAP S/4HANA. It reads from 1 data source (I_MaterialBufferLevel) and exposes 15 fields with key fields Material, Plant, MRPArea, ProposalStartDate. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialBufferLevel _BufferLevels from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_ProfileAssgmtToPlant _PlantThreshold _BufferLevels.Plant = _PlantThreshold.Plant
[1..1] I_ProfileAssgmtToPlant _PlantDefaultThreshold _PlantDefaultThreshold.Plant = ''
[1..1] I_DemandDrivenProduct1 _DemandDrivenProduct _BufferLevels.Material = _DemandDrivenProduct.Material and _BufferLevels.Plant = _DemandDrivenProduct.Plant and _BufferLevels.MRPArea = _DemandDrivenProduct.MRPArea
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.BaseUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CMATBUFLVLCHRT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Buffer Level Chart view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY Material I_MaterialBufferLevel Material Vehicle Model
KEY Plant I_MaterialBufferLevel Plant Valuation Area
KEY MRPArea I_MaterialBufferLevel MRPArea MRP Area
KEY ProposalStartDate I_MaterialBufferLevel PostingDate Date
MRPAvailableStockQty MRPAvailableStockQty
MaterialMaxStockLevelQuantity MaterialMaxStockLevelQuantity Max. Stock
ReorderThresholdQuantity ReorderThresholdQuantity Reorder Point
CurrentRedZone MaterialSafetyStockQty Safety Stock
000endasCurrentGreenZone
CurrentYellowZone
000endasHighYellowBufferLevelQuantity
HighRedBufferLevelQuantity Performance High Level Boundary
HorizonDaysInPast _DemandDrivenProduct HorizonDaysInPast
BaseUnit BaseUnit Unit of Measure
_Material _Material

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_MaterialBufferLevelChart.
-- 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: CMATBUFLVLCHRT

CREATE VIEW C_MaterialBufferLevelChart AS
SELECT
  _BufferLevels.Material AS Material,
  _BufferLevels.Plant AS Plant,
  _BufferLevels.MRPArea AS MRPArea,
  _BufferLevels.PostingDate AS ProposalStartDate,
  MRPAvailableStockQty,
  MaterialMaxStockLevelQuantity,
  ReorderThresholdQuantity,
  MaterialSafetyStockQty AS CurrentRedZone,
  case when ReorderThresholdQuantity > 0 then case ceil(division(MaterialMaxStockLevelQuantity + MaterialSafetyStockQty, 2 * ReorderThresholdQuantity, 3)) when 1 then MaterialMaxStockLevelQuantity - ReorderThresholdQuantity else ReorderThresholdQuantity - MaterialSafetyStockQty end else 0.000 end as CurrentGreenZone AS 000endasCurrentGreenZone,
  ReorderThresholdQuantity - MaterialSafetyStockQty AS CurrentYellowZone,
  case when ReorderThresholdQuantity > 0 then case ceil(division(MaterialMaxStockLevelQuantity + MaterialSafetyStockQty, 2 * ReorderThresholdQuantity, 3)) when 1 then (2 * ReorderThresholdQuantity) - MaterialMaxStockLevelQuantity - MaterialSafetyStockQty else 0.000 end else 0.000 end as HighYellowBufferLevelQuantity AS 000endasHighYellowBufferLevelQuantity,
  MaterialMaxStockLevelQuantity - ReorderThresholdQuantity AS HighRedBufferLevelQuantity,
  _DemandDrivenProduct.HorizonDaysInPast AS HorizonDaysInPast,
  BaseUnit
FROM I_MaterialBufferLevel AS _BufferLevels
LEFT OUTER JOIN I_ProfileAssgmtToPlant AS _PlantThreshold ON _BufferLevels.Plant = _PlantThreshold.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProfileAssgmtToPlant AS _PlantDefaultThreshold ON _PlantDefaultThreshold.Plant = ''  -- association [1..1]
LEFT OUTER JOIN I_DemandDrivenProduct1 AS _DemandDrivenProduct ON _BufferLevels.Material = _DemandDrivenProduct.Material AND _BufferLevels.Plant = _DemandDrivenProduct.Plant AND _BufferLevels.MRPArea = _DemandDrivenProduct.MRPArea  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON BaseUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
;