P_ORDFIRSTOPERAGGR

CDS View

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

CDS Views using this table (1)

ViewTypeJoinVDMDescription
P_OrdFirstOper view_entity from CONSUMPTION

Fields (3)

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

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

define view entity P_OrdFirstOperAggr
  as select from I_ProductionOrdOpBasic as afvc
{
  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

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PRODUCTIONORDOPBASIC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/