P_ProductBufferMicroChart1
P_ProductBufferMicroChart1 is a Consumption CDS View in SAP S/4HANA. It reads from 4 data sources (P_ProdBufMicroChtIntervalDays, I_ProdBufLvlPrpsl, I_TimeDependentStockBuffer, P_ProdBufMicroChartFuture) and exposes 43 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 1 association to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_ProdBufMicroChtIntervalDays | _Cald | from |
| I_ProdBufLvlPrpsl | _ProposalHeader | left_outer |
| I_TimeDependentStockBuffer | _TimeStkBuffer | left_outer |
| P_ProdBufMicroChartFuture | P_ProdBufMicroChartFuture | union_all |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRDBUFMICHT1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | I_ProdBufLvlPrpsl | Material | Vehicle Model |
| KEY | Plant | I_ProdBufLvlPrpsl | Plant | Valuation Area |
| KEY | MRPArea | I_ProdBufLvlPrpsl | MRPArea | MRP Area |
| KEY | ProposalStartDate | I_ProdBufLvlPrpsl | ProposalStartDate | Proposal Valid From |
| KEY | ProposalVersion | I_ProdBufLvlPrpsl | ProposalVersion | Proposal Version |
| KEY | BufPrpslZonePostingDate | P_ProdBufMicroChtIntervalDays | 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 | ||||
| KEY | Plant | Plant | Valuation Area | |
| KEY | MRPArea | MRPArea | MRP Area | |
| KEY | ProposalStartDate | ProposalStartDate | Proposal Valid From | |
| KEY | ProposalVersion | ProposalVersion | Proposal Version | |
| KEY | BufPrpslZonePostingDate | BufPrpslZonePostingDate | Calendar Date | |
| RedZoneAdjustmentFactor | RedZoneAdjustmentFactor | |||
| YellowZoneAdjustmentFactor | YellowZoneAdjustmentFactor | |||
| GreenZoneAdjustmentFactor | GreenZoneAdjustmentFactor | |||
| DemandAdjustmentFactor | DemandAdjustmentFactor | |||
| ProposedRedZone | Safety Stock | |||
| MaterialSafetyStockQty | Safety Stock | |||
| ProposedYellowZone | ||||
| ProposedGreenZoneMinOrdQty | ProposedGreenZoneMinOrdQty | Minimum Order Quantity | ||
| ProposedGreenZoneOrdCycle | ||||
| DecoupledLeadTime | DecoupledLeadTime | |||
| VariabilityFactor | VariabilityFactor | |||
| LeadTimeFactor | LeadTimeFactor | |||
| AverageDailyUsage | AverageDailyUsage | |||
| AvgDailyUsageUnit | AvgDailyUsageUnit | |||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit |
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 P_ProductBufferMicroChart1.
-- 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: PPRDBUFMICHT1
CREATE VIEW P_ProductBufferMicroChart1 AS
SELECT
_ProposalHeader.Material AS Material,
_ProposalHeader.Plant AS Plant,
_ProposalHeader.MRPArea AS MRPArea,
_ProposalHeader.ProposalStartDate AS ProposalStartDate,
_ProposalHeader.ProposalVersion AS ProposalVersion,
_Cald.CalendarDate AS BufPrpslZonePostingDate,
cast(fltp_to_dec(1.0 as abap.dec( 4, 2 )) as pph_adj_factor_red_zone) AS RedZoneAdjustmentFactor,
cast(fltp_to_dec(1.0 as abap.dec( 4, 2 )) as pph_adj_factor_yellow_zone) AS YellowZoneAdjustmentFactor,
cast(fltp_to_dec(1.0 as abap.dec( 4, 2 )) as pph_adj_factor_green_zone) AS GreenZoneAdjustmentFactor,
cast(fltp_to_dec(1.0 as abap.dec( 4, 2 )) as pph_demand_adj_factor) AS DemandAdjustmentFactor,
MaterialSafetyStockQty AS ProposedRedZone,
MaterialSafetyStockQty,
ReorderThresholdQuantity - MaterialSafetyStockQty AS ProposedYellowZone,
ReorderThresholdQuantity,
MaterialMaxStockLevelQuantity - ReorderThresholdQuantity AS ProposedGreenZone,
MaterialMaxStockLevelQuantity,
cast(fltp_to_dec(0.00 as abap.dec(4,2)) as pph_proposedgreenzone) AS ProposedGreenZoneMinOrdQty,
cast(fltp_to_dec(0.00 as abap.dec(4,2)) as pph_proposedgreenzone) AS ProposedGreenZoneOrdCycle,
cast(0 as pph_decoupled_leadtime) AS DecoupledLeadTime,
cast(fltp_to_dec(0.00 as abap.dec(4,2)) as pph_variability_factor) AS VariabilityFactor,
cast(fltp_to_dec(0.00 as abap.dec(4,2)) as pph_leadtime_factor) AS LeadTimeFactor,
_dmndpast.AverageDailyUsage AS AverageDailyUsage,
cast('' as meins) AS AvgDailyUsageUnit,
MaterialBaseUnit
FROM P_ProdBufMicroChtIntervalDays AS _Cald
LEFT OUTER JOIN I_ProdBufLvlPrpsl AS _ProposalHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TimeDependentStockBuffer 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_ProdBufMicroChartFuture
;
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