P_ProdBufPrpslZoneAdjmtExists

DDL: P_PRODBUFPRPSLZONEADJMTEXISTS Type: view_entity CONSUMPTION Package: ODATA_PP_DD_STLM

Product Buffer Proposal Zone Adjustment Exists

P_ProdBufPrpslZoneAdjmtExists is a Consumption CDS View that provides data about "Product Buffer Proposal Zone Adjustment Exists" in SAP S/4HANA. It reads from 1 data source (P_ProdBufLvlLtstPrpslData) and exposes 9 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 1 association to related views. Part of development package ODATA_PP_DD_STLM.

Data Sources (1)

SourceAliasJoin Type
P_ProdBufLvlLtstPrpslData _ProposalHeader from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ProdBufLvlPrpslZnAdjmtFctr _ProposalAdjustments $projection.Material = _ProposalAdjustments.Material and $projection.Plant = _ProposalAdjustments.Plant and $projection.MRPArea = _ProposalAdjustments.MRPArea and $projection.ProposalStartDate = _ProposalAdjustments.ProposalStartDate and $projection.ProposalVersion = _ProposalAdjustments.ProposalVersion and $projection.ProposalStartDate <= _ProposalAdjustments.BufPrpslZoneAdjmtFctrStartDate

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Buffer Proposal Zone Adjustment Exists view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Material P_ProdBufLvlLtstPrpslData Material Vehicle Model
KEY Plant P_ProdBufLvlLtstPrpslData Plant Valuation Area
KEY MRPArea P_ProdBufLvlLtstPrpslData MRPArea MRP Area
KEY ProposalStartDate P_ProdBufLvlLtstPrpslData ProposalStartDate
KEY ProposalVersion P_ProdBufLvlLtstPrpslData ProposalVersion
RedZoneAdjustmentFactor
YellowZoneAdjustmentFactor
GreenZoneAdjustmentFactor
_ProposalAdjustments _ProposalAdjustments

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_ProdBufPrpslZoneAdjmtExists.
-- 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.

CREATE VIEW P_ProdBufPrpslZoneAdjmtExists AS
SELECT
  _ProposalHeader.Material AS Material,
  _ProposalHeader.Plant AS Plant,
  _ProposalHeader.MRPArea AS MRPArea,
  _ProposalHeader.ProposalStartDate AS ProposalStartDate,
  _ProposalHeader.ProposalVersion AS ProposalVersion,
  count(distinct _ProposalAdjustments.RedZoneAdjustmentFactor) AS RedZoneAdjustmentFactor,
  count(distinct _ProposalAdjustments.YellowZoneAdjustmentFactor) AS YellowZoneAdjustmentFactor,
  count(distinct _ProposalAdjustments.GreenZoneAdjustmentFactor) AS GreenZoneAdjustmentFactor
FROM P_ProdBufLvlLtstPrpslData AS _ProposalHeader
LEFT OUTER JOIN I_ProdBufLvlPrpslZnAdjmtFctr AS _ProposalAdjustments ON Material = _ProposalAdjustments.Material AND Plant = _ProposalAdjustments.Plant AND MRPArea = _ProposalAdjustments.MRPArea AND ProposalStartDate = _ProposalAdjustments.ProposalStartDate AND ProposalVersion = _ProposalAdjustments.ProposalVersion AND ProposalStartDate <= _ProposalAdjustments.BufPrpslZoneAdjmtFctrStartDate  -- association [1..1]
;