P_PMRPSimlnReceiptBucketBasic

DDL: P_PMRPSIMLNRECEIPTBUCKETBASIC Type: view_entity BASIC Package: PMRP_ENGINE

Receipt used in pMRP distributed

P_PMRPSimlnReceiptBucketBasic is a Basic CDS View that provides data about "Receipt used in pMRP distributed" in SAP S/4HANA. It reads from 1 data source (pmrp_rcpt_bckt) and exposes 20 fields with key fields PMRPSimulation, PMRPNodeID. It has 4 associations to related views. Part of development package PMRP_ENGINE.

Data Sources (1)

SourceAliasJoin Type
pmrp_rcpt_bckt pmrp_rcpt_bckt from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.PMRPConstraintBaseUnit
[1..1] I_PMRPSimulation _PMRPSimulation _PMRPSimulation.PMRPSimulation = $projection.PMRPSimulation
[0..1] I_PMRPReceiptBasic _Receipt _Receipt.PMRPSimulation = $projection.PMRPSimulation and _Receipt.ReceiptInternalID = $projection.ReceiptInternalID and _Receipt.TopLevelDemandInternalID = $projection.TopLevelDemandInternalID
[0..1] I_PMRPSimlnTopLevelDemand _TopLevelDemand _TopLevelDemand.PMRPSimulation = $projection.PMRPSimulation and _TopLevelDemand.TopLevelDemandInternalID = $projection.TopLevelDemandInternalID

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
VDM.private true view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation pmrpsimulation Simulation ID
KEY PMRPNodeID pmrpnodeid Receipt ID
BucketInternalID bucketinternalid Bucket ID
Product product Product Sold
Plant plant Valuation Area
MRPArea mrparea MRP Area
PMRPSourceOfSupplyInternalID pmrpsourceofsupplyinternalid Source of Supply ID
ReceiptInternalID receiptinternalid Receipt ID
PMRPSupplyGroup pmrpsupplygroup Supply Group
PMRPSupplyGroupCategory pmrpsupplygroupcategory Supply Group Cat
PMRPFlexibleConstraint pmrpflexibleconstraint Constraints ID
PMRPRcptBcktQtyInCstrtUnit quantity Value
PMRPConstraintBaseUnit unitofmeasure Unit Protected Qty
TopLevelDemandInternalID topleveldemandinternalid Top-Level Demand ID
PMRPNmbrOfWrkgDaysInBucket working_days_in_bucket Duration in Bucket
PMRPReferencePlan _PMRPSimulation PMRPReferencePlan
_UnitOfMeasure _UnitOfMeasure
_Receipt _Receipt
_TopLevelDemand _TopLevelDemand
_PMRPSimulation _PMRPSimulation

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_PMRPSimlnReceiptBucketBasic.
-- 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 P_PMRPSimlnReceiptBucketBasic AS
SELECT
  PMRPSimulation,
  PMRPNodeID,
  BucketInternalID,
  Product,
  Plant,
  MRPArea,
  PMRPSourceOfSupplyInternalID,
  ReceiptInternalID,
  PMRPSupplyGroup,
  PMRPSupplyGroupCategory,
  PMRPFlexibleConstraint,
  quantity AS PMRPRcptBcktQtyInCstrtUnit,
  unitofmeasure AS PMRPConstraintBaseUnit,
  TopLevelDemandInternalID,
  working_days_in_bucket AS PMRPNmbrOfWrkgDaysInBucket,
  _PMRPSimulation.PMRPReferencePlan AS PMRPReferencePlan
FROM pmrp_rcpt_bckt
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = PMRPConstraintBaseUnit  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimulation AS _PMRPSimulation ON _PMRPSimulation.PMRPSimulation = PMRPSimulation  -- association [1..1]
LEFT OUTER JOIN I_PMRPReceiptBasic AS _Receipt ON _Receipt.PMRPSimulation = PMRPSimulation AND _Receipt.ReceiptInternalID = ReceiptInternalID AND _Receipt.TopLevelDemandInternalID = TopLevelDemandInternalID  -- association [0..1]
LEFT OUTER JOIN I_PMRPSimlnTopLevelDemand AS _TopLevelDemand ON _TopLevelDemand.PMRPSimulation = PMRPSimulation AND _TopLevelDemand.TopLevelDemandInternalID = TopLevelDemandInternalID  -- association [0..1]
;