C_MaterialBufferLevelChart
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)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialBufferLevel | _BufferLevels | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA