P_ProcOrdOpScrapIssAggrgn
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OrderOperation | afvg | from |
| P_ProcessOrderHeader | aufv | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA