P_ProcOrdFirstOpAggr

DDL: P_PROCORDFIRSTOPAGGR SQL: PORFIRSTOPAGGR Type: view COMPOSITE

P_ProcOrdFirstOpAggr 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 PORFIRSTOPAGGR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL 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
FirstOperation

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_ProcOrdFirstOpAggr.
-- 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: PORFIRSTOPAGGR

CREATE VIEW P_ProcOrdFirstOpAggr AS
SELECT
  Op.OrderInternalID AS MfgOrderInternalID,
  Op.ProcessOrder AS ProcessOrder,
  Op.ProductionPlant AS ProductionPlant,
  Op.ProductionSupervisor AS ProductionSupervisor,
  min(Op.Operation) AS FirstOperation
FROM P_ProcOrdMgmtOperation AS Op
;