P_ProcOrdOpQualityIssAggrgn
P_ProcOrdOpQualityIssAggrgn is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_ProcOrdAORListDistinct, I_ProcOrdMgmtOpBasic) and exposes 3 fields with key field MfgOrderInternalID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_ProcOrdAORListDistinct | _AORList | inner |
| I_ProcOrdMgmtOpBasic | Op | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MfgOrderInternalID | I_ProcOrdMgmtOpBasic | OrderInternalID | |
| ProcessOrder | ProcessOrder | |||
| ProcOrdOpHasQualityIssue |
@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
inner join P_ProcOrdAORListDistinct as _AORList on _AORList.OrderID = Op.ProcessOrder
{
key Op.OrderInternalID as MfgOrderInternalID,
ProcessOrder,
// ProductionPlant,
// ProductionSupervisor,
'X' as ProcOrdOpHasQualityIssue
}
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
// ProductionPlant,
// ProductionSupervisor
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PROCORDMGMTOPBASIC",
"P_PROCORDAORLISTDISTINCT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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