P_ProcOrdLatestOpAggr

DDL: P_PROCORDLATESTOPAGGR SQL: PORLATESTOPAGGR Type: view COMPOSITE

P_ProcOrdLatestOpAggr is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_ProcOrdMgmtOperation) and exposes 5 fields with key fields MfgOrderInternalID, ProcessOrder.

Data Sources (1)

SourceAliasJoin Type
P_ProcOrdMgmtOperation Op from

Annotations (10)

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

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY MfgOrderInternalID P_ProcOrdMgmtOperation OrderInternalID Plan No.f.Oper.
KEY ProcessOrder P_ProcOrdMgmtOperation ProcessOrder Order
ProductionPlant P_ProcOrdMgmtOperation ProductionPlant Prod plnt
ProductionSupervisor P_ProcOrdMgmtOperation ProductionSupervisor Prodn Supervisor
LatestOperation

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_ProcOrdLatestOpAggr.
-- 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: PORLATESTOPAGGR

CREATE VIEW P_ProcOrdLatestOpAggr AS
SELECT
  Op.OrderInternalID AS MfgOrderInternalID,
  Op.ProcessOrder AS ProcessOrder,
  Op.ProductionPlant AS ProductionPlant,
  Op.ProductionSupervisor AS ProductionSupervisor,
  max(Op.Operation) AS LatestOperation
FROM P_ProcOrdMgmtOperation AS Op
;