P_MfgOperationsList
Operations matching the assigned AORs
P_MfgOperationsList is a Composite CDS View that provides data about "Operations matching the assigned AORs" in SAP S/4HANA. It reads from 9 data sources and exposes 4 fields with key fields OrderInternalID, OrderInternalID, OrderInternalID, OrderOperationInternalID.
Data Sources (9)
| Source | Alias | Join Type |
|---|---|---|
| I_LogisticsOrder | _OrderBasic | inner |
| I_OrderOperationBasic | _OrderOperBasic | inner |
| I_OrderOperationBasic | _OrderOperBasic1 | inner |
| I_OrderOperationBasic | _OrderOperBasic2 | inner |
| I_LogisticsOrder | _Orders | inner |
| I_LogisticsOrder | _OrdersBasic | inner |
| I_PPAreaOfResponsibility | AOR | from |
| I_PPAreaOfResponsibility | AOR1 | union |
| I_PPAreaOfResponsibility | AOR2 | union |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Operations matching the assigned AORs | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalID | I_OrderOperationBasic | OrderInternalID | |
| KEY | OrderInternalID | |||
| KEY | OrderInternalID | |||
| KEY | OrderOperationInternalID | I_OrderOperationBasic | OrderOperationInternalID |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Operations matching the assigned AORs'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #COMPOSITE
@VDM.private: true
@Metadata.ignorePropagatedAnnotations: true
define view entity P_MfgOperationsList as
select from I_PPAreaOfResponsibility as AOR
inner join I_OrderOperationBasic as _OrderOperBasic1 on _OrderOperBasic1.Plant = AOR.Plant
and _OrderOperBasic1.BillOfOperationsType <> 'R'
and _OrderOperBasic1.BillOfOperationsType <> '3'
inner join I_LogisticsOrder as _OrderBasic on _OrderBasic.OrderInternalBillOfOperations = _OrderOperBasic1.OrderInternalID
and _OrderBasic.ProductionSupervisor = ''
and _OrderBasic.OrderCategory = '10'
{
key _OrderOperBasic1.OrderInternalID,
key _OrderOperBasic1.OrderOperationInternalID
}
where AOR.ProductionSupervisor is initial and AOR.WorkCenterInternalID is initial
union
select from I_PPAreaOfResponsibility as AOR1
inner join I_OrderOperationBasic as _OrderOperBasic2 on _OrderOperBasic2.Plant = AOR1.Plant
and _OrderOperBasic2.BillOfOperationsType <> 'R'
and _OrderOperBasic2.BillOfOperationsType <> '3'
inner join I_LogisticsOrder as _Orders on ( _Orders.ProductionSupervisor = AOR1.ProductionSupervisor ) // or AOR1.ProductionSupervisor = '*' )
and _Orders.OrderInternalBillOfOperations = _OrderOperBasic2.OrderInternalID
and _Orders.OrderCategory = '10'
{
key _OrderOperBasic2.OrderInternalID,
key _OrderOperBasic2.OrderOperationInternalID
}
where AOR1.ProductionSupervisor is not initial and AOR1.WorkCenterInternalID is initial
union
select from I_PPAreaOfResponsibility as AOR2
inner join I_OrderOperationBasic as _OrderOperBasic on _OrderOperBasic.Plant = AOR2.Plant
and _OrderOperBasic.WorkCenterInternalID = AOR2.WorkCenterInternalID
and _OrderOperBasic.BillOfOperationsType <> 'R'
and _OrderOperBasic.BillOfOperationsType <> '3'
inner join I_LogisticsOrder as _OrdersBasic on _OrdersBasic.OrderInternalBillOfOperations = _OrderOperBasic.OrderInternalID
and _OrdersBasic.OrderCategory = '10'
{
key _OrderOperBasic.OrderInternalID,
key _OrderOperBasic.OrderOperationInternalID
}
where AOR2.ProductionSupervisor is initial and AOR2.WorkCenterInternalID is not initial
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