I_PMRPRequirementBasic

DDL: I_PMRPREQUIREMENTBASIC SQL: IPMRPRQMTB Type: view BASIC

Requirement used in pMRP

I_PMRPRequirementBasic is a Basic CDS View that provides data about "Requirement used in pMRP" in SAP S/4HANA. It reads from 1 data source (pmrp_rqmt) and exposes 21 fields with key fields PMRPSimulation, RequirementInternalID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pmrp_rqmt rqmt from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.UnitOfMeasure
[1..1] I_Product _Product _Product.Product = $projection.Product
[1..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[1..1] I_MRPArea _MRPArea _MRPArea.MRPArea = $projection.MRPArea
[1..1] I_PMRPSimulation _Simulation _Simulation.PMRPSimulation = $projection.PMRPSimulation
[1..1] I_PMRPSimlnTopLevelDemand _TopLevelDemand _TopLevelDemand.PMRPSimulation = $projection.PMRPSimulation and _TopLevelDemand.TopLevelDemandInternalID = $projection.TopLevelDemandInternalID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPMRPRQMTB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
EndUserText.label Requirement used in pMRP view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation pmrp_rqmt simulation_id Simulation ID
KEY RequirementInternalID pmrp_rqmt rqmt_id Requirement ID
Product pmrp_rqmt product Product Sold
Plant pmrp_rqmt plant Valuation Area
MRPArea pmrp_rqmt mrparea MRP Area
PMRPRequirementCategory pmrp_rqmt rqmt_category Order Category
RequirementStartDate pmrp_rqmt rqmt_start_date Start Date
RequirementEndDate pmrp_rqmt rqmt_end_date Requirement End Date
RequiredQuantity pmrp_rqmt req_quantity Required Quantity
PMRPOpenQuantity pmrp_rqmt open_quantity Open Quantity
AvailableStockQuantity pmrp_rqmt available_stock Available Quantity
CoveredByStockQuantity pmrp_rqmt cov_by_stock_quan Quantity Covered
UnitOfMeasure pmrp_rqmt uom UoM: Conv. to
ReceiptInternalID pmrp_rqmt trigger_receipt_id ID of Receipt
TopLevelDemandInternalID pmrp_rqmt tld_id Top-Level Demand ID
_Product _Product
_Plant _Plant
_MRPArea _MRPArea
_UnitOfMeasure _UnitOfMeasure
_TopLevelDemand _TopLevelDemand
_Simulation _Simulation

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_PMRPRequirementBasic.
-- 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: IPMRPRQMTB

CREATE VIEW I_PMRPRequirementBasic AS
SELECT
  rqmt.simulation_id AS PMRPSimulation,
  rqmt.rqmt_id AS RequirementInternalID,
  rqmt.product AS Product,
  rqmt.plant AS Plant,
  rqmt.mrparea AS MRPArea,
  rqmt.rqmt_category AS PMRPRequirementCategory,
  rqmt.rqmt_start_date AS RequirementStartDate,
  rqmt.rqmt_end_date AS RequirementEndDate,
  rqmt.req_quantity AS RequiredQuantity,
  rqmt.open_quantity AS PMRPOpenQuantity,
  rqmt.available_stock AS AvailableStockQuantity,
  rqmt.cov_by_stock_quan AS CoveredByStockQuantity,
  rqmt.uom AS UnitOfMeasure,
  rqmt.trigger_receipt_id AS ReceiptInternalID,
  rqmt.tld_id AS TopLevelDemandInternalID
FROM pmrp_rqmt AS rqmt
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON _Product.Product = Product  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [1..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON _MRPArea.MRPArea = MRPArea  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimulation AS _Simulation ON _Simulation.PMRPSimulation = PMRPSimulation  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimlnTopLevelDemand AS _TopLevelDemand ON _TopLevelDemand.PMRPSimulation = PMRPSimulation AND _TopLevelDemand.TopLevelDemandInternalID = TopLevelDemandInternalID  -- association [1..1]
;