I_ProductReplenishment

DDL: I_PRODUCTREPLENISHMENT SQL: IPRODREPLNMT Type: view BASIC

Basic View - Product Replenishment

I_ProductReplenishment is a Basic CDS View that provides data about "Basic View - Product Replenishment" in SAP S/4HANA. It reads from 1 data source (wrpp) and exposes 11 fields with key fields Product, ProdReplnmtRqmtGroup. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
wrpp wrpp from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_ProdReplnmtRqmtGroup _ProdReplnmtRqmtGroup $projection.ProdReplnmtRqmtGroup = _ProdReplnmtRqmtGroup.ProdReplnmtRqmtGroup
[0..*] I_ProdReplnmtRqmtGroupText _ProdReplnmtRqmtGroupText $projection.ProdReplnmtRqmtGroup = _ProdReplnmtRqmtGroupText.ProdReplnmtRqmtGroup

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IPRODREPLNMT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Basic View - Product Replenishment view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY Product matnr Vehicle Model
KEY ProdReplnmtRqmtGroup Req.group
ProdReplnmtTgtStkQuantity sobst Target stock
ReorderThresholdQuantity minbe Reorder Point
SafetyStockQuantity eisbe Safety Stock
ProdReplnmtMinTgtStockQuantity prwug Min. target stk
ProdReplnmtMaxTgtStockQuantity prwog Upper Limit
BaseUnit _Product BaseUnit Unit of Measure
_Product _Product
_ProdReplnmtRqmtGroup _ProdReplnmtRqmtGroup
_ProdReplnmtRqmtGroupText _ProdReplnmtRqmtGroupText

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_ProductReplenishment.
-- 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: IPRODREPLNMT

CREATE VIEW I_ProductReplenishment AS
SELECT
  matnr AS Product,
  cast( rqgrp as prodreplnmtrqmtgroup preserving type ) AS ProdReplnmtRqmtGroup,
  sobst AS ProdReplnmtTgtStkQuantity,
  minbe AS ReorderThresholdQuantity,
  eisbe AS SafetyStockQuantity,
  prwug AS ProdReplnmtMinTgtStockQuantity,
  prwog AS ProdReplnmtMaxTgtStockQuantity,
  _Product.BaseUnit AS BaseUnit
FROM wrpp
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_ProdReplnmtRqmtGroup AS _ProdReplnmtRqmtGroup ON ProdReplnmtRqmtGroup = _ProdReplnmtRqmtGroup.ProdReplnmtRqmtGroup  -- association [0..1]
LEFT OUTER JOIN I_ProdReplnmtRqmtGroupText AS _ProdReplnmtRqmtGroupText ON ProdReplnmtRqmtGroup = _ProdReplnmtRqmtGroupText.ProdReplnmtRqmtGroup  -- association [0..*]
;