P_PRODUCTPLANTMRP

DDL: P_PRODUCTPLANTMRP SQL: PPRDPLNTMRP Type: view BASIC

P_PRODUCTPLANTMRP is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (mdma) and exposes 44 fields with key fields Product, MRPArea, Plant. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
mdma MRPAreaData from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_MRPType _MRPType $projection.MRPType = _MRPType.MRPType
[0..*] I_MRPTypeText _MRPTypeName $projection.MRPType = _MRPTypeName.MRPType
[0..1] I_MRPLotSizingProcedure _LotSizingProcedure $projection.LotSizingProcedure = _LotSizingProcedure.MaterialLotSizingProcedure
[0..1] I_StorageLocation _PlantInvtryManagedLoc $projection.StorageLocation = _PlantInvtryManagedLoc.StorageLocation and $projection.Plant = _PlantInvtryManagedLoc.Plant
[1..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_MRPController _MRPResponsible $projection.MRPResponsible = _MRPResponsible.MRPController and $projection.Plant = _MRPResponsible.Plant
[0..1] I_MRPArea _MRPArea $projection.MRPArea = _MRPArea.MRPArea

Annotations (10)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PPRDPLNTMRP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY Product matnr Vehicle Model
KEY MRPArea berid Single-Character Flag
KEY Plant werks Receiving Plant
MRPAreaCategory _MRPArea MRPAreaCategory
MRPType dismm MRP Type
MRPResponsible dispo MRP Controller
MRPGroup disgr MRP Group
ReorderThresholdQuantity minbe Reorder Point
PlanAndOrderDayDetermination lfrhy Planning Cycle
PlanningTimeFence fxhor Plng time fence
LotSizingProcedure disls Lot Sizing Procedure
RoundingProfile rdprf Rounding Prfl.
LotSizeRoundingQuantity bstrf Rounding value
MinimumLotSizeQuantity bstmi Min. Lot Size
MaximumLotSizeQuantity bstma To Lot Size
MaximumStockQuantity mabst Max.Stock Level
AssemblyScrapPercent ausss Assembly scrap
ProcurementSubType sobsl SpecProcuremKey
StorageLocation lgpro Storage Location
DfltStorageLocationExtProcmt lgfsb Storage Location
MRPPlanningCalendar mrppp Planning cal.
SafetyStockQuantity eisbe Safety Stock
RangeOfCvrgPrflCode rwpro Coverage Prof.
SafetyDuration shzet Safety Time
FixedLotSizeQuantity bstfe Fixed lot size
LotSizeIndependentCosts losfx LSI Costs
IsStorageCosts lagpr Storage Costs
SrvcLvl lgrad Target Service Level
CreationDate vrbdt Date to
IsMarkedForDeletion loekz Status
PerdPrflForSftyTme shpro Time Profile
IsMRPDependentRqmt ahdis MRP Relevant
MaintenanceStatusName pstat Processing Status
IsSafetyTime shflg Safety Time Ind
PlannedDeliveryDurationInDays plifz Plnd Deliv.Time
IsPlannedDeliveryTime Consider PlDelTime
TaktTime takzt Takt time
_MRPType _MRPType
_MRPTypeName _MRPTypeName
_MRPResponsible _MRPResponsible
_LotSizingProcedure _LotSizingProcedure
_PlantInvtryManagedLoc _PlantInvtryManagedLoc
_Product _Product
_MRPArea _MRPArea

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_PRODUCTPLANTMRP.
-- 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: PPRDPLNTMRP

CREATE VIEW P_PRODUCTPLANTMRP AS
SELECT
  matnr AS Product,
  berid AS MRPArea,
  werks AS Plant,
  _MRPArea.MRPAreaCategory AS MRPAreaCategory,
  dismm AS MRPType,
  dispo AS MRPResponsible,
  disgr AS MRPGroup,
  minbe AS ReorderThresholdQuantity,
  lfrhy AS PlanAndOrderDayDetermination,
  fxhor AS PlanningTimeFence,
  disls AS LotSizingProcedure,
  rdprf AS RoundingProfile,
  bstrf AS LotSizeRoundingQuantity,
  bstmi AS MinimumLotSizeQuantity,
  bstma AS MaximumLotSizeQuantity,
  mabst AS MaximumStockQuantity,
  ausss AS AssemblyScrapPercent,
  sobsl AS ProcurementSubType,
  lgpro AS StorageLocation,
  lgfsb AS DfltStorageLocationExtProcmt,
  mrppp AS MRPPlanningCalendar,
  eisbe AS SafetyStockQuantity,
  rwpro AS RangeOfCvrgPrflCode,
  shzet AS SafetyDuration,
  bstfe AS FixedLotSizeQuantity,
  losfx AS LotSizeIndependentCosts,
  lagpr AS IsStorageCosts,
  lgrad AS SrvcLvl,
  vrbdt AS CreationDate,
  loekz AS IsMarkedForDeletion,
  shpro AS PerdPrflForSftyTme,
  ahdis AS IsMRPDependentRqmt,
  pstat AS MaintenanceStatusName,
  shflg AS IsSafetyTime,
  plifz AS PlannedDeliveryDurationInDays,
  cast(plifzx as boole_d) AS IsPlannedDeliveryTime,
  takzt AS TaktTime
FROM mdma AS MRPAreaData
LEFT OUTER JOIN I_MRPType AS _MRPType ON MRPType = _MRPType.MRPType  -- association [0..1]
LEFT OUTER JOIN I_MRPTypeText AS _MRPTypeName ON MRPType = _MRPTypeName.MRPType  -- association [0..*]
LEFT OUTER JOIN I_MRPLotSizingProcedure AS _LotSizingProcedure ON LotSizingProcedure = _LotSizingProcedure.MaterialLotSizingProcedure  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _PlantInvtryManagedLoc ON StorageLocation = _PlantInvtryManagedLoc.StorageLocation AND Plant = _PlantInvtryManagedLoc.Plant  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_MRPController AS _MRPResponsible ON MRPResponsible = _MRPResponsible.MRPController AND Plant = _MRPResponsible.Plant  -- association [0..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea  -- association [0..1]
;