P_ProcOrdOpQualityIssAggrgn

DDL: P_PROCORDOPQUALITYISSAGGRGN SQL: PPOROPQLTYISSAGG Type: view COMPOSITE Package: VDM_PP_PROC_ORD_MNG

Process order quality issue aggregation

P_ProcOrdOpQualityIssAggrgn is a Composite CDS View that provides data about "Process order quality issue aggregation" in SAP S/4HANA. It reads from 2 data sources (P_ProcOrdAORList_2, I_ProcOrdMgmtOpBasic) and exposes 5 fields with key field MfgOrderInternalID. Part of development package VDM_PP_PROC_ORD_MNG.

Data Sources (2)

SourceAliasJoin Type
P_ProcOrdAORList_2 _AORList inner
I_ProcOrdMgmtOpBasic Op from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPOROPQLTYISSAGG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY MfgOrderInternalID I_ProcOrdMgmtOpBasic OrderInternalID
ProcessOrder ProcessOrder
ProcOrdOpHasQualityIssue
ScheduledBasicStartDate I_ProcOrdMgmtOpBasic ScheduledBasicStartDate
ScheduledBasicEndDate I_ProcOrdMgmtOpBasic ScheduledBasicEndDate
@AbapCatalog.sqlViewName: 'PPOROPQLTYISSAGG'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType:  #COMPOSITE
@VDM.private: true
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'Process order quality issue aggregation'

define view P_ProcOrdOpQualityIssAggrgn
  as select from I_ProcOrdMgmtOpBasic as Op
  //Change selection for P_ProcOrdAORList_2 that is more optimized  

  inner join P_ProcOrdAORList_2 as _AORList on  _AORList.OrderID   = Op.ProcessOrder
                                            and _AORList.ScheduledBasicStartDate = Op.ScheduledBasicStartDate
                                            and _AORList.ScheduledBasicEndDate = Op.ScheduledBasicEndDate
{
  key    Op.OrderInternalID as MfgOrderInternalID,
         ProcessOrder,
//         ProductionPlant,

//         ProductionSupervisor,

         'X'             as ProcOrdOpHasQualityIssue,
         //Expose Start and End dates to push-down filters to associations

         Op.ScheduledBasicStartDate,
         Op.ScheduledBasicEndDate
}
where
      ManufacturingOrderCategory  = '40'
  and MfgOrderOperationIsPhase    = 'X'
  and SuperiorOperationInternalID is initial
  and Sequence                    = '000000'
  and Op.ProcOrdOpHasQualityIssue = 'X'
  and OpActualExecutionStartDate != '00000000'
group by
  Op.OrderInternalID,
  ProcessOrder,
  Op.ScheduledBasicStartDate,
  Op.ScheduledBasicEndDate
//  ProductionPlant,

//  ProductionSupervisor