P_ProcOrdMgmtOpCompAggrgn

DDL: P_PROCORDMGMTOPCOMPAGGRGN SQL: PPORMGMTOPCOMPAG Type: view COMPOSITE

P_ProcOrdMgmtOpCompAggrgn is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_ProcOrdMgmtOpComponents) and exposes 8 fields with key fields Reservation, ProcessOrder.

Data Sources (1)

SourceAliasJoin Type
P_ProcOrdMgmtOpComponents P_ProcOrdMgmtOpComponents from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPORMGMTOPCOMPAG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Reservation Reservation Reservation
KEY ProcessOrder ProcessOrder Order
LeadingReservationItem LeadingReservationItem
RequiredQuantity
ConfirmedAvailableQuantity
GoodsMovementEntryQty
WithdrawnQuantity
NumberOfBatches

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_ProcOrdMgmtOpCompAggrgn.
-- 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: PPORMGMTOPCOMPAG

CREATE VIEW P_ProcOrdMgmtOpCompAggrgn AS
SELECT
  Reservation,
  ProcessOrder,
  LeadingReservationItem,
  sum(RequiredQuantity) AS RequiredQuantity,
  sum (ConfirmedAvailableQuantity) AS ConfirmedAvailableQuantity,
  sum (GoodsMovementEntryQty) AS GoodsMovementEntryQty,
  sum (WithdrawnQuantity) AS WithdrawnQuantity,
  count(distinct Batch) AS NumberOfBatches
FROM P_ProcOrdMgmtOpComponents
;