I_PMRPProduct

DDL: I_PMRPPRODUCT Type: view_entity BASIC Package: PMRP_ENGINE

A product used in pMRP

I_PMRPProduct is a Basic CDS View that provides data about "A product used in pMRP" in SAP S/4HANA. It reads from 1 data source (pmrp_product) and exposes 19 fields with key fields PMRPReferencePlan, Product, Plant, MRPArea. It has 4 associations to related views. Part of development package PMRP_ENGINE.

Data Sources (1)

SourceAliasJoin Type
pmrp_product pmrp_product from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_PMRPReferencePlan _ReferencePlan _ReferencePlan.PMRPReferencePlan = $projection.PMRPReferencePlan
[1..1] I_PMRPProcurementType _PMRPProcurementType _PMRPProcurementType.Product = $projection.Product and _PMRPProcurementType.Plant = $projection.Plant
[1..1] I_MaterialText _MaterialText $projection.Product = _MaterialText.Material and _MaterialText.Language = $session.system_language
[1..1] I_PMRPSimulationMRPController _PMRPController _PMRPController.PMRPReferencePlan = $projection.PMRPReferencePlan and _PMRPController.Plant = $projection.Plant and _PMRPController.Product = $projection.Product and _PMRPController.MRPArea = $projection.MRPArea and _PMRPController.MRPController = $projection.MRPController

Annotations (6)

NameValueLevelField
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
EndUserText.label A product used in pMRP view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY PMRPReferencePlan reference_id Reference No.
KEY Product product Product Sold
KEY Plant plant Valuation Area
KEY MRPArea mrparea MRP Area
LowLevelCode low_level_code Low-Level Code
BOMIsRecursive recursive Recursive
UnitOfMeasure uom UoM: Conv. to
AvailableStockQuantity stock_quantity Stock Quantity
SafetyStockQuantity safety_stock Safety Stock
FactoryCalendar factory_calendar Factory Calendar
MRPController mrp_controller MRP Controller
ProductGroup product_group Product Group
MRPType mrp_type MRP Type
MRPProcedure mrp_procedure MRP Procedure
MaterialName
IsKanbanReplenishmentElement kanban_indicator Kanban Indicat.
_ReferencePlan _ReferencePlan
_PMRPProcurementType _PMRPProcurementType
_PMRPController _PMRPController

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_PMRPProduct.
-- 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_PMRPProduct AS
SELECT
  reference_id AS PMRPReferencePlan,
  Product,
  Plant,
  MRPArea,
  low_level_code AS LowLevelCode,
  recursive AS BOMIsRecursive,
  uom AS UnitOfMeasure,
  stock_quantity AS AvailableStockQuantity,
  safety_stock AS SafetyStockQuantity,
  factory_calendar AS FactoryCalendar,
  mrp_controller AS MRPController,
  product_group AS ProductGroup,
  mrp_type AS MRPType,
  mrp_procedure AS MRPProcedure,
  coalesce (_MaterialText.MaterialName, product) AS MaterialName,
  kanban_indicator AS IsKanbanReplenishmentElement
FROM pmrp_product
LEFT OUTER JOIN I_PMRPReferencePlan AS _ReferencePlan ON _ReferencePlan.PMRPReferencePlan = PMRPReferencePlan  -- association [1..1]
LEFT OUTER JOIN I_PMRPProcurementType AS _PMRPProcurementType ON _PMRPProcurementType.Product = Product AND _PMRPProcurementType.Plant = Plant  -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Product = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimulationMRPController AS _PMRPController ON _PMRPController.PMRPReferencePlan = PMRPReferencePlan AND _PMRPController.Plant = Plant AND _PMRPController.Product = Product AND _PMRPController.MRPArea = MRPArea AND _PMRPController.MRPController = MRPController  -- association [1..1]
;