P_ProcOrdMgmtOperation
P_ProcOrdMgmtOperation is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_ProcOrdAORListDistinct, I_ProcOrdMgmtOpBasic) and exposes 43 fields with key fields OrderInternalID, OrderOperationInternalID. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_ProcOrdAORListDistinct | _AORList | inner |
| I_ProcOrdMgmtOpBasic | afvg | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_ProcOrdMgmtOp | afvp | afvp.OrderInternalID = afvg.OrderInternalID and afvp.ProcessOrder = afvg.ProcessOrder and afvp.ManufacturingOrderCategory = '40' and afvp.OrderOperationInternalID = afvg.OrderIntBillOfOpItemOfPhase and afvp.ProductionSupervisor = afvg.ProductionSupervisor and afvp.ProductionPlant = afvg.ProductionPlant |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID and _WorkCenter.WorkCenterTypeCode = 'A' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPROCORDMGMTOP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ObjectModel.representativeKey | OrderOperationInternalID | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalID | I_ProcOrdMgmtOpBasic | OrderInternalID | |
| KEY | OrderOperationInternalID | OrderOperationInternalID | ||
| ProcessOrder | I_ProcOrdMgmtOpBasic | ProcessOrder | ||
| ManufacturingOrderCategory | I_ProcOrdMgmtOpBasic | ManufacturingOrderCategory | ||
| ProductionPlant | I_ProcOrdMgmtOpBasic | ProductionPlant | ||
| ProductionSupervisor | I_ProcOrdMgmtOpBasic | ProductionSupervisor | ||
| Sequence | Sequence | |||
| OperationText | OperationText | |||
| Language | Language | |||
| Operation | Operation | |||
| MfgOrderPhaseSuperiorOperation | ||||
| Plant | I_ProcOrdMgmtOpBasic | Plant | ||
| BillOfOperationsSequence | BillOfOperationsSequence | |||
| BillOfOperationsType | I_ProcOrdMgmtOpBasic | BillOfOperationsType | ||
| BillOfOperationsGroup | BillOfOperationsGroup | |||
| BillOfOperationsVariant | I_ProcOrdMgmtOpBasic | BillOfOperationsVariant | ||
| BOOOperationInternalID | BOOOperationInternalID | |||
| BillOfOperationsVersion | I_ProcOrdMgmtOpBasic | BillOfOperationsVersion | ||
| SuperiorOperationInternalID | SuperiorOperationInternalID | |||
| ObjectInternalID | I_ProcOrdMgmtOpBasic | ObjectInternalID | ||
| OrderIntBillOfOpItemOfPhase | OrderIntBillOfOpItemOfPhase | |||
| MfgOrderOperationIsPhase | MfgOrderOperationIsPhase | |||
| WorkCenterInternalID | I_ProcOrdMgmtOpBasic | WorkCenterInternalID | ||
| WorkCenterTypeCode | _WorkCenter | WorkCenterTypeCode | ||
| WorkCenter | _WorkCenter | WorkCenter | ||
| WorkCenterText | ||||
| OperationUnit | OperationUnit | |||
| OpPlannedTotalQuantity | OpPlannedTotalQuantity | |||
| OpPlannedScrapQuantity | OpPlannedScrapQuantity | |||
| OpTotalConfirmedYieldQty | OpTotalConfirmedYieldQty | |||
| OpTotalConfirmedScrapQty | OpTotalConfirmedScrapQty | |||
| OpPlannedYieldQuantity | OpPlannedYieldQuantity | |||
| ProcOrdOpHasQuantityIssue | ProcOrdOpHasQuantityIssue | |||
| ProcOrdOpHasQualityIssue | ProcOrdOpHasQualityIssue | |||
| OpLtstSchedldExecStrtDte | OpLtstSchedldExecStrtDte | |||
| OpLtstSchedldExecStrtTme | OpLtstSchedldExecStrtTme | |||
| OpLtstSchedldExecEndDte | OpLtstSchedldExecEndDte | |||
| OpLtstSchedldExecEndTme | OpLtstSchedldExecEndTme | |||
| OpActualExecutionStartDate | OpActualExecutionStartDate | |||
| OpActualExecutionStartTime | OpActualExecutionStartTime | |||
| OpActualExecutionEndDate | OpActualExecutionEndDate | |||
| OpActualExecutionEndTime | OpActualExecutionEndTime | |||
| _OrderInternalID | I_ProcOrdMgmtOpBasic | _OrderInternalID |
@AbapCatalog.sqlViewName: 'PPROCORDMGMTOP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
//@EndUserText.label: 'Process order operation'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@ObjectModel.representativeKey: 'OrderOperationInternalID'
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_ProcOrdMgmtOperation
as select from I_ProcOrdMgmtOpBasic as afvg
inner join P_ProcOrdAORListDistinct as _AORList on _AORList.OrderID = afvg.ProcessOrder
association [0..1] to P_ProcOrdMgmtOp as afvp on afvp.OrderInternalID = afvg.OrderInternalID //phase handling
and afvp.ProcessOrder = afvg.ProcessOrder
and afvp.ManufacturingOrderCategory = '40'
and afvp.OrderOperationInternalID = afvg.OrderIntBillOfOpItemOfPhase
and afvp.ProductionSupervisor = afvg.ProductionSupervisor
and afvp.ProductionPlant = afvg.ProductionPlant
association [0..1] to I_WorkCenter as _WorkCenter on $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
and _WorkCenter.WorkCenterTypeCode = 'A'
{
key afvg.OrderInternalID,
key OrderOperationInternalID,
afvg.ProcessOrder,
afvg.ManufacturingOrderCategory,
afvg.ProductionPlant,
afvg.ProductionSupervisor,
Sequence,
OperationText,
Language,
Operation,
cast(afvp.Operation as vdm_supop preserving type) as MfgOrderPhaseSuperiorOperation,
afvg.Plant,
BillOfOperationsSequence,
afvg.BillOfOperationsType,
BillOfOperationsGroup,
afvg.BillOfOperationsVariant,
BOOOperationInternalID,
afvg.BillOfOperationsVersion,
SuperiorOperationInternalID,
afvg.ObjectInternalID,
OrderIntBillOfOpItemOfPhase,
MfgOrderOperationIsPhase,
afvg.WorkCenterInternalID,
_WorkCenter.WorkCenterTypeCode,
_WorkCenter.WorkCenter,
_WorkCenter._Text[1: Language=$session.system_language].WorkCenterText,
OperationUnit,
OpPlannedTotalQuantity,
OpPlannedScrapQuantity,
OpTotalConfirmedYieldQty,
OpTotalConfirmedScrapQty,
OpPlannedYieldQuantity,
// OrderOpenQuantity,
//Operation issues
ProcOrdOpHasQuantityIssue,
ProcOrdOpHasQualityIssue,
OpLtstSchedldExecStrtDte,
OpLtstSchedldExecStrtTme,
OpLtstSchedldExecEndDte,
OpLtstSchedldExecEndTme,
OpActualExecutionStartDate,
OpActualExecutionStartTime,
OpActualExecutionEndDate,
OpActualExecutionEndTime,
case OpLtstSchedldExecStrtTme when '240000' then
cast(cast(concat(OpLtstSchedldExecStrtDte,cast('235959' as tims))as abap.numc(15)) as timestamp)
else
cast(cast(concat(OpLtstSchedldExecStrtDte , OpLtstSchedldExecStrtTme)as abap.numc(15)) as timestamp)
end as ProcOrdOpSchedldStartDateTime,
case OpLtstSchedldExecEndTme when '240000' then
cast(cast(concat(OpLtstSchedldExecEndDte,cast('235959' as tims))as abap.numc(15)) as timestamp)
else
cast(cast(concat(OpLtstSchedldExecEndDte , OpLtstSchedldExecEndTme)as abap.numc(15)) as timestamp)
end as ProcOrdOpSchedldEndDateTime,
case OpActualExecutionStartTime when '240000' then
cast(cast(concat(OpActualExecutionStartDate,cast('235959' as tims))as abap.numc(15)) as timestamp)
else
cast(cast(concat(OpActualExecutionStartDate , OpActualExecutionStartTime)as abap.numc(15)) as timestamp)
end as ProcOrdOpActualStartDateTime,
case OpActualExecutionEndTime when '240000' then
cast(cast(concat(OpActualExecutionEndDate,cast('235959' as tims))as abap.numc(15)) as timestamp)
else
cast(cast(concat(OpActualExecutionEndDate , OpActualExecutionEndTime)as abap.numc(15)) as timestamp)
end as ProcOrdOpActualEndDateTime,
afvg._OrderInternalID
}
where
ManufacturingOrderCategory = '40'
and SuperiorOperationInternalID is initial //SuperiorOperationInternalID
and Sequence = '000000' //Sequence
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PROCORDMGMTOPBASIC",
"I_WORKCENTER",
"I_WORKCENTERTEXT",
"P_PROCORDAORLISTDISTINCT",
"P_PROCORDMGMTOP"
],
"ASSOCIATED":
[
"I_ORDERINTERNALID",
"I_WORKCENTER",
"P_PROCORDMGMTOP"
],
"BASE":
[
"I_PROCORDMGMTOPBASIC"
],
"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