P_ProcOrdAORList
Process Orders for AOR
P_ProcOrdAORList is a Composite CDS View that provides data about "Process Orders for AOR" in SAP S/4HANA. It reads from 7 data sources and exposes 19 fields with key field OrderID.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| I_LogisticsOrder | _OrderBasic | inner |
| I_OrderOperationBasic | _OrderOperBasic | inner |
| I_LogisticsOrder | _Orders | inner |
| I_LogisticsOrder | _OrdersBasic | inner |
| I_PPAreaOfResponsibility | AOR | from |
| I_PPAreaOfResponsibility | AOR1 | union_all |
| I_PPAreaOfResponsibility | AOR2 | union_all |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Process Orders for AOR | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | I_LogisticsOrder | OrderID | |
| OrderInternalID | I_LogisticsOrder | OrderInternalBillOfOperations | ||
| OrderType | I_LogisticsOrder | OrderType | ||
| Plant | I_LogisticsOrder | Plant | ||
| ProductionSupervisor | I_LogisticsOrder | ProductionSupervisor | ||
| ProcessOrderObjectNumber | I_LogisticsOrder | ObjectInternalID | ||
| OrderID | ||||
| OrderInternalID | I_LogisticsOrder | OrderInternalBillOfOperations | ||
| OrderType | I_LogisticsOrder | OrderType | ||
| Plant | I_LogisticsOrder | Plant | ||
| ProductionSupervisor | I_LogisticsOrder | ProductionSupervisor | ||
| ProcessOrderObjectNumber | I_LogisticsOrder | ObjectInternalID | ||
| OrderID | ||||
| OrderInternalID | I_LogisticsOrder | OrderInternalBillOfOperations | ||
| OrderType | I_LogisticsOrder | OrderType | ||
| Plant | I_LogisticsOrder | Plant | ||
| ProductionSupervisor | I_LogisticsOrder | ProductionSupervisor | ||
| ProcessOrderObjectNumber | I_LogisticsOrder | ObjectInternalID | ||
| WorkCenterInternalID | I_OrderOperationBasic | WorkCenterInternalID |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Process Orders for AOR'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view entity P_ProcOrdAORList as
select from I_PPAreaOfResponsibility as AOR
inner join I_LogisticsOrder as _OrderBasic on AOR.Plant = _OrderBasic.Plant and _OrderBasic.ProductionSupervisor = ''
and _OrderBasic.OrderCategory = '40'
{
key _OrderBasic.OrderID,
_OrderBasic.OrderInternalBillOfOperations as OrderInternalID,
_OrderBasic.OrderType,
_OrderBasic.Plant,
_OrderBasic.ProductionSupervisor,
_OrderBasic.ObjectInternalID as ProcessOrderObjectNumber,
AOR.WorkCenterInternalID
}
where AOR.ProductionSupervisor is initial and AOR.WorkCenterInternalID is initial
union all
//select from I_LogisticsOrder as Orders
//inner join I_PPAreaOfResponsibility as AOR1 on Orders.Plant = AOR1.Plant and Orders.ProductionSupervisor = AOR1.ProductionSupervisor and Orders.OrderCategory = '40'
select from I_PPAreaOfResponsibility as AOR1
inner join I_LogisticsOrder as _Orders on AOR1.Plant = _Orders.Plant and AOR1.ProductionSupervisor = _Orders.ProductionSupervisor
and _Orders.OrderCategory = '40'
{
key _Orders.OrderID,
_Orders.OrderInternalBillOfOperations as OrderInternalID,
_Orders.OrderType,
_Orders.Plant,
_Orders.ProductionSupervisor,
_Orders.ObjectInternalID as ProcessOrderObjectNumber,
AOR1.WorkCenterInternalID
//key Orders.OrderID
}
where AOR1.WorkCenterInternalID is initial
union all
select from I_PPAreaOfResponsibility as AOR2
inner join I_OrderOperationBasic as _OrderOperBasic on _OrderOperBasic.WorkCenterInternalID = AOR2.WorkCenterInternalID
inner join I_LogisticsOrder as _OrdersBasic on _OrdersBasic.OrderInternalBillOfOperations = _OrderOperBasic.OrderInternalID
and AOR2.Plant = _OrdersBasic.Plant
and _OrdersBasic.OrderCategory = '40'
{
key _OrdersBasic.OrderID,
_OrdersBasic.OrderInternalBillOfOperations as OrderInternalID,
_OrdersBasic.OrderType,
_OrdersBasic.Plant,
_OrdersBasic.ProductionSupervisor,
_OrdersBasic.ObjectInternalID as ProcessOrderObjectNumber,
_OrderOperBasic.WorkCenterInternalID
}
where AOR2.ProductionSupervisor is initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDER",
"I_ORDEROPERATIONBASIC",
"I_PPAREAOFRESPONSIBILITY"
],
"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