P_ORDLATESTOPERAGGR

CDS View

P_ORDLATESTOPERAGGR is a CDS View in S/4HANA. It contains 2 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_LatestOperation view_entity from CONSUMPTION

Fields (2)

KeyField CDS FieldsUsed in Views
KEY OrderInternalBillOfOperations OrderInternalBillOfOperations 1
LatestOperation LatestOperation 1
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Grouping the Order By Latest Operation'

@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType:  #CONSUMPTION
@VDM.private: true

define view entity P_OrdLatestOperAggr
  as select from I_ProductionOrdOpBasic as afvc
{
  key afvc.OrderInternalID as OrderInternalBillOfOperations,
  max( afvc.Operation ) as LatestOperation
  
}

where afvc.OpActualExecutionStartDate != '00000000'
  and afvc.SuperiorOperationInternalID is initial
  and afvc.Sequence = '000000'
group by
  afvc.OrderInternalID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODUCTIONORDOPBASIC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/