I_MfgOrderOperationCube

DDL: I_MFGORDEROPERATIONCUBE SQL: IPPMFGORDEROPC Type: view COMPOSITE

Manufacturing Order Operation - Cube

I_MfgOrderOperationCube is a Composite CDS View (Cube) that provides data about "Manufacturing Order Operation - Cube" in SAP S/4HANA. It reads from 2 data sources (P_MfgOrderOperationDelay, P_OrderOperationStatusBasicAgg) and exposes 249 fields with key fields OrderInternalBillOfOperations, OrderIntBillOfOperationsItem. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_MfgOrderOperationDelay oper from
P_OrderOperationStatusBasicAgg stat inner

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_CalendarDate _StartDate $projection.OpErlstSchedldExecStrtDte = _StartDate.CalendarDate
[1..1] I_ManufacturingOrder _ManufacturingOrder $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder
[1..1] I_OrderInternalID _OrderInternalID $projection.OrderInternalBillOfOperations = _OrderInternalID.OrderInternalID
[0..1] I_WorkCenterBySemanticKey _WorkCenterBySemanticKey $projection.WorkCenter = _WorkCenterBySemanticKey.WorkCenter and $projection.ProductionPlant = _WorkCenterBySemanticKey.Plant

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IPPMFGORDEROPC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
EndUserText.label Manufacturing Order Operation - Cube view

