P_ORDFIRSTOPERAGGR

CDS View

Grouping the Order By First Operation

P_ORDFIRSTOPERAGGR is a CDS View in S/4HANA. Grouping the Order By First Operation. It contains 2 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_OrdFirstOper view_entity from CONSUMPTION Order First Operation Details

Fields (2)

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

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

define view entity P_OrdFirstOperAggr
  as select from I_OrderOperationBasic as afvc
  inner join P_MfgOrderAORList as _AORList on _AORList.OrderInternalBillOfOperations = afvc.OrderInternalID
{
  key afvc.OrderInternalID as  OrderInternalBillOfOperations,
//  key afvc.ManufacturingOrder,

  min(afvc.Operation ) as FirstOperation

}
where
    afvc.SuperiorOperationInternalID is initial
    and afvc.Sequence = '000000'
    and ( afvc.BillOfOperationsType <> 'R' and afvc.BillOfOperationsType <> '3' )
group by
afvc.OrderInternalID
//afvc.ManufacturingOrder