I_ProdBufPositioning

DDL: I_PRODBUFPOSITIONING Type: view_entity COMPOSITE Package: PPH_DD_VDM_BUFPOS

Product Buffer Positioning View

I_ProdBufPositioning is a Composite CDS View that provides data about "Product Buffer Positioning View" in SAP S/4HANA. It reads from 1 data source (P_ProdBufPositining) and exposes 44 fields with key fields Material, Plant, MRPArea. It has 7 associations to related views. Part of development package PPH_DD_VDM_BUFPOS.

Data Sources (1)

SourceAliasJoin Type
P_ProdBufPositining P_ProdBufPositining from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_ProdBufPositioningCache _ProdBufPositioning $projection.Material = _ProdBufPositioning.Material and $projection.Plant = _ProdBufPositioning.Plant and $projection.MRPArea = _ProdBufPositioning.MRPArea and _ProdBufPositioning.DecoupledLeadTmeChgdOn = $session.system_date and _ProdBufPositioning.DecoupledLeadTmeChgdByUsr is not null and ( $projection.IsBulkMaterial = '' or $projection.IsBulkMaterial is null ) and ( $projection.IsPhantomItem = '' or $projection.IsPhantomItem is null )
[1..*] I_MaterialGroupText _MaterialGroupText $projection.MaterialGroup = _MaterialGroupText.MaterialGroup
[1..1] I_DemandDrivenProduct _DDProduct $projection.Material = _DDProduct.Material and $projection.Plant = _DDProduct.Plant and $projection.MRPArea = _DDProduct.MRPArea
[0..1] I_ProcurementTypeText _ProcmtText $projection.procurementtype = _ProcmtText.ProcurementType and _ProcmtText.Language = $session.system_language
[0..1] I_ProdBufVariabilityIndicatorT _VarLongTxt $projection.variabilitycode = _VarLongTxt.VariabilityIndicator and _VarLongTxt.Language = $session.system_language
[0..1] I_ProdBufLeadTimeIndicatorT _ReplnmtLongTxt $projection.replenishmentleadtimecode = _ReplnmtLongTxt.ReplenishmentLeadTimeCode and _ReplnmtLongTxt.Language = $session.system_language
[0..1] I_DDBufPosBufferProfileDetail _ProfileText _ProfileText.Plant = $projection.Plant and _ProfileText.Language = $session.system_language and _ProfileText.VariabilityCode = $projection.variabilitycode and _ProfileText.ProcurementType = $projection.procurementtype and _ProfileText.ReplenishmentLeadTimeCode = $projection.replenishmentleadtimecode and _ProfileText.IsMinOrderQtyConsidered = ' '

Annotations (6)

NameValueLevelField
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Product Buffer Positioning View view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY MRPArea MRP Area
SimulatedDecoupledLeadTime _ProdBufPositioning DecoupledLeadTime
IsYesNoValueSelected _ProdBufPositioning IsYesNoValueSelected
DecoupledLeadTime _DDProduct DecoupledLeadTime
MaterialBaseUnit BaseUnit Unit of Measure
CreatedByUser _ProdBufPositioning CreatedByUser User Name
CreationTime _ProdBufPositioning CreationTime Time of Change
DecoupledLeadTmeChgdByUsr _ProdBufPositioning DecoupledLeadTmeChgdByUsr
DecoupledLeadTmeChgdOn _ProdBufPositioning DecoupledLeadTmeChgdOn
BufferedMRPType
NonBufferedMRPType
MRPController MRPController MRP Controller
MRPGroup MRPGroup MRP Group
MRPType MRPType MRP Type
MaterialGroup ProductGroup Product Sold Group
MaterialType ProductType Product Type Group
MRPProcedure MRPProcedure
PlanningTimeFence PlanningTimeFence Plng time fence
LotSizingProcedure LotSizingProcedure Lot Sizing Procedure
MaterialMaxStockLevelQuantity MaterialMaxStockLevelQuantity
MinimumLotSizeQuantity MinimumLotSizeQuantity Min. Lot Size
ReorderThresholdQuantity ReorderThresholdQuantity Reorder Point
SafetyStockQuantity SafetyStockQuantity Safety stock
IsMRPAreaExisting IsMRPAreaExisting
ProductIsBuffered ProductIsBuffered
ProductAuthorizationGroup AuthorizationGroup AuthorizGroup
ProductTypeAuthorizationGroup ProductTypeAuthorizationGroup
ProductGroupAuthorizationGroup ProductGroupAuthorizationGroup
ProcurementType _DDProduct ProcurementType Procurement
VariabilityCode _DDProduct VariabilityCode
ReplenishmentLeadTimeCode _DDProduct ReplenishmentLeadTimeCode
BOMUsageCode _DDProduct BOMUsageCode
ConsumptionCode _DDProduct ConsumptionCode
IsBulkMaterial IsBulkMaterial Bulk material
IsPhantomItem IsPhantomItem Phantom item
_ProfileText _ProfileText
_Material _Material
_MaterialGroupText _MaterialGroupText
_DDProduct _DDProduct
_ProcmtText _ProcmtText
_VarLongTxt _VarLongTxt
_ReplnmtLongTxt _ReplnmtLongTxt

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 I_ProdBufPositioning.
-- 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 I_ProdBufPositioning AS
SELECT
  Material,
  Plant,
  cast(MRPArea as berid preserving type) AS MRPArea,
  _ProdBufPositioning.DecoupledLeadTime AS SimulatedDecoupledLeadTime,
  _ProdBufPositioning.IsYesNoValueSelected AS IsYesNoValueSelected,
  _DDProduct.DecoupledLeadTime AS DecoupledLeadTime,
  BaseUnit AS MaterialBaseUnit,
  _ProdBufPositioning.CreatedByUser AS CreatedByUser,
  _ProdBufPositioning.CreationTime AS CreationTime,
  _ProdBufPositioning.DecoupledLeadTmeChgdByUsr AS DecoupledLeadTmeChgdByUsr,
  _ProdBufPositioning.DecoupledLeadTmeChgdOn AS DecoupledLeadTmeChgdOn,
  cast( '' as dismm ) AS BufferedMRPType,
  cast( '' as dismm ) AS NonBufferedMRPType,
  MRPController,
  MRPGroup,
  MRPType,
  ProductGroup AS MaterialGroup,
  ProductType AS MaterialType,
  MRPProcedure,
  PlanningTimeFence,
  LotSizingProcedure,
  MaterialMaxStockLevelQuantity,
  MinimumLotSizeQuantity,
  ReorderThresholdQuantity,
  SafetyStockQuantity,
  IsMRPAreaExisting,
  ProductIsBuffered,
  AuthorizationGroup AS ProductAuthorizationGroup,
  ProductTypeAuthorizationGroup,
  ProductGroupAuthorizationGroup,
  _DDProduct.ProcurementType AS ProcurementType,
  _DDProduct.VariabilityCode AS VariabilityCode,
  _DDProduct.ReplenishmentLeadTimeCode AS ReplenishmentLeadTimeCode,
  _DDProduct.BOMUsageCode AS BOMUsageCode,
  _DDProduct.ConsumptionCode AS ConsumptionCode,
  IsBulkMaterial,
  IsPhantomItem
FROM P_ProdBufPositining
LEFT OUTER JOIN I_ProdBufPositioningCache AS _ProdBufPositioning ON Material = _ProdBufPositioning.Material AND Plant = _ProdBufPositioning.Plant AND MRPArea = _ProdBufPositioning.MRPArea AND _ProdBufPositioning.DecoupledLeadTmeChgdOn = $session.system_date AND _ProdBufPositioning.DecoupledLeadTmeChgdByUsr is not null AND ( IsBulkMaterial = '' OR IsBulkMaterial is null ) AND ( IsPhantomItem = '' OR IsPhantomItem is null )  -- association [1..1]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup  -- association [1..*]
LEFT OUTER JOIN I_DemandDrivenProduct AS _DDProduct ON Material = _DDProduct.Material AND Plant = _DDProduct.Plant AND MRPArea = _DDProduct.MRPArea  -- association [1..1]
LEFT OUTER JOIN I_ProcurementTypeText AS _ProcmtText ON procurementtype = _ProcmtText.ProcurementType AND _ProcmtText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProdBufVariabilityIndicatorT AS _VarLongTxt ON variabilitycode = _VarLongTxt.VariabilityIndicator AND _VarLongTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProdBufLeadTimeIndicatorT AS _ReplnmtLongTxt ON replenishmentleadtimecode = _ReplnmtLongTxt.ReplenishmentLeadTimeCode AND _ReplnmtLongTxt.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DDBufPosBufferProfileDetail AS _ProfileText ON _ProfileText.Plant = Plant AND _ProfileText.Language = $session.system_language AND _ProfileText.VariabilityCode = variabilitycode AND _ProfileText.ProcurementType = procurementtype AND _ProfileText.ReplenishmentLeadTimeCode = replenishmentleadtimecode AND _ProfileText.IsMinOrderQtyConsidered = ' '  -- association [0..1]
;