Fields (249)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations P_MfgOrderOperationDelay OrderInternalBillOfOperations
KEY OrderIntBillOfOperationsItem P_MfgOrderOperationDelay OrderIntBillOfOperationsItem
ManufacturingOrder P_MfgOrderOperationDelay ManufacturingOrder
ManufacturingOrderSequence P_MfgOrderOperationDelay ManufacturingOrderSequence
ManufacturingOrderOperation P_MfgOrderOperationDelay ManufacturingOrderOperation
ManufacturingOrderSubOperation P_MfgOrderOperationDelay ManufacturingOrderSubOperation
ManufacturingOrderCategory P_MfgOrderOperationDelay ManufacturingOrderCategory
ManufacturingOrderType P_MfgOrderOperationDelay ManufacturingOrderType
ProductionSupervisor P_MfgOrderOperationDelay ProductionSupervisor
MRPController P_MfgOrderOperationDelay MRPController
ResponsiblePlannerGroup P_MfgOrderOperationDelay ResponsiblePlannerGroup
ProductConfiguration P_MfgOrderOperationDelay ProductConfiguration
MfgOrderOperationText P_MfgOrderOperationDelay MfgOrderOperationText
OperationHasLongText P_MfgOrderOperationDelay OperationHasLongText
Language P_MfgOrderOperationDelay Language
OperationStandardTextCode P_MfgOrderOperationDelay OperationStandardTextCode
MfgOrderOperationIsPhase P_MfgOrderOperationDelay MfgOrderOperationIsPhase
MfgOrderPhaseSuperiorOperation P_MfgOrderOperationDelay MfgOrderPhaseSuperiorOperation
NumberOfCapacities P_MfgOrderOperationDelay NumberOfCapacities
NumberOfConfirmationSlips P_MfgOrderOperationDelay NumberOfConfirmationSlips
NumberOfOperationConfirmations P_MfgOrderOperationDelay NumberOfOperationConfirmations
OperationImportance P_MfgOrderOperationDelay OperationImportance
ObjectInternalID P_MfgOrderOperationDelay ManufacturingObject
OperationIsCreated P_OrderOperationStatusBasicAgg OperationIsCreated
OperationIsReleased P_OrderOperationStatusBasicAgg OperationIsReleased
OperationIsPrinted P_OrderOperationStatusBasicAgg OperationIsPrinted
OperationIsConfirmed P_OrderOperationStatusBasicAgg OperationIsConfirmed
OperationIsPartiallyConfirmed P_OrderOperationStatusBasicAgg OperationIsPartiallyConfirmed
OperationIsDeleted P_OrderOperationStatusBasicAgg OperationIsDeleted
OperationIsTechlyCompleted P_OrderOperationStatusBasicAgg OperationIsTechlyCompleted
OperationIsClosed P_OrderOperationStatusBasicAgg OperationIsClosed
OperationIsScheduled P_OrderOperationStatusBasicAgg OperationIsScheduled
OperationIsPartiallyDelivered P_OrderOperationStatusBasicAgg OperationIsPartiallyDelivered
OperationIsDelivered P_OrderOperationStatusBasicAgg OperationIsDelivered
ProductionPlant P_MfgOrderOperationDelay ProductionPlant
WorkCenterInternalID P_MfgOrderOperationDelay WorkCenterInternalID
WorkCenterTypeCode P_MfgOrderOperationDelay WorkCenterTypeCode_2
WorkCenter
OperationControlProfile P_MfgOrderOperationDelay OperationControlProfile
BillOfOperationsType P_MfgOrderOperationDelay BillOfOperationsType
BillOfOperationsGroup P_MfgOrderOperationDelay BillOfOperationsGroup
BillOfOperationsVariant P_MfgOrderOperationDelay BillOfOperationsVariant
BillOfOperationsSequence P_MfgOrderOperationDelay BillOfOperationsSequence
BillOfOperationsVersion P_MfgOrderOperationDelay BillOfOperationsVersion
BOOOperationInternalID P_MfgOrderOperationDelay BOOOperationInternalID
OperationConfirmation P_MfgOrderOperationDelay OperationConfirmation
CapacityRequirement P_MfgOrderOperationDelay CapacityRequirement
CapacityRequirementItem P_MfgOrderOperationDelay CapacityRequirementItem
PurchasingOrganization P_MfgOrderOperationDelay PurchasingOrganization
PurchasingGroup P_MfgOrderOperationDelay PurchasingGroup
PurchaseRequisition
PurchaseRequisitionItem
PurchaseOrder
PurchaseOrderItem
PurchasingInfoRecord
PurgInfoRecdDataIsFixed P_MfgOrderOperationDelay PurgInfoRecdDataIsFixed
PurchasingInfoRecordCategory P_MfgOrderOperationDelay PurchasingInfoRecordCategory
OpExternalProcessingCurrency P_MfgOrderOperationDelay OpExternalProcessingCurrency
OpExternalProcessingPrice P_MfgOrderOperationDelay OpExternalProcessingPrice
NumberOfOperationPriceUnits P_MfgOrderOperationDelay NumberOfOperationPriceUnits
CompanyCode P_MfgOrderOperationDelay CompanyCode
BusinessArea P_MfgOrderOperationDelay BusinessArea
ControllingArea P_MfgOrderOperationDelay ControllingArea
ProfitCenter P_MfgOrderOperationDelay ProfitCenter
RequestingCostCenter P_MfgOrderOperationDelay RequestingCostCenter
CostElement P_MfgOrderOperationDelay CostElement
CostingVariant P_MfgOrderOperationDelay CostingVariant
CostingSheet P_MfgOrderOperationDelay CostingSheet
CostEstimate P_MfgOrderOperationDelay CostEstimate
ControllingObjectClass P_MfgOrderOperationDelay ControllingObjectClass
FunctionalArea P_MfgOrderOperationDelay FunctionalArea
TaxJurisdiction P_MfgOrderOperationDelay TaxJurisdiction
EmployeeWageType P_MfgOrderOperationDelay EmployeeWageType
EmployeeWageGroup P_MfgOrderOperationDelay EmployeeWageGroup
EmployeeSuitability P_MfgOrderOperationDelay EmployeeSuitability
NumberOfTimeTickets P_MfgOrderOperationDelay NumberOfTimeTickets
NumberOfEmployees P_MfgOrderOperationDelay NumberOfEmployees
OperationSetupGroupCategory P_MfgOrderOperationDelay OperationSetupGroupCategory
OperationSetupGroup P_MfgOrderOperationDelay OperationSetupGroup
OperationSetupType P_MfgOrderOperationDelay OperationSetupType
OperationOverlappingIsRequired P_MfgOrderOperationDelay OperationOverlappingIsRequired
OperationOverlappingIsPossible P_MfgOrderOperationDelay OperationOverlappingIsPossible
OperationsIsAlwaysOverlapping P_MfgOrderOperationDelay OperationsIsAlwaysOverlapping
OperationSplitIsRequired P_MfgOrderOperationDelay OperationSplitIsRequired
MaximumNumberOfSplits P_MfgOrderOperationDelay MaximumNumberOfSplits
LeadTimeReductionStrategy P_MfgOrderOperationDelay LeadTimeReductionStrategy
OpSchedldReductionLevel P_MfgOrderOperationDelay OpSchedldReductionLevel
OpErlstSchedldExecStrtDte P_MfgOrderOperationDelay OpErlstSchedldExecStrtDte
OpErlstSchedldExecStrtTme P_MfgOrderOperationDelay OpErlstSchedldExecStrtTme
OpErlstSchedldProcgStrtDte P_MfgOrderOperationDelay OpErlstSchedldProcgStrtDte
OpErlstSchedldProcgStrtTme P_MfgOrderOperationDelay OpErlstSchedldProcgStrtTme
OpErlstSchedldTrdwnStrtDte P_MfgOrderOperationDelay OpErlstSchedldTrdwnStrtDte
OpErlstSchedldTrdwnStrtTme P_MfgOrderOperationDelay OpErlstSchedldTrdwnStrtTme
OpErlstSchedldExecEndDte P_MfgOrderOperationDelay OpErlstSchedldExecEndDte
OpErlstSchedldExecEndTme P_MfgOrderOperationDelay OpErlstSchedldExecEndTme
OpLtstSchedldExecStrtDte P_MfgOrderOperationDelay OpLtstSchedldExecStrtDte
OpLtstSchedldExecStrtTme P_MfgOrderOperationDelay OpLtstSchedldExecStrtTme
OpLtstSchedldProcgStrtDte P_MfgOrderOperationDelay OpLtstSchedldProcgStrtDte
OpLtstSchedldProcgStrtTme P_MfgOrderOperationDelay OpLtstSchedldProcgStrtTme
OpLtstSchedldTrdwnStrtDte P_MfgOrderOperationDelay OpLtstSchedldTrdwnStrtDte
OpLtstSchedldTrdwnStrtTme P_MfgOrderOperationDelay OpLtstSchedldTrdwnStrtTme
OpLtstSchedldExecEndDte P_MfgOrderOperationDelay OpLtstSchedldExecEndDte
OpLtstSchedldExecEndTme P_MfgOrderOperationDelay OpLtstSchedldExecEndTme
OperationConfirmedStartDate P_MfgOrderOperationDelay OperationConfirmedStartDate
OperationConfirmedEndDate P_MfgOrderOperationDelay OperationConfirmedEndDate
OpActualExecutionStartDate P_MfgOrderOperationDelay OpActualExecutionStartDate
OpActualExecutionStartTime P_MfgOrderOperationDelay OpActualExecutionStartTime
OpActualSetupEndDate P_MfgOrderOperationDelay OpActualSetupEndDate
OpActualSetupEndTime P_MfgOrderOperationDelay OpActualSetupEndTime
OpActualProcessingStartDate P_MfgOrderOperationDelay OpActualProcessingStartDate
OpActualProcessingStartTime P_MfgOrderOperationDelay OpActualProcessingStartTime
OpActualProcessingEndDate P_MfgOrderOperationDelay OpActualProcessingEndDate
OpActualProcessingEndTime P_MfgOrderOperationDelay OpActualProcessingEndTime
OpActualTeardownStartDate P_MfgOrderOperationDelay OpActualTeardownStartDate
OpActualTeardownStartTme P_MfgOrderOperationDelay OpActualTeardownStartTme
OpActualExecutionEndDate P_MfgOrderOperationDelay OpActualExecutionEndDate
OpActualExecutionEndTime P_MfgOrderOperationDelay OpActualExecutionEndTime
SchedldFcstdEarliestStartDate P_MfgOrderOperationDelay SchedldFcstdEarliestStartDate
SchedldFcstdEarliestStartTime P_MfgOrderOperationDelay SchedldFcstdEarliestStartTime
SchedldFcstdEarliestEndDate P_MfgOrderOperationDelay SchedldFcstdEarliestEndDate
SchedldFcstdEarliestEndTime P_MfgOrderOperationDelay SchedldFcstdEarliestEndTime
LatestSchedldFcstdStartDate P_MfgOrderOperationDelay LatestSchedldFcstdStartDate
SchedldFcstdLatestStartTime P_MfgOrderOperationDelay SchedldFcstdLatestStartTime
LatestSchedldFcstdEndDate P_MfgOrderOperationDelay LatestSchedldFcstdEndDate
SchedldFcstdLatestEndTime P_MfgOrderOperationDelay SchedldFcstdLatestEndTime
EarliestScheduledWaitStartDate P_MfgOrderOperationDelay EarliestScheduledWaitStartDate
EarliestScheduledWaitStartTime P_MfgOrderOperationDelay EarliestScheduledWaitStartTime
EarliestScheduledWaitEndDate P_MfgOrderOperationDelay EarliestScheduledWaitEndDate
EarliestScheduledWaitEndTime P_MfgOrderOperationDelay EarliestScheduledWaitEndTime
LatestScheduledWaitStartDate P_MfgOrderOperationDelay LatestScheduledWaitStartDate
LatestScheduledWaitStartTime P_MfgOrderOperationDelay LatestScheduledWaitStartTime
LatestScheduledWaitEndDate P_MfgOrderOperationDelay LatestScheduledWaitEndDate
LatestScheduledWaitEndTime P_MfgOrderOperationDelay LatestScheduledWaitEndTime
ActualWorkdayDurnInSeconds ddis ActualWorkdayDurnInSeconds
PlannedWorkdayDurnInSeconds ddis PlannedWorkdayDurnInSeconds
DeviationWorkdayDurnInSeconds ddis DeviationDurationInSeconds
PlannedActualStartDateDvtnDurn P_MfgOrderOperationDelay PlannedActualStartDateDvtnDurn
PlannedActualEndDateDvtnDurn P_MfgOrderOperationDelay PlannedActualEndDateDvtnDurn
PlannedCurrentStrtDateDvtnDurn P_MfgOrderOperationDelay PlannedCurrentStrtDateDvtnDurn
PlannedCurrentEndDateDvtnDurn P_MfgOrderOperationDelay PlannedCurrentEndDateDvtnDurn
DurationUnit
StartDateOffsetReferenceCode P_MfgOrderOperationDelay StartDateOffsetReferenceCode
StartDateOffsetDurationUnit P_MfgOrderOperationDelay StartDateOffsetDurationUnit
StartDateOffsetDuration P_MfgOrderOperationDelay StartDateOffsetDuration
EndDateOffsetReferenceCode P_MfgOrderOperationDelay EndDateOffsetReferenceCode
EndDateOffsetDurationUnit P_MfgOrderOperationDelay EndDateOffsetDurationUnit
EndDateOffsetDuration P_MfgOrderOperationDelay EndDateOffsetDuration
OperationUnit P_MfgOrderOperationDelay OperationUnit
OperationReferenceQuantity P_MfgOrderOperationDelay OperationReferenceQuantity
OpPlannedTotalQuantity P_MfgOrderOperationDelay OpPlannedTotalQuantity
OpPlannedScrapQuantity P_MfgOrderOperationDelay OpPlannedScrapQuantity
OpPlannedYieldQuantity P_MfgOrderOperationDelay OpPlannedYieldQuantity
OpTotalConfirmedYieldQty P_MfgOrderOperationDelay OpTotalConfirmedYieldQty
OpTotalConfirmedScrapQty P_MfgOrderOperationDelay OpTotalConfirmedScrapQty
OperationConfirmedReworkQty P_MfgOrderOperationDelay OperationConfirmedReworkQty
ProductionUnit P_MfgOrderOperationDelay ProductionUnit
OpTotConfdYieldQtyInOrdQtyUnit P_MfgOrderOperationDelay OpTotConfdYieldQtyInOrdQtyUnit
OpWorkQuantityUnit1 OpWorkQuantityUnit1
OpConfirmedWorkQuantity1 OpConfirmedWorkQuantity1
NoFurtherOpWorkQuantity1IsExpd NoFurtherOpWorkQuantity1IsExpd
OpWorkQuantityUnit2 OpWorkQuantityUnit2
OpConfirmedWorkQuantity2 OpConfirmedWorkQuantity2
NoFurtherOpWorkQuantity2IsExpd NoFurtherOpWorkQuantity2IsExpd
OpWorkQuantityUnit3 OpWorkQuantityUnit3
OpConfirmedWorkQuantity3 OpConfirmedWorkQuantity3
NoFurtherOpWorkQuantity3IsExpd NoFurtherOpWorkQuantity3IsExpd
OpWorkQuantityUnit4 OpWorkQuantityUnit4
OpConfirmedWorkQuantity4 OpConfirmedWorkQuantity4
NoFurtherOpWorkQuantity4IsExpd NoFurtherOpWorkQuantity4IsExpd
OpWorkQuantityUnit5 OpWorkQuantityUnit5
OpConfirmedWorkQuantity5 OpConfirmedWorkQuantity5
NoFurtherOpWorkQuantity5IsExpd NoFurtherOpWorkQuantity5IsExpd
OpWorkQuantityUnit6 OpWorkQuantityUnit6
OpConfirmedWorkQuantity6 OpConfirmedWorkQuantity6
NoFurtherOpWorkQuantity6IsExpd NoFurtherOpWorkQuantity6IsExpd
WorkCenterStandardWorkQtyUnit1 WorkCenterStandardWorkQtyUnit1
WorkCenterStandardWorkQty1 WorkCenterStandardWorkQty1
CostCtrActivityType1 CostCtrActivityType1
WorkCenterStandardWorkQtyUnit2 WorkCenterStandardWorkQtyUnit2
WorkCenterStandardWorkQty2 WorkCenterStandardWorkQty2
CostCtrActivityType2 CostCtrActivityType2
WorkCenterStandardWorkQtyUnit3 WorkCenterStandardWorkQtyUnit3
WorkCenterStandardWorkQty3 WorkCenterStandardWorkQty3
CostCtrActivityType3 CostCtrActivityType3
WorkCenterStandardWorkQtyUnit4 WorkCenterStandardWorkQtyUnit4
WorkCenterStandardWorkQty4 WorkCenterStandardWorkQty4
CostCtrActivityType4 CostCtrActivityType4
WorkCenterStandardWorkQtyUnit5 WorkCenterStandardWorkQtyUnit5
WorkCenterStandardWorkQty5 WorkCenterStandardWorkQty5
CostCtrActivityType5 CostCtrActivityType5
WorkCenterStandardWorkQtyUnit6 WorkCenterStandardWorkQtyUnit6
WorkCenterStandardWorkQty6 WorkCenterStandardWorkQty6
CostCtrActivityType6 CostCtrActivityType6
BusinessProcess P_MfgOrderOperationDelay BusinessProcess
BusinessProcessEntryUnit P_MfgOrderOperationDelay BusinessProcessEntryUnit
BusinessProcessConfirmedQty P_MfgOrderOperationDelay BusinessProcessConfirmedQty
NoFurtherBusinessProcQtyIsExpd P_MfgOrderOperationDelay NoFurtherBusinessProcQtyIsExpd
_ManufacturingOrder _ManufacturingOrder
_OrderInternalID _OrderInternalID
_OrdInternalBillOfOperations P_MfgOrderOperationDelay _OrdInternalBillOfOperations
_MfgOrder P_MfgOrderOperationDelay _MfgOrder
_MfgOrderSequence P_MfgOrderOperationDelay _MfgOrderSequence
_MfgOrderCategory P_MfgOrderOperationDelay _MfgOrderCategory
_MfgOrderType P_MfgOrderOperationDelay _MfgOrderType
_OperationStandardTextCode P_MfgOrderOperationDelay _OperationStandardTextCode
_ProductionPlant P_MfgOrderOperationDelay _ProductionPlant
_ProductionSupervisor P_MfgOrderOperationDelay _ProductionSupervisor
_ProductionUnit P_MfgOrderOperationDelay _ProductionUnit
_OperationUnit P_MfgOrderOperationDelay _OperationUnit
_OperationControlProfile P_MfgOrderOperationDelay _OperationControlProfile
_BillOfOperationsType P_MfgOrderOperationDelay _BillOfOperationsType
_BillOfOperationsSequence P_MfgOrderOperationDelay _BillOfOperationsSequence
_BillOfOperationsGroup P_MfgOrderOperationDelay _BillOfOperationsGroup
_BillOfOperationsVariant P_MfgOrderOperationDelay _BillOfOperationsVariant
_BOOOperationInternalID P_MfgOrderOperationDelay _BOOOperationInternalID
_WorkCenter P_MfgOrderOperationDelay _WorkCenter_2
_WorkCenterType P_MfgOrderOperationDelay _WorkCenterType_2
_WorkCenterBySemanticKey _WorkCenterBySemanticKey
_MRPController P_MfgOrderOperationDelay _MRPController
_ResponsiblePlannerGroup P_MfgOrderOperationDelay _ResponsiblePlannerGroup
_CapacityRequirement P_MfgOrderOperationDelay _CapacityRequirement
_CapacityRequirementItem P_MfgOrderOperationDelay _CapacityRequirementItem
_OperationConfirmation P_MfgOrderOperationDelay _OperationConfirmation
_PurchasingOrganization P_MfgOrderOperationDelay _PurchasingOrganization
_PurchasingGroup P_MfgOrderOperationDelay _PurchasingGroup
_PurchaseOrder P_MfgOrderOperationDelay _PurchaseOrder
_PurchaseOrderItem P_MfgOrderOperationDelay _PurchaseOrderItem
_PurchaseRequisition
_PurchaseRequisitionItem
_PurchasingInfoRecord P_MfgOrderOperationDelay _PurchasingInfoRecord
_OpExternalProcessingCurrency P_MfgOrderOperationDelay _OpExternalProcessingCurrency
_EmployeeWageGroup P_MfgOrderOperationDelay _EmployeeWageGroup
_EmployeeSuitability P_MfgOrderOperationDelay _EmployeeSuitability
_CompanyCode P_MfgOrderOperationDelay _CompanyCode
_ProfitCenter P_MfgOrderOperationDelay _ProfitCenter
_ControllingArea P_MfgOrderOperationDelay _ControllingArea
_ControllingObjectClass P_MfgOrderOperationDelay _ControllingObjectClass
_FunctionalArea P_MfgOrderOperationDelay _FunctionalArea
_BusinessArea P_MfgOrderOperationDelay _BusinessArea
_BusinessProcess P_MfgOrderOperationDelay _BusinessProcess
_BusinessProcessEntryUnit P_MfgOrderOperationDelay _BusinessProcessEntryUnit
_OperationSetupGroupCategory P_MfgOrderOperationDelay _OperationSetupGroupCategory
_OperationSetupGroup P_MfgOrderOperationDelay _OperationSetupGroup
_OperationSetupType P_MfgOrderOperationDelay _OperationSetupType
_LeadTimeReductionStrategy P_MfgOrderOperationDelay _LeadTimeReductionStrategy
_StartDateOffsetReferenceCode P_MfgOrderOperationDelay _StartDateOffsetReferenceCode
_EndDateOffsetReferenceCode P_MfgOrderOperationDelay _EndDateOffsetReferenceCode
_Language P_MfgOrderOperationDelay _Language
_StartDate _StartDate
@AbapCatalog.sqlViewName: 'IPPMFGORDEROPC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
--@AbapCatalog.dbHints: [ {dbSystem: #HDB, hint: ['NO_JOIN_THRU_AGGR', 'NO_JOIN_THRU_JOIN'] } ] "due to new SADL ATC Prio2
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Analytics.dataCategory: #CUBE
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions: true
@ObjectModel.modelingPattern: #ANALYTICAL_CUBE
@ObjectModel.supportedCapabilities: [#ANALYTICAL_PROVIDER]
@ObjectModel.usageType: {serviceQuality: #D, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Manufacturing Order Operation - Cube'

define view I_MfgOrderOperationCube
  as select from P_MfgOrderOperationDelay     as oper     
    left outer to one join P_MfgOrderOpDayDurnInSeconds (im_clnt : $session.client) 
                                              as ddis on  ddis.sapclient                      = mandt
                                                      and ddis.ManufacturingOrder             = oper.ManufacturingOrder
                                                      and ddis.ManufacturingOrderSequence     = oper.ManufacturingOrderSequence
                                                      and ddis.ManufacturingOrderOperation    = oper.ManufacturingOrderOperation
                                                      and ddis.ManufacturingOrderSubOperation = oper.ManufacturingOrderSubOperation
                                                      and ddis.OpLtstSchedldExecStrtDte       = oper.OpLtstSchedldExecStrtDte
                                                      and ddis.OpLtstSchedldExecStrtTme       = oper.OpLtstSchedldExecStrtTme
                                                      and ddis.OpLtstSchedldExecEndDte        = oper.OpLtstSchedldExecEndDte
                                                      and ddis.OpLtstSchedldExecEndTme        = oper.OpLtstSchedldExecEndTme
                                                      and ddis.OpActualExecutionStartDate     = oper.OpActualExecutionStartDate
                                                      and ddis.OpActualExecutionStartTime     = oper.OpActualExecutionStartTime
                                                      and ddis.OpActualExecutionEndDate       = oper.OpActualExecutionEndDate
                                                      and ddis.OpActualExecutionEndTime       = oper.OpActualExecutionEndTime
                                                  
    inner join P_OrderOperationStatusBasicAgg as stat on  stat.ObjectInternalID = oper.ManufacturingObject // Status


  association [1..1] to I_CalendarDate            as _StartDate               on  $projection.OpErlstSchedldExecStrtDte = _StartDate.CalendarDate
  association [1..1] to I_ManufacturingOrder      as _ManufacturingOrder      on  $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder
  association [1..1] to I_OrderInternalID         as _OrderInternalID         on  $projection.OrderInternalBillOfOperations = _OrderInternalID.OrderInternalID
  association [0..1] to I_WorkCenterBySemanticKey as _WorkCenterBySemanticKey on  $projection.WorkCenter      = _WorkCenterBySemanticKey.WorkCenter
                                                                              and $projection.ProductionPlant = _WorkCenterBySemanticKey.Plant
{
      // Technical Key

      @ObjectModel.foreignKey.association: '_OrdInternalBillOfOperations'
  key oper.OrderInternalBillOfOperations,
  key oper.OrderIntBillOfOperationsItem,

      // Semantical Key

      @ObjectModel.foreignKey.association: '_MfgOrder'
      oper.ManufacturingOrder,
      @ObjectModel.foreignKey.association: '_MfgOrderSequence'
      oper.ManufacturingOrderSequence,
      @ObjectModel.text.element: ['MfgOrderOperationText']
      oper.ManufacturingOrderOperation,
      @ObjectModel.text.element: ['MfgOrderOperationText']
      oper.ManufacturingOrderSubOperation,

      // Order header data

      @ObjectModel.foreignKey.association: '_MfgOrderCategory'
      oper.ManufacturingOrderCategory,
      @ObjectModel.foreignKey.association: '_MfgOrderType'
      oper.ManufacturingOrderType,
      @ObjectModel.foreignKey.association: '_ProductionSupervisor'
      oper.ProductionSupervisor,
      @ObjectModel.foreignKey.association: '_MRPController'
      oper.MRPController,
      @ObjectModel.foreignKey.association: '_ResponsiblePlannerGroup'
      oper.ResponsiblePlannerGroup,
      oper.ProductConfiguration,

      // Text

      @Semantics.text: true
      oper.MfgOrderOperationText,
      oper.OperationHasLongText,
      @ObjectModel.foreignKey.association: '_Language'
      oper.Language,
      @ObjectModel.foreignKey.association: '_OperationStandardTextCode'      
      oper.OperationStandardTextCode,

      // Attributes

      oper.MfgOrderOperationIsPhase,
      oper.MfgOrderPhaseSuperiorOperation,
      oper.NumberOfCapacities,
      oper.NumberOfConfirmationSlips,
      oper.NumberOfOperationConfirmations,
      oper.OperationImportance,

      // Status

      oper.ManufacturingObject as ObjectInternalID,
      stat.OperationIsCreated,
      stat.OperationIsReleased,
      stat.OperationIsPrinted,
      stat.OperationIsConfirmed,
      stat.OperationIsPartiallyConfirmed,
      stat.OperationIsDeleted,
      stat.OperationIsTechlyCompleted,
      stat.OperationIsClosed,
      stat.OperationIsScheduled,
      stat.OperationIsPartiallyDelivered,
      stat.OperationIsDelivered,

      // Assignments

      @ObjectModel.foreignKey.association: '_ProductionPlant'
      oper.ProductionPlant,
      @ObjectModel.foreignKey.association: '_WorkCenter'
      oper.WorkCenterInternalID,
      @ObjectModel.foreignKey.association: '_WorkCenterType'   
      oper.WorkCenterTypeCode_2 as WorkCenterTypeCode,  
      @ObjectModel.foreignKey.association: '_WorkCenterBySemanticKey'
      cast(oper._WorkCenter_2.WorkCenter as pph_arbpl preserving type) as WorkCenter,
      @ObjectModel.foreignKey.association: '_OperationControlProfile'
      oper.OperationControlProfile,
      @ObjectModel.foreignKey.association: '_BillOfOperationsType'
      oper.BillOfOperationsType,
      @ObjectModel.foreignKey.association: '_BillOfOperationsGroup'
      oper.BillOfOperationsGroup,
      @ObjectModel.foreignKey.association: '_BillOfOperationsVariant'
      oper.BillOfOperationsVariant,
      @ObjectModel.foreignKey.association: '_BillOfOperationsSequence'
      oper.BillOfOperationsSequence,
      oper.BillOfOperationsVersion,
      @ObjectModel.foreignKey.association: '_BOOOperationInternalID'
      oper.BOOOperationInternalID,
      @ObjectModel.foreignKey.association: '_OperationConfirmation'
      oper.OperationConfirmation,
      @ObjectModel.foreignKey.association: '_CapacityRequirement'
      oper.CapacityRequirement,
      @ObjectModel.foreignKey.association: '_CapacityRequirementItem'
      oper.CapacityRequirementItem,

      // Assignments Purchasing

      @ObjectModel.foreignKey.association: '_PurchasingOrganization'
      oper.PurchasingOrganization,
      @ObjectModel.foreignKey.association: '_PurchasingGroup'
      oper.PurchasingGroup,
--    @ObjectModel.foreignKey.association: '_PurchaseRequisition'
      oper.PurchaseRequisition,
--    @ObjectModel.foreignKey.association: '_PurchaseRequisitionItem'
      oper.PurchaseRequisitionItem,
--    @ObjectModel.foreignKey.association: '_PurchaseOrder'
      oper.PurchaseOrder,
--    @ObjectModel.foreignKey.association: '_PurchaseOrderItem'
      oper.PurchaseOrderItem,
--    @ObjectModel.foreignKey.association: '_PurchasingInfoRecord'
      oper.PurchasingInfoRecord,
      oper.PurgInfoRecdDataIsFixed,
      oper.PurchasingInfoRecordCategory,

      // Amount and Currency

      @Semantics.currencyCode: true
      oper.OpExternalProcessingCurrency,
      @DefaultAggregation: #SUM
      @Semantics.amount.currencyCode: 'OpExternalProcessingCurrency'
      oper.OpExternalProcessingPrice,
      oper.NumberOfOperationPriceUnits,

      // Assignments FI/CO

      @ObjectModel.foreignKey.association: '_CompanyCode'
      oper.CompanyCode,
      @ObjectModel.foreignKey.association: '_BusinessArea'
      oper.BusinessArea,
      @ObjectModel.foreignKey.association: '_ControllingArea'
      oper.ControllingArea,
      oper.ProfitCenter,
      oper.RequestingCostCenter,
      oper.CostElement,
      oper.CostingVariant,
      oper.CostingSheet,
      oper.CostEstimate,
      @ObjectModel.foreignKey.association: '_ControllingObjectClass'
      oper.ControllingObjectClass,
      @ObjectModel.foreignKey.association: '_FunctionalArea'
      oper.FunctionalArea,
      oper.TaxJurisdiction,
      
      // Assignments HR

      oper.EmployeeWageType,
      @ObjectModel.foreignKey.association: '_EmployeeWageGroup'
      oper.EmployeeWageGroup,
      @ObjectModel.foreignKey.association: '_EmployeeSuitability'
      oper.EmployeeSuitability,
      oper.NumberOfTimeTickets,
      oper.NumberOfEmployees,

      // Setup and Overlapping

      @ObjectModel.foreignKey.association: '_OperationSetupGroupCategory'      
      oper.OperationSetupGroupCategory,
      @ObjectModel.foreignKey.association: '_OperationSetupGroup'
      oper.OperationSetupGroup,
      @ObjectModel.foreignKey.association: '_OperationSetupType'
      oper.OperationSetupType,
      oper.OperationOverlappingIsRequired,
      oper.OperationOverlappingIsPossible,
      oper.OperationsIsAlwaysOverlapping,
      oper.OperationSplitIsRequired,
      oper.MaximumNumberOfSplits,
      @ObjectModel.foreignKey.association: '_LeadTimeReductionStrategy'
      oper.LeadTimeReductionStrategy,
      oper.OpSchedldReductionLevel,

      // Dates and Times

      @Semantics.calendarItem.dtStart: true
      oper.OpErlstSchedldExecStrtDte,
      oper.OpErlstSchedldExecStrtTme,
      @Semantics.calendarItem.dtStart: true
      oper.OpErlstSchedldProcgStrtDte,
      oper.OpErlstSchedldProcgStrtTme,
      @Semantics.calendarItem.dtStart: true
      oper.OpErlstSchedldTrdwnStrtDte,
      oper.OpErlstSchedldTrdwnStrtTme,
      @Semantics.calendarItem.dtEnd: true
      oper.OpErlstSchedldExecEndDte,
      oper.OpErlstSchedldExecEndTme,
      @Semantics.calendarItem.dtStart: true
      oper.OpLtstSchedldExecStrtDte,
      oper.OpLtstSchedldExecStrtTme,
      @Semantics.calendarItem.dtStart: true
      oper.OpLtstSchedldProcgStrtDte,
      oper.OpLtstSchedldProcgStrtTme,
      @Semantics.calendarItem.dtStart: true
      oper.OpLtstSchedldTrdwnStrtDte,
      oper.OpLtstSchedldTrdwnStrtTme,
      @Semantics.calendarItem.dtEnd: true
      oper.OpLtstSchedldExecEndDte,
      oper.OpLtstSchedldExecEndTme,
      @Semantics.calendarItem.dtStart: true
      oper.OperationConfirmedStartDate,
      oper.OperationConfirmedEndDate,
      @Semantics.calendarItem.dtStart: true
      oper.OpActualExecutionStartDate,
      oper.OpActualExecutionStartTime,
      @Semantics.calendarItem.dtEnd: true
      oper.OpActualSetupEndDate,
      oper.OpActualSetupEndTime,
      @Semantics.calendarItem.dtStart: true
      oper.OpActualProcessingStartDate,
      oper.OpActualProcessingStartTime,
      @Semantics.calendarItem.dtEnd: true
      oper.OpActualProcessingEndDate,
      oper.OpActualProcessingEndTime,
      @Semantics.calendarItem.dtStart: true
      oper.OpActualTeardownStartDate,
      oper.OpActualTeardownStartTme,
      @Semantics.calendarItem.dtEnd: true
      oper.OpActualExecutionEndDate,
      oper.OpActualExecutionEndTime,
      // Forecast Dates and Times

      @Semantics.calendarItem.dtEnd: true
      oper.ActualForecastEndDate,
      oper.ActualForecastEndTime,
      @Semantics.calendarItem.dtStart: true
      oper.SchedldFcstdEarliestStartDate,
      oper.SchedldFcstdEarliestStartTime,
      @Semantics.calendarItem.dtEnd: true
      oper.SchedldFcstdEarliestEndDate,
      oper.SchedldFcstdEarliestEndTime,
      @Semantics.calendarItem.dtStart: true
      oper.LatestSchedldFcstdStartDate,
      oper.SchedldFcstdLatestStartTime,
      @Semantics.calendarItem.dtEnd: true
      oper.LatestSchedldFcstdEndDate,
      oper.SchedldFcstdLatestEndTime,
      // Wait Date and Times

      @Semantics.calendarItem.dtStart: true
      oper.EarliestScheduledWaitStartDate,
      oper.EarliestScheduledWaitStartTime,
      @Semantics.calendarItem.dtEnd: true
      oper.EarliestScheduledWaitEndDate,
      oper.EarliestScheduledWaitEndTime,
      @Semantics.calendarItem.dtStart: true
      oper.LatestScheduledWaitStartDate,
      oper.LatestScheduledWaitStartTime,
      @Semantics.calendarItem.dtEnd: true
      oper.LatestScheduledWaitEndDate,
      oper.LatestScheduledWaitEndTime,

      // Durations

      @Semantics.calendarItem.duration: true
      ddis.ActualWorkdayDurnInSeconds     as ActualWorkdayDurnInSeconds,
      @Semantics.calendarItem.duration: true
      ddis.PlannedWorkdayDurnInSeconds    as PlannedWorkdayDurnInSeconds,
      @Semantics.calendarItem.duration: true
      ddis.DeviationDurationInSeconds     as DeviationWorkdayDurnInSeconds,

      // former TF content is replaced by SQL function in P_MfgOrderOperationDelay view

      @Semantics.calendarItem.duration: true
      oper.PlannedActualStartDateDvtnDurn,
      @Semantics.calendarItem.duration: true
      oper.PlannedActualEndDateDvtnDurn,
      @Semantics.calendarItem.duration: true
      oper.PlannedCurrentStrtDateDvtnDurn,
      @Semantics.calendarItem.duration: true
      oper.PlannedCurrentEndDateDvtnDurn, 

      // Duration Unit calculation

      @Semantics.unitOfMeasure: true
      case 
        when ddis.ActualWorkdayDurnInSeconds < 60        then cast('S'   as actualdurationunit)
        when ddis.ActualWorkdayDurnInSeconds < 3600      then cast('MIN' as actualdurationunit)
        when ddis.ActualWorkdayDurnInSeconds < 86400     then cast('STD' as actualdurationunit)
        when ddis.ActualWorkdayDurnInSeconds < 604800    then cast('TAG' as actualdurationunit)
        when ddis.ActualWorkdayDurnInSeconds < 2592000   then cast('WCH' as actualdurationunit)    
        when ddis.ActualWorkdayDurnInSeconds < 31536000  then cast('MON' as actualdurationunit)        
        else cast('JHR' as actualdurationunit)      
      end as ActualDurationUnit,

      @Semantics.unitOfMeasure: true
      case
        when ddis.PlannedWorkdayDurnInSeconds < 60        then cast('S'   as planneddurationunit)
        when ddis.PlannedWorkdayDurnInSeconds < 3600      then cast('MIN' as planneddurationunit)
        when ddis.PlannedWorkdayDurnInSeconds < 86400     then cast('STD' as planneddurationunit)
        when ddis.PlannedWorkdayDurnInSeconds < 604800    then cast('TAG' as planneddurationunit)
        when ddis.PlannedWorkdayDurnInSeconds < 2592000   then cast('WCH' as planneddurationunit)    
        when ddis.PlannedWorkdayDurnInSeconds < 31536000  then cast('MON' as planneddurationunit)        
        else cast('JHR' as planneddurationunit)      
      end as PlannedDurationUnit,

      @Semantics.unitOfMeasure: true
      case 
        when ddis.DeviationDurationInSecondsABS < 60        then cast('S'   as deviationdurationunit)
        when ddis.DeviationDurationInSecondsABS < 3600      then cast('MIN' as deviationdurationunit)
        when ddis.DeviationDurationInSecondsABS < 86400     then cast('STD' as deviationdurationunit)
        when ddis.DeviationDurationInSecondsABS < 604800    then cast('TAG' as deviationdurationunit)
        when ddis.DeviationDurationInSecondsABS < 2592000   then cast('WCH' as deviationdurationunit)    
        when ddis.DeviationDurationInSecondsABS < 31536000  then cast('MON' as deviationdurationunit)        
        else cast('JHR' as deviationdurationunit)      
      end as DeviationDurationUnit,

      @Semantics.unitOfMeasure: true
      cast('S' as durationunit) as DurationUnit,  //always in seconds


      // Offset

      @ObjectModel.foreignKey.association: '_StartDateOffsetReferenceCode'
      oper.StartDateOffsetReferenceCode,
      @Semantics.unitOfMeasure: true
      oper.StartDateOffsetDurationUnit,
      @Semantics.calendarItem.duration: true
      oper.StartDateOffsetDuration,
      @ObjectModel.foreignKey.association: '_EndDateOffsetReferenceCode'  
      oper.EndDateOffsetReferenceCode,
      @Semantics.unitOfMeasure: true
      oper.EndDateOffsetDurationUnit,
      @Semantics.calendarItem.duration: true
      oper.EndDateOffsetDuration,

      // Quantities and UoM

      @Semantics.unitOfMeasure: true
      oper.OperationUnit,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #MAX
      oper.OperationReferenceQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #SUM
      oper.OpPlannedTotalQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #SUM
      oper.OpPlannedScrapQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #SUM
      oper.OpPlannedYieldQuantity,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #SUM
      oper.OpTotalConfirmedYieldQty,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #SUM
      oper.OpTotalConfirmedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #SUM
      oper.OperationConfirmedReworkQty,
      @Semantics.quantity.unitOfMeasure: 'OperationUnit'
      @DefaultAggregation: #MAX
      cast( case stat.OperationIsConfirmed
        when 'X' then (oper.OpTotalConfirmedYieldQty - oper.OpPlannedYieldQuantity)
        else 0
      end as opyielddeviationqty) as OperationYieldDeviationQty,
      @Semantics.unitOfMeasure: true
      oper.ProductionUnit,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @DefaultAggregation: #SUM
      oper.OpTotConfdYieldQtyInOrdQtyUnit,

      // Confirmed Work Quantities and UoM

      @Semantics.unitOfMeasure: true
      OpWorkQuantityUnit1,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit1'
      @DefaultAggregation: #SUM
      OpConfirmedWorkQuantity1,
      NoFurtherOpWorkQuantity1IsExpd,
      @Semantics.unitOfMeasure: true
      OpWorkQuantityUnit2,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit2'
      @DefaultAggregation: #SUM
      OpConfirmedWorkQuantity2,
      NoFurtherOpWorkQuantity2IsExpd,
      @Semantics.unitOfMeasure: true
      OpWorkQuantityUnit3,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit3'
      @DefaultAggregation: #SUM
      OpConfirmedWorkQuantity3,
      NoFurtherOpWorkQuantity3IsExpd,
      @Semantics.unitOfMeasure: true
      OpWorkQuantityUnit4,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit4'
      @DefaultAggregation: #SUM
      OpConfirmedWorkQuantity4,
      NoFurtherOpWorkQuantity4IsExpd,
      @Semantics.unitOfMeasure: true
      OpWorkQuantityUnit5,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit5'
      @DefaultAggregation: #SUM
      OpConfirmedWorkQuantity5,
      NoFurtherOpWorkQuantity5IsExpd,
      @Semantics.unitOfMeasure: true
      OpWorkQuantityUnit6,
      @Semantics.quantity.unitOfMeasure: 'OpWorkQuantityUnit6'
      @DefaultAggregation: #SUM
      OpConfirmedWorkQuantity6,
      NoFurtherOpWorkQuantity6IsExpd,

      // Work Quantities and UoM

      @Semantics.unitOfMeasure: true
      WorkCenterStandardWorkQtyUnit1,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit1'
      @DefaultAggregation: #SUM
      WorkCenterStandardWorkQty1,
      CostCtrActivityType1,
      @Semantics.unitOfMeasure: true
      WorkCenterStandardWorkQtyUnit2,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit2'
      @DefaultAggregation: #SUM
      WorkCenterStandardWorkQty2,
      CostCtrActivityType2,
      @Semantics.unitOfMeasure: true
      WorkCenterStandardWorkQtyUnit3,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit3'
      @DefaultAggregation: #SUM
      WorkCenterStandardWorkQty3,
      CostCtrActivityType3,
      @Semantics.unitOfMeasure: true
      WorkCenterStandardWorkQtyUnit4,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit4'
      @DefaultAggregation: #SUM
      WorkCenterStandardWorkQty4,
      CostCtrActivityType4,
      @Semantics.unitOfMeasure: true
      WorkCenterStandardWorkQtyUnit5,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit5'
      @DefaultAggregation: #SUM
      WorkCenterStandardWorkQty5,
      CostCtrActivityType5,
      @Semantics.unitOfMeasure: true
      WorkCenterStandardWorkQtyUnit6,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit6'
      @DefaultAggregation: #SUM
      WorkCenterStandardWorkQty6,
      CostCtrActivityType6,

      // Forecast Work Quantities

      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit1'
      @DefaultAggregation: #SUM
      ForecastWorkQuantity1,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit2'      
      @DefaultAggregation: #SUM
      ForecastWorkQuantity2,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit3'
      @DefaultAggregation: #SUM
      ForecastWorkQuantity3,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit4'
      @DefaultAggregation: #SUM
      ForecastWorkQuantity4,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit5'
      @DefaultAggregation: #SUM
      ForecastWorkQuantity5,
      @Semantics.quantity.unitOfMeasure: 'WorkCenterStandardWorkQtyUnit6'
      @DefaultAggregation: #SUM
      ForecastWorkQuantity6,

      // Business Process

      @ObjectModel.foreignKey.association: '_BusinessProcess'
      oper.BusinessProcess,
      @Semantics.unitOfMeasure: true
      oper.BusinessProcessEntryUnit,
      @Semantics.quantity.unitOfMeasure: 'BusinessProcessEntryUnit'
      @DefaultAggregation: #SUM
      oper.BusinessProcessConfirmedQty,
      oper.NoFurtherBusinessProcQtyIsExpd,

      // Associations

      _ManufacturingOrder,
      _OrderInternalID,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_OrderInternalID'
      oper._OrdInternalBillOfOperations,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_ManufacturingOrder'
      oper._MfgOrder,
      oper._MfgOrderSequence,
      oper._MfgOrderCategory,
      oper._MfgOrderType,
      oper._OperationStandardTextCode,
      oper._ProductionPlant,
      oper._ProductionSupervisor,
      oper._ProductionUnit,
      oper._OperationUnit,
      oper._OperationControlProfile,
      oper._BillOfOperationsType,
      oper._BillOfOperationsSequence,
      oper._BillOfOperationsGroup,
      oper._BillOfOperationsVariant,
      oper._BOOOperationInternalID,
      oper._WorkCenter_2 as _WorkCenter,
      oper._WorkCenterType_2 as _WorkCenterType,
      _WorkCenterBySemanticKey,
      oper._MRPController,
      oper._ResponsiblePlannerGroup,
      oper._CapacityRequirement,
      oper._CapacityRequirementItem,
      oper._OperationConfirmation,
      oper._PurchasingOrganization,
      oper._PurchasingGroup,
      oper._PurchaseOrder,
      oper._PurchaseOrderItem,
--    oper._PurchaseRequisition,
--    oper._PurchaseRequisitionItem,
      oper._PurchasingInfoRecord,
      oper._OpExternalProcessingCurrency,
      oper._EmployeeWageGroup,
      oper._EmployeeSuitability,
      oper._CompanyCode,
      oper._ProfitCenter,
      oper._ControllingArea,
      oper._ControllingObjectClass,
      oper._FunctionalArea,
      oper._BusinessArea,
      oper._BusinessProcess,
      oper._BusinessProcessEntryUnit,
      oper._OperationSetupGroupCategory,
      oper._OperationSetupGroup,
      oper._OperationSetupType,
      oper._LeadTimeReductionStrategy,
      oper._StartDateOffsetReferenceCode,
      oper._EndDateOffsetReferenceCode,
      oper._Language,
      _StartDate
}
where oper.OperationIsToBeDeleted = ''; //Non-deleted operations only

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_WORKCENTER",
"P_MFGORDEROPERATIONDELAY",
"P_ORDEROPERATIONSTATUSBASICAGG"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONS",
"I_BILLOFOPERATIONSGROUP",
"I_BILLOFOPERATIONSSEQUENCE",
"I_BILLOFOPERATIONSTYPE",
"I_BOOOPERATIONINTERNALID",
"I_BUSINESSAREA",
"I_BUSINESSPROCESS",
"I_CALENDARDATE",
"I_CAPACITYREQUIREMENT",
"I_CAPACITYREQUIREMENTITEM",
"I_COMPANYCODE",
"I_CONFIRMATIONGROUP",
"I_CONTROLLINGAREA",
"I_CONTROLLINGOBJECTCLASS",
"I_CURRENCY",
"I_EMPLOYEESUITABILITY",
"I_EMPLOYEEWAGEGROUP",
"I_FUNCTIONALAREA",
"I_LANGUAGE",
"I_LEADTIMEREDUCTIONSTRATEGY",
"I_MANUFACTURINGORDER",
"I_MFGORDER",
"I_MFGORDERCATEGORY",
"I_MFGORDERSEQUENCE",
"I_MFGORDERTYPE",
"I_MRPCONTROLLER",
"I_OPERATIONCONTROLPROFILE",
"I_OPERATIONDATEOFFSETREFCODE",
"I_OPERATIONSETUPGROUP",
"I_OPERATIONSETUPGROUPCATEGORY",
"I_OPERATIONSETUPTYPE",
"I_OPERATIONSTANDARDTEXT",
"I_ORDERINTERNALID",
"I_ORDINTERNALBILLOFOPERATIONS",
"I_PLANT",
"I_PRODUCTIONSUPERVISOR",
"I_PROFITCENTER",
"I_PURCHASEORDERAPI01",
"I_PURCHASEORDERITEMAPI01",
"I_PURCHASINGGROUP",
"I_PURCHASINGINFORECORDAPI01",
"I_PURCHASINGORGANIZATION",
"I_RESPONSIBLEPLANNERGROUP",
"I_UNITOFMEASURE",
"I_WORKCENTER",
"I_WORKCENTERBYSEMANTICKEY",
"I_WORKCENTERTYPE"
],
"BASE":
[
"P_MFGORDEROPERATIONDELAY"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/