P_ProcOrdOpScrapIssAggrgn

DDL: P_PROCORDOPSCRAPISSAGGRGN Type: view_entity COMPOSITE Package: VDM_PP_PROC_ORD_MNG

Process Order Operation Scrap Issues Aggregation

P_ProcOrdOpScrapIssAggrgn is a Composite CDS View that provides data about "Process Order Operation Scrap Issues Aggregation" in SAP S/4HANA. It reads from 2 data sources (I_OrderOperation, P_ProcessOrderHeader) and exposes 6 fields with key fields OrderInternalBillOfOperations, OrderIntBillOfOpItemOfPhase. Part of development package VDM_PP_PROC_ORD_MNG.

Data Sources (2)

SourceAliasJoin Type
I_OrderOperation afvg from
P_ProcessOrderHeader aufv inner

Annotations (6)

NameValueLevelField
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

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations I_OrderOperation OrderInternalID
KEY OrderIntBillOfOpItemOfPhase I_OrderOperation OrderIntBillOfOpItemOfPhase
ProcessOrder P_ProcessOrderHeader OrderID
ProductionPlant P_ProcessOrderHeader Plant
ProductionSupervisor P_ProcessOrderHeader ProductionSupervisor
ProcOrdOpHasQualityIssue
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Process Order Operation Scrap Issues Aggregation'

@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType:  #COMPOSITE
@VDM.private: true
define view entity P_ProcOrdOpScrapIssAggrgn
  //as select from P_ProcOrderOperationDurn as Op

  as select from           I_OrderOperation      as afvg
    inner join             P_ProcessOrderHeader         as aufv on aufv.OrderInternalBillOfOperations = afvg.OrderInternalID
{
  key       afvg.OrderInternalID as OrderInternalBillOfOperations,
  key       afvg.OrderIntBillOfOpItemOfPhase,
            aufv.OrderID as ProcessOrder,
            aufv.Plant as ProductionPlant,
            aufv.ProductionSupervisor,
            'X'                as ProcOrdOpHasQualityIssue
}
where
      aufv.OrderCategory = '40'
  and afvg.MfgOrderOperationIsPhase   = 'X'
  and afvg.OpTotalConfirmedScrapQty   > afvg.OpPlannedScrapQuantity
group by
  afvg.OrderInternalID,
  afvg.OrderIntBillOfOpItemOfPhase,
  aufv.OrderID,
  aufv.Plant,
  aufv.ProductionSupervisor