P_ProductBufferLevelMicroCht

DDL: P_PRODUCTBUFFERLEVELMICROCHT SQL: PPRDBUFMICCHT Type: view CONSUMPTION

P_ProductBufferLevelMicroCht is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_ProductBufferMicroChart1) and exposes 13 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion.

Data Sources (1)

SourceAliasJoin Type
P_ProductBufferMicroChart1 _BufferLevelChart from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPRDBUFMICCHT 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 (13)

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 Calendar Date
TodaysDate
AverageDailyUsage
ProposedRedZone ProposedRedZone Safety Stock
ProposedYellowZone
ProposedGreenZone ProposedGreenZone
MatlProposedMaxStock
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_ProductBufferLevelMicroCht.
-- 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: PPRDBUFMICCHT

CREATE VIEW P_ProductBufferLevelMicroCht AS
SELECT
  Material,
  Plant,
  MRPArea,
  ProposalStartDate,
  ProposalVersion,
  BufPrpslZonePostingDate,
  cast($session.system_date as sydatum) AS TodaysDate,
  DemandAdjustmentFactor * AverageDailyUsage AS AverageDailyUsage,
  ProposedRedZone,
  ProposedRedZone + ProposedYellowZone AS ProposedYellowZone,
  ProposedGreenZone,
  ProposedRedZone + ProposedYellowZone + ProposedGreenZone AS MatlProposedMaxStock,
  MaterialBaseUnit
FROM P_ProductBufferMicroChart1 AS _BufferLevelChart
;