P_Ordoperaggr

DDL: P_ORDOPERAGGR Type: view_entity COMPOSITE Package: ODATA_MPE_MFGORDER

Grouping the Order By Latest Operation

P_Ordoperaggr is a Composite CDS View that provides data about "Grouping the Order By Latest Operation" in SAP S/4HANA. It reads from 3 data sources (P_MfgOrderAORList, I_OrderOperationDatesQty, I_OrderOperationBasic) and exposes 2 fields with key field OrderInternalBillOfOperations. Part of development package ODATA_MPE_MFGORDER.

Data Sources (3)

SourceAliasJoin Type
P_MfgOrderAORList _AORList inner
I_OrderOperationDatesQty _latestOp inner
I_OrderOperationBasic afvc from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations I_OrderOperationBasic OrderInternalID Plan No.f.Oper.
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_Ordoperaggr.
-- 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_Ordoperaggr AS
SELECT
  afvc.OrderInternalID AS OrderInternalBillOfOperations,
  max( afvc.Operation ) AS LatestOperation
FROM I_OrderOperationBasic AS afvc
INNER JOIN P_MfgOrderAORList AS _AORList ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderOperationDatesQty AS _latestOp ON /* join condition not captured in parsed metadata */
;