P_PMRPReceiptSos

DDL: P_PMRPRECEIPTSOS Type: view_entity COMPOSITE

Number of Sos per Receipt

P_PMRPReceiptSos is a Composite CDS View that provides data about "Number of Sos per Receipt" in SAP S/4HANA. It reads from 1 data source (I_PMRPReceiptBasic) and exposes 10 fields with key fields PMRPSimulation, TopLevelDemandInternalID.

Data Sources (1)

SourceAliasJoin Type
I_PMRPReceiptBasic I_PMRPReceiptBasic from

Annotations (7)

NameValueLevelField
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
EndUserText.label Number of Sos per Receipt view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
Plant Plant Valuation Area
PMRPReceiptCategory PMRPReceiptCategory Order Category
PMRPReceiptQuantity PMRPReceiptQuantity Receipt Quantity
UnitOfMeasure UnitOfMeasure Unit Protected Qty
Product Product Product Sold
MRPArea MRPArea MRP Area
PMRPTopLvlDmndQuantityFactor PMRPTopLvlDmndQuantityFactor Scale from Top Level Domain to Element
NumberOfSourcesOfSupply

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_PMRPReceiptSos.
-- 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_PMRPReceiptSos AS
SELECT
  PMRPSimulation,
  TopLevelDemandInternalID,
  Plant,
  PMRPReceiptCategory,
  PMRPReceiptQuantity,
  UnitOfMeasure,
  Product,
  MRPArea,
  PMRPTopLvlDmndQuantityFactor,
  count (distinct I_PMRPReceiptBasic._AlternativePMRPReceipt.PMRPSourceOfSupplyInternalID) AS NumberOfSourcesOfSupply
FROM I_PMRPReceiptBasic
;