P_ORDLATESTOPERAGGR
Grouping the Order By Latest Operation
P_ORDLATESTOPERAGGR is a CDS View in S/4HANA. Grouping the Order By Latest Operation. It contains 3 fields. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| P_LatestOperation | view_entity | from | COMPOSITE | Order Latest Operation Details |
Fields (3)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | OrderInternalBillOfOperations | OrderInternalBillOfOperations | 1 |
| LatestOperation | LatestOperation | 1 | |
| Plant | Plant | 1 |
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Grouping the Order By Latest Operation'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view entity P_OrdLatestOperAggr
as select from P_MfgOperBasicAorList as afvc
// inner join P_MfgOperationsList as _List on _List.OrderInternalID = afvc.OrderInternalID
// and _List.OrderOperationInternalID = afvc.OrderOperationInternalID
{
key afvc.OrderInternalID as OrderInternalBillOfOperations,
max( afvc.Operation ) as LatestOperation,
afvc.Plant
}
where afvc.OpActualExecutionStartDate != '00000000'
and afvc.SuperiorOperationInternalID is initial
and afvc.Sequence = '000000'
group by
afvc.OrderInternalID,
afvc.Plant