I_PMRPReceiptBasic

DDL: I_PMRPRECEIPTBASIC Type: view_entity BASIC

Receipt used in pMRP

I_PMRPReceiptBasic is a Basic CDS View that provides data about "Receipt used in pMRP" in SAP S/4HANA. It reads from 1 data source (pmrp_receipt) and exposes 24 fields with key fields PMRPSimulation, TopLevelDemandInternalID. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
pmrp_receipt receipt from

Associations (7)

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
[1..*] I_PMRPReceipt _AlternativePMRPReceipt _AlternativePMRPReceipt.PMRPSimulation = $projection.PMRPSimulation and _AlternativePMRPReceipt.TopLevelDemandInternalID = $projection.TopLevelDemandInternalID and _AlternativePMRPReceipt.PeggedRequirementInternalID = $projection.PeggedRequirementInternalID and _AlternativePMRPReceipt.PMRPReceiptSupplyEndDate = $projection.PMRPReceiptSupplyEndDate

Annotations (6)

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

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation simulation_id Simulation ID
KEY TopLevelDemandInternalID tld_id Top-Level Demand ID
Product product Product Sold
Plant plant Valuation Area
MRPArea mrparea MRP Area
PMRPReceiptCategory receipt_category Order Category
ReceiptStartDate rec_start_date Receipt Start Date
ReceiptEndDate rec_end_date Receipt End Date
PMRPReceiptSupplyEndDate rec_supply_end_date Supply End Date
RequiredQuantity req_quantity Required Quantity
PMRPReceiptQuantity receipt_quantity Receipt Quantity
PullInQuantity preprod_quan Pull-In Quantity
UnitOfMeasure uom UoM: Conv. to
PMRPSourceOfSupplyInternalID sos_id Source of Supply ID
QuotaArrangementPercent quot_factor Quota Percent
PeggedRequirementInternalID pegged_rqmt_id Requirement ID
PMRPTopLvlDmndQuantityFactor scale_factor_tld Scale from Top Level Domain to Element
pureBOMfactortoTLD_Product
_Plant _Plant
_MRPArea _MRPArea
_UnitOfMeasure _UnitOfMeasure
_TopLevelDemand _TopLevelDemand
_AlternativePMRPReceipt _AlternativePMRPReceipt
_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_PMRPReceiptBasic.
-- 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_PMRPReceiptBasic AS
SELECT
  simulation_id AS PMRPSimulation,
  tld_id AS TopLevelDemandInternalID,
  Product,
  Plant,
  MRPArea,
  receipt_category AS PMRPReceiptCategory,
  rec_start_date AS ReceiptStartDate,
  rec_end_date AS ReceiptEndDate,
  rec_supply_end_date AS PMRPReceiptSupplyEndDate,
  req_quantity AS RequiredQuantity,
  receipt_quantity AS PMRPReceiptQuantity,
  preprod_quan AS PullInQuantity,
  uom AS UnitOfMeasure,
  sos_id AS PMRPSourceOfSupplyInternalID,
  quot_factor AS QuotaArrangementPercent,
  pegged_rqmt_id AS PeggedRequirementInternalID,
  scale_factor_tld AS PMRPTopLvlDmndQuantityFactor
FROM pmrp_receipt AS receipt
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]
LEFT OUTER JOIN I_PMRPReceipt AS _AlternativePMRPReceipt ON _AlternativePMRPReceipt.PMRPSimulation = PMRPSimulation AND _AlternativePMRPReceipt.TopLevelDemandInternalID = TopLevelDemandInternalID AND _AlternativePMRPReceipt.PeggedRequirementInternalID = PeggedRequirementInternalID AND _AlternativePMRPReceipt.PMRPReceiptSupplyEndDate = PMRPReceiptSupplyEndDate  -- association [1..*]
;