P_MFGORDEROPERATIONDELAY

CDS View

Manufacturing Order Operation Delay

P_MFGORDEROPERATIONDELAY is a CDS View in S/4HANA. Manufacturing Order Operation Delay. It contains 282 fields. 2 CDS views read from this table.

CDS Views using this table (2)

ViewTypeJoinVDMDescription
I_MfgOrderOperationCube view from COMPOSITE Manufacturing Order Operation - Cube
I_MfgOrderOperationDelay view from COMPOSITE Manufacturing Order Operation Delay Information

Fields (282)

KeyField CDS FieldsUsed in Views
KEY OrderIntBillOfOperationsItem OrderIntBillOfOperationsItem 2
KEY OrderInternalBillOfOperations OrderInternalBillOfOperations 2
_BillOfOperationsGroup _BillOfOperationsGroup 2
_BillOfOperationsSequence _BillOfOperationsSequence 2
_BillOfOperationsType _BillOfOperationsType 2
_BillOfOperationsVariant _BillOfOperationsVariant 2
_BOOOperationInternalID _BOOOperationInternalID 2
_BusinessArea _BusinessArea 2
_BusinessProcess _BusinessProcess 2
_BusinessProcessEntryUnit _BusinessProcessEntryUnit 2
_CapacityRequirement _CapacityRequirement 2
_CapacityRequirementItem _CapacityRequirementItem 2
_CompanyCode _CompanyCode 2
_ControllingArea _ControllingArea 2
_ControllingObjectClass _ControllingObjectClass 2
_EmployeeSuitability _EmployeeSuitability 2
_EmployeeWageGroup _EmployeeWageGroup 2
_EndDateOffsetReferenceCode _EndDateOffsetReferenceCode 2
_FunctionalArea _FunctionalArea 2
_Language _Language 2
_LeadTimeReductionStrategy _LeadTimeReductionStrategy 2
_LongText _LongText 1
_MfgOrder _MfgOrder 2
_MfgOrderCategory _MfgOrderCategory 2
_MfgOrderSequence _MfgOrderSequence 2
_MfgOrderType _MfgOrderType 2
_MRPController _MRPController 2
_OperationConfirmation _OperationConfirmation 2
_OperationControlProfile _OperationControlProfile 2
_OperationSetupGroup _OperationSetupGroup 2
_OperationSetupGroupCategory _OperationSetupGroupCategory 2
_OperationSetupType _OperationSetupType 2
_OperationStandardTextCode _OperationStandardTextCode 2
_OperationUnit _OperationUnit 2
_OpExternalProcessingCurrency _OpExternalProcessingCurrency 2
_OrdInternalBillOfOperations _OrdInternalBillOfOperations 2
_ProduceOpActyNtwkInstance _ProduceOpActyNtwkInstance 1
_ProductionPlant _ProductionPlant 2
_ProductionSupervisor _ProductionSupervisor 2
_ProductionUnit _ProductionUnit 2
_ProfitCenter _ProfitCenter 2
_PurchaseOrder _PurchaseOrder 2
_PurchaseOrderItem _PurchaseOrderItem 2
_PurchasingGroup _PurchasingGroup 2
_PurchasingInfoRecord _PurchasingInfoRecord 2
_PurchasingOrganization _PurchasingOrganization 2
_ResponsiblePlannerGroup _ResponsiblePlannerGroup 2
_SetupOpActyNtwkInstance _SetupOpActyNtwkInstance 1
_StartDateOffsetReferenceCode _StartDateOffsetReferenceCode 2
_TeardownOpActyNtwkInstance _TeardownOpActyNtwkInstance 1
_WorkCenter _WorkCenter 1
_WorkCenter_2 _WorkCenter,_WorkCenter_2 2
_WorkCenterType _WorkCenterType 1
_WorkCenterType_2 _WorkCenterType,_WorkCenterType_2 2
ActualForecastDuration ActualForecastDuration 1
ActualForecastDurationUnit ActualForecastDurationUnit 1
ActualForecastEndDate ActualForecastEndDate 2
ActualForecastEndTime ActualForecastEndTime 2
BillOfOperationsGroup BillOfOperationsGroup 2
BillOfOperationsSequence BillOfOperationsSequence 2
BillOfOperationsType BillOfOperationsType 2
BillOfOperationsVariant BillOfOperationsVariant 2
BillOfOperationsVersion BillOfOperationsVersion 2
BOOOperationInternalID BOOOperationInternalID 2
BreakDurationUnit BreakDurationUnit 1
BusinessArea BusinessArea 2
BusinessProcess BusinessProcess 2
BusinessProcessConfirmedQty BusinessProcessConfirmedQty 2
BusinessProcessEntryUnit BusinessProcessEntryUnit 2
CapacityRequirement CapacityRequirement 2
CapacityRequirementItem CapacityRequirementItem 2
CompanyCode CompanyCode 2
ConfirmedBreakDuration ConfirmedBreakDuration 1
ControllingArea ControllingArea 2
ControllingObjectClass ControllingObjectClass 2
CostCtrActivityType1 CostCtrActivityType1 2
CostCtrActivityType2 CostCtrActivityType2 2
CostCtrActivityType3 CostCtrActivityType3 2
CostCtrActivityType4 CostCtrActivityType4 2
CostCtrActivityType5 CostCtrActivityType5 2
CostCtrActivityType6 CostCtrActivityType6 2
CostElement CostElement 2
CostEstimate CostEstimate 2
CostingSheet CostingSheet 2
CostingVariant CostingVariant 2
EarliestScheduledWaitEndDate EarliestScheduledWaitEndDate 1
EarliestScheduledWaitEndTime EarliestScheduledWaitEndTime 1
EarliestScheduledWaitStartDate EarliestScheduledWaitStartDate 1
EarliestScheduledWaitStartTime EarliestScheduledWaitStartTime 1
EmployeeSuitability EmployeeSuitability 2
EmployeeWageGroup EmployeeWageGroup 2
EmployeeWageType EmployeeWageType 2
EndDateOffsetDuration EndDateOffsetDuration 2
EndDateOffsetDurationUnit EndDateOffsetDurationUnit 2
EndDateOffsetReferenceCode EndDateOffsetReferenceCode 2
ForecastProcessingDuration ForecastProcessingDuration 1
ForecastProcessingDurationUnit ForecastProcessingDurationUnit 1
ForecastWorkQuantity1 ForecastWorkQuantity1 2
ForecastWorkQuantity2 ForecastWorkQuantity2 2
ForecastWorkQuantity3 ForecastWorkQuantity3 2
ForecastWorkQuantity4 ForecastWorkQuantity4 2
ForecastWorkQuantity5 ForecastWorkQuantity5 2
ForecastWorkQuantity6 ForecastWorkQuantity6 2
FunctionalArea FunctionalArea 2
GoodsRecipientName GoodsRecipientName 1
Language Language 2
LatestSchedldFcstdEndDate LatestSchedldFcstdEndDate 2
LatestSchedldFcstdStartDate LatestSchedldFcstdStartDate 2
LatestScheduledWaitEndDate LatestScheduledWaitEndDate 1
LatestScheduledWaitEndTime LatestScheduledWaitEndTime 1
LatestScheduledWaitStartDate LatestScheduledWaitStartDate 1
LatestScheduledWaitStartTime LatestScheduledWaitStartTime 1
LeadTimeReductionStrategy LeadTimeReductionStrategy 2
ManufacturingObject ManufacturingObject,ObjectInternalID 2
ManufacturingOrder ManufacturingOrder 2
ManufacturingOrderCategory ManufacturingOrderCategory 2
ManufacturingOrderOperation ManufacturingOrderOperation 2
ManufacturingOrderSequence ManufacturingOrderSequence 2
ManufacturingOrderSubOperation ManufacturingOrderSubOperation 2
ManufacturingOrderType ManufacturingOrderType 2
MaximumNumberOfSplits MaximumNumberOfSplits 2
MaximumWaitDuration MaximumWaitDuration 1
MaximumWaitDurationUnit MaximumWaitDurationUnit 1
MfgOrderOperationIsPhase MfgOrderOperationIsPhase 2
MfgOrderOperationText MfgOrderOperationText 2
MfgOrderPhaseSuperiorOperation MfgOrderPhaseSuperiorOperation 2
MinimumDuration MinimumDuration 1
MinimumDurationUnit MinimumDurationUnit 1
MinimumMoveDuration MinimumMoveDuration 1
MinimumMoveDurationUnit MinimumMoveDurationUnit 1
MinimumProcessingDuration MinimumProcessingDuration 1
MinimumProcessingDurationUnit MinimumProcessingDurationUnit 1
MinimumQueueDuration MinimumQueueDuration 1
MinimumQueueDurationUnit MinimumQueueDurationUnit 1
MinimumWaitDuration MinimumWaitDuration 1
MinimumWaitDurationUnit MinimumWaitDurationUnit 1
MRPController MRPController 2
NoFurtherBusinessProcQtyIsExpd NoFurtherBusinessProcQtyIsExpd 2
NoFurtherOpWorkQuantity1IsExpd NoFurtherOpWorkQuantity1IsExpd 2
NoFurtherOpWorkQuantity2IsExpd NoFurtherOpWorkQuantity2IsExpd 2
NoFurtherOpWorkQuantity3IsExpd NoFurtherOpWorkQuantity3IsExpd 2
NoFurtherOpWorkQuantity4IsExpd NoFurtherOpWorkQuantity4IsExpd 2
NoFurtherOpWorkQuantity5IsExpd NoFurtherOpWorkQuantity5IsExpd 2
NoFurtherOpWorkQuantity6IsExpd NoFurtherOpWorkQuantity6IsExpd 2
NumberOfCapacities NumberOfCapacities 2
NumberOfConfirmationSlips NumberOfConfirmationSlips 2
NumberOfEmployees NumberOfEmployees 2
NumberOfOperationConfirmations NumberOfOperationConfirmations 2
NumberOfOperationPriceUnits NumberOfOperationPriceUnits 2
NumberOfTimeTickets NumberOfTimeTickets 2
OpActualExecutionEndDate OpActualExecutionEndDate 2
OpActualExecutionEndTime OpActualExecutionEndTime 2
OpActualExecutionStartDate OpActualExecutionStartDate 2
OpActualExecutionStartTime OpActualExecutionStartTime 2
OpActualProcessingEndDate OpActualProcessingEndDate 2
OpActualProcessingEndTime OpActualProcessingEndTime 2
OpActualProcessingStartDate OpActualProcessingStartDate 2
OpActualProcessingStartTime OpActualProcessingStartTime 2
OpActualSetupEndDate OpActualSetupEndDate 2
OpActualSetupEndTime OpActualSetupEndTime 2
OpActualTeardownStartDate OpActualTeardownStartDate 2
OpActualTeardownStartTme OpActualTeardownStartTme 2
OpConfirmedWorkQuantity1 OpConfirmedWorkQuantity1 2
OpConfirmedWorkQuantity2 OpConfirmedWorkQuantity2 2
OpConfirmedWorkQuantity3 OpConfirmedWorkQuantity3 2
OpConfirmedWorkQuantity4 OpConfirmedWorkQuantity4 2
OpConfirmedWorkQuantity5 OpConfirmedWorkQuantity5 2
OpConfirmedWorkQuantity6 OpConfirmedWorkQuantity6 2
OperationConfirmation OperationConfirmation 2
OperationConfirmedEndDate OperationConfirmedEndDate 2
OperationConfirmedReworkQty OperationConfirmedReworkQty 2
OperationConfirmedStartDate OperationConfirmedStartDate 2
OperationControlProfile OperationControlProfile 2
OperationHasLongText OperationHasLongText 1
OperationImportance OperationImportance 2
OperationOverlappingIsPossible OperationOverlappingIsPossible 2
OperationOverlappingIsRequired OperationOverlappingIsRequired 2
OperationReferenceQuantity OperationReferenceQuantity 2
OperationSetupGroup OperationSetupGroup 2
OperationSetupGroupCategory OperationSetupGroupCategory 2
OperationSetupType OperationSetupType 2
OperationsIsAlwaysOverlapping OperationsIsAlwaysOverlapping 2
OperationSplitIsRequired OperationSplitIsRequired 2
OperationStandardDuration OperationStandardDuration 1
OperationStandardDurationUnit OperationStandardDurationUnit 1
OperationStandardTextCode OperationStandardTextCode 2
OperationUnit OperationUnit 2
OpErlstSchedldExecEndDte OpErlstSchedldExecEndDte 2
OpErlstSchedldExecEndTme OpErlstSchedldExecEndTme 2
OpErlstSchedldExecStrtDte OpErlstSchedldExecStrtDte 2
OpErlstSchedldExecStrtTme OpErlstSchedldExecStrtTme 2
OpErlstSchedldProcgStrtDte OpErlstSchedldProcgStrtDte 2
OpErlstSchedldProcgStrtTme OpErlstSchedldProcgStrtTme 2
OpErlstSchedldTrdwnStrtDte OpErlstSchedldTrdwnStrtDte 2
OpErlstSchedldTrdwnStrtTme OpErlstSchedldTrdwnStrtTme 2
OpExternalProcessingCurrency OpExternalProcessingCurrency 2
OpExternalProcessingPrice OpExternalProcessingPrice 2
OpExternalProcessingPriceUnit OpExternalProcessingPriceUnit 1
OpLtstSchedldExecEndDte OpLtstSchedldExecEndDte 2
OpLtstSchedldExecEndTme OpLtstSchedldExecEndTme 2
OpLtstSchedldExecStrtDte OpLtstSchedldExecStrtDte 2
OpLtstSchedldExecStrtTme OpLtstSchedldExecStrtTme 2
OpLtstSchedldProcgStrtDte OpLtstSchedldProcgStrtDte 2
OpLtstSchedldProcgStrtTme OpLtstSchedldProcgStrtTme 2
OpLtstSchedldTrdwnStrtDte OpLtstSchedldTrdwnStrtDte 2
OpLtstSchedldTrdwnStrtTme OpLtstSchedldTrdwnStrtTme 2
OpPlannedProcessingDurn OpPlannedProcessingDurn 1
OpPlannedProcessingDurnUnit OpPlannedProcessingDurnUnit 1
OpPlannedScrapQuantity OpPlannedScrapQuantity 2
OpPlannedSetupDurn OpPlannedSetupDurn 1
OpPlannedSetupDurnUnit OpPlannedSetupDurnUnit 1
OpPlannedTeardownDurn OpPlannedTeardownDurn 1
OpPlannedTeardownDurnUnit OpPlannedTeardownDurnUnit 1
OpPlannedTotalQuantity OpPlannedTotalQuantity 2
OpPlannedYieldQuantity OpPlannedYieldQuantity 2
OpSchedldReductionLevel OpSchedldReductionLevel 2
OpTotalConfirmedScrapQty OpTotalConfirmedScrapQty 2
OpTotalConfirmedYieldQty OpTotalConfirmedYieldQty 2
OpTotConfdYieldQtyInOrdQtyUnit OpTotConfdYieldQtyInOrdQtyUnit 2
OpWorkQuantityUnit1 OpWorkQuantityUnit1 2
OpWorkQuantityUnit2 OpWorkQuantityUnit2 2
OpWorkQuantityUnit3 OpWorkQuantityUnit3 2
OpWorkQuantityUnit4 OpWorkQuantityUnit4 2
OpWorkQuantityUnit5 OpWorkQuantityUnit5 2
OpWorkQuantityUnit6 OpWorkQuantityUnit6 2
OverlapMinimumDuration OverlapMinimumDuration 1
OverlapMinimumDurationUnit OverlapMinimumDurationUnit 1
PlannedActualEndDateDvtnDurn PlannedActualEndDateDvtnDurn 2
PlannedActualStartDateDvtnDurn PlannedActualStartDateDvtnDurn 2
PlannedBreakDuration PlannedBreakDuration 1
PlannedCurrentEndDateDvtnDurn PlannedCurrentEndDateDvtnDurn 2
PlannedCurrentStrtDateDvtnDurn PlannedCurrentStrtDateDvtnDurn 2
PlannedDeliveryDuration PlannedDeliveryDuration 1
ProductConfiguration ProductConfiguration 2
ProductionPlant ProductionPlant 2
ProductionSupervisor ProductionSupervisor 2
ProductionUnit ProductionUnit 2
ProfitCenter ProfitCenter 2
PurchasingGroup PurchasingGroup 2
PurchasingInfoRecordCategory PurchasingInfoRecordCategory 2
PurchasingOrganization PurchasingOrganization 2
PurgInfoRecdDataIsFixed PurgInfoRecdDataIsFixed 2
RequestingCostCenter RequestingCostCenter 2
ResponsiblePlannerGroup ResponsiblePlannerGroup 2
SchedldFcstdEarliestEndDate SchedldFcstdEarliestEndDate 2
SchedldFcstdEarliestEndTime SchedldFcstdEarliestEndTime 2
SchedldFcstdEarliestStartDate SchedldFcstdEarliestStartDate 2
SchedldFcstdEarliestStartTime SchedldFcstdEarliestStartTime 2
SchedldFcstdLatestEndTime SchedldFcstdLatestEndTime 2
SchedldFcstdLatestStartTime SchedldFcstdLatestStartTime 2
ScheduledMoveDuration ScheduledMoveDuration 1
ScheduledMoveDurationUnit ScheduledMoveDurationUnit 1
ScheduledQueueDuration ScheduledQueueDuration 1
ScheduledQueueDurationUnit ScheduledQueueDurationUnit 1
ScheduledWaitDuration ScheduledWaitDuration 1
ScheduledWaitDurationUnit ScheduledWaitDurationUnit 1
StandardMoveDuration StandardMoveDuration 1
StandardMoveDurationUnit StandardMoveDurationUnit 1
StandardQueueDuration StandardQueueDuration 1
StandardQueueDurationUnit StandardQueueDurationUnit 1
StartDateOffsetDuration StartDateOffsetDuration 2
StartDateOffsetDurationUnit StartDateOffsetDurationUnit 2
StartDateOffsetReferenceCode StartDateOffsetReferenceCode 2
SuperiorOperationInternalID SuperiorOperationInternalID 1
Supplier Supplier 1
TaxJurisdiction TaxJurisdiction 2
UnloadingPointName UnloadingPointName 1
WorkCenterInternalID WorkCenterInternalID 2
WorkCenterStandardWorkQty1 WorkCenterStandardWorkQty1 2
WorkCenterStandardWorkQty2 WorkCenterStandardWorkQty2 2
WorkCenterStandardWorkQty3 WorkCenterStandardWorkQty3 2
WorkCenterStandardWorkQty4 WorkCenterStandardWorkQty4 2
WorkCenterStandardWorkQty5 WorkCenterStandardWorkQty5 2
WorkCenterStandardWorkQty6 WorkCenterStandardWorkQty6 2
WorkCenterStandardWorkQtyUnit1 WorkCenterStandardWorkQtyUnit1 2
WorkCenterStandardWorkQtyUnit2 WorkCenterStandardWorkQtyUnit2 2
WorkCenterStandardWorkQtyUnit3 WorkCenterStandardWorkQtyUnit3 2
WorkCenterStandardWorkQtyUnit4 WorkCenterStandardWorkQtyUnit4 2
WorkCenterStandardWorkQtyUnit5 WorkCenterStandardWorkQtyUnit5 2
WorkCenterStandardWorkQtyUnit6 WorkCenterStandardWorkQtyUnit6 2
WorkCenterTypeCode WorkCenterTypeCode 1
WorkCenterTypeCode_2 WorkCenterTypeCode,WorkCenterTypeCode_2 2
@AbapCatalog.sqlViewName: 'PMFGORERDOPDELAY'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true

define view P_MfgOrderOperationDelay
  as select from I_MfgOrderOperation as afvg

{
      // Technical Key

  key afvg.OrderInternalBillOfOperations,
  key afvg.OrderIntBillOfOperationsItem,

      // Semantical key

      afvg.ManufacturingOrder,
      afvg.ManufacturingOrderSequence,
      afvg.ManufacturingOrderOperation,
      afvg.ManufacturingOrderSubOperation,
      afvg.MfgOrderOperationOrSubOp,

      // Order header data

      afvg.ManufacturingOrderCategory,
      afvg.ManufacturingOrderType,
      afvg.ProductionSupervisor,
      afvg.MRPController,
      afvg.ResponsiblePlannerGroup,
      afvg.ProductConfiguration,
      afvg.ManufacturingOrderImportance,
      afvg.InspectionLot,

      // Text

      afvg.MfgOrderOperationText,
      afvg.Language,
      afvg.OperationStandardTextCode,
      afvg.OperationHasLongText,

      // Attributes

      afvg.OperationIsToBeDeleted,
      afvg.MfgOrderOperationIsPhase,
      afvg.MfgOrderPhaseSuperiorOperation,
      afvg.NumberOfCapacities,
      afvg.NumberOfConfirmationSlips,
      afvg.OperationImportance,

      // Assignments

      afvg.SuperiorOperationInternalID,
      afvg.ProductionPlant,
      afvg.WorkCenterInternalID,

      afvg.WorkCenterTypeCode,   // CHAR1

      afvg.WorkCenterTypeCode_2, // CHAR2

      afvg.OperationControlProfile,
      afvg.ControlRecipeDestination,
      afvg.OperationConfirmation,
      afvg.NumberOfOperationConfirmations,
      afvg.FactoryCalendar,
      afvg.CapacityRequirement,
      afvg.CapacityRequirementItem,
      afvg.ChangeNumber,
      afvg.ManufacturingObject,

      // Assignments BOO and BOM

      afvg.BillOfOperationsType,
      afvg.BillOfOperationsGroup,
      afvg.BillOfOperationsVariant,
      afvg.BillOfOperationsSequence,
      afvg.BOOOperationInternalID,
      afvg.BillOfOperationsVersion,
      afvg.BillOfMaterialCategory,
      afvg.BillOfMaterialInternalID,
      afvg.BillOfMaterialItemNodeNumber,
      afvg.BOMItemNodeCount,

      // Assignments Purchasing

      afvg.ExtProcgOperationHasSubcontrg,
      afvg.PurchasingOrganization,
      afvg.PurchasingGroup,
      afvg.PurchaseRequisition,
      afvg.PurchaseRequisitionItem,
      afvg.PurchaseOrder,
      afvg.PurchaseOrderItem,
      afvg.PurchasingInfoRecord,
      afvg.PurgInfoRecdDataIsFixed,
      afvg.PurchasingInfoRecordCategory,
      afvg.OpExternalProcessingPriceUnit,
      afvg.Supplier,
      afvg.GoodsRecipientName,
      afvg.UnloadingPointName,

      // Amount and Currency

      afvg.OpExternalProcessingCurrency,
      afvg.OpExternalProcessingPrice,
      afvg.NumberOfOperationPriceUnits,

      // Assignments FI/CO

      afvg.CompanyCode,
      afvg.BusinessArea,
      afvg.ControllingArea,
      afvg.ProfitCenter,
      afvg.RequestingCostCenter,
      afvg.CostElement,
      afvg.CostingVariant,
      afvg.CostingSheet,
      afvg.CostEstimate,
      afvg.ControllingObjectCurrency,
      afvg.ControllingObjectClass,
      afvg.FunctionalArea,
      afvg.TaxJurisdiction,

      // Assignments HR

      afvg.EmployeeWageType,
      afvg.EmployeeWageGroup,
      afvg.EmployeeSuitability,
      afvg.NumberOfTimeTickets,
      afvg.Personnel,
      afvg.NumberOfEmployees,

      // Setup and Overlapping

      afvg.OperationSetupGroupCategory,
      afvg.OperationSetupGroup,
      afvg.OperationSetupType,
      afvg.OperationOverlappingIsRequired,
      afvg.OperationOverlappingIsPossible,
      afvg.OperationsIsAlwaysOverlapping,
      afvg.OperationSplitIsRequired,
      afvg.MaximumNumberOfSplits,
      afvg.LeadTimeReductionStrategy,
      afvg.OpSchedldReductionLevel,

      // Dates and Times

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

      afvg.ActualForecastEndDate,
      afvg.ActualForecastEndTime,
      afvg.SchedldFcstdEarliestStartDate,
      afvg.SchedldFcstdEarliestStartTime,
      afvg.SchedldFcstdEarliestEndDate,
      afvg.SchedldFcstdEarliestEndTime,
      afvg.LatestSchedldFcstdStartDate,
      afvg.SchedldFcstdLatestStartTime,
      afvg.LatestSchedldFcstdEndDate,
      afvg.SchedldFcstdLatestEndTime,
      // Wait Date and Times

      afvg.EarliestScheduledWaitStartDate,
      afvg.EarliestScheduledWaitStartTime,
      afvg.EarliestScheduledWaitEndDate,
      afvg.EarliestScheduledWaitEndTime,
      afvg.LatestScheduledWaitStartDate,
      afvg.LatestScheduledWaitStartTime,
      afvg.LatestScheduledWaitEndDate,
      afvg.LatestScheduledWaitEndTime,
 
      // Durations

      afvg.BreakDurationUnit,
      afvg.PlannedBreakDuration,
      afvg.ConfirmedBreakDuration,
      cast(afvg.OverlapMinimumDurationUnit as pph_dzeimu preserving type) as OverlapMinimumDurationUnit,
      afvg.OverlapMinimumDuration,
      afvg.MaximumWaitDurationUnit,
      afvg.MaximumWaitDuration,
      afvg.MinimumWaitDurationUnit,
      afvg.MinimumWaitDuration,
      afvg.StandardMoveDurationUnit,
      afvg.StandardMoveDuration,
      afvg.StandardQueueDurationUnit,
      afvg.StandardQueueDuration,
      afvg.MinimumQueueDurationUnit,
      afvg.MinimumQueueDuration,
      afvg.MinimumMoveDurationUnit,
      afvg.MinimumMoveDuration,
      afvg.OperationStandardDuration,
      afvg.OperationStandardDurationUnit,
      afvg.MinimumDuration,
      afvg.MinimumDurationUnit,
      afvg.MinimumProcessingDuration,
      afvg.MinimumProcessingDurationUnit,
      afvg.ScheduledMoveDuration,
      afvg.ScheduledMoveDurationUnit,
      afvg.ScheduledQueueDuration,
      afvg.ScheduledQueueDurationUnit,
      afvg.ScheduledWaitDuration,
      afvg.ScheduledWaitDurationUnit,
      cast(afvg.PlannedDeliveryDuration     as pph_plifz preserving type) as PlannedDeliveryDuration,
      afvg.OpPlannedSetupDurn,
      afvg.OpPlannedSetupDurnUnit,
      afvg.OpPlannedProcessingDurn,
      cast(afvg.OpPlannedProcessingDurnUnit as pph_beaze preserving type) as OpPlannedProcessingDurnUnit,
      afvg.OpPlannedTeardownDurn,
      afvg.OpPlannedTeardownDurnUnit,
      afvg.ActualForecastDuration,
      afvg.ActualForecastDurationUnit,
      afvg.ForecastProcessingDuration,
      afvg.ForecastProcessingDurationUnit,

     // Calculated Durations

      case afvg.OpLtstSchedldExecStrtTme
        when '240000' then  // function dats_tims_to_tstmp does not work with time 24:00

          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  ,
          tstmp_current_utctimestamp(),'INITIAL') + 1
        else
          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, afvg.OpLtstSchedldExecStrtTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  ,
          tstmp_current_utctimestamp(),'INITIAL')
      end as PlannedCurrentStrtDateDvtnDurn,

      case afvg.OpErlstSchedldExecEndTme
        when '240000' then  // function dats_tims_to_tstmp does not work with time 24:00

          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpErlstSchedldExecEndDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  , 
          tstmp_current_utctimestamp(),'INITIAL') + 1
        else
          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpErlstSchedldExecEndDte, afvg.OpErlstSchedldExecEndTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  , 
          tstmp_current_utctimestamp(),'INITIAL')
      end as PlannedCurrentEndDateDvtnDurn,

      case afvg.OpLtstSchedldExecStrtTme
        when '240000' then  // function dats_tims_to_tstmp does not work with time 24:00

          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  ,
          dats_tims_to_tstmp( afvg.OpActualExecutionStartDate, afvg.OpActualExecutionStartTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL') + 1
        else
          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpLtstSchedldExecStrtDte, afvg.OpLtstSchedldExecStrtTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  ,
          dats_tims_to_tstmp( afvg.OpActualExecutionStartDate, afvg.OpActualExecutionStartTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL')
      end as PlannedActualStartDateDvtnDurn,

      case afvg.OpErlstSchedldExecEndTme
        when '240000' then  // function dats_tims_to_tstmp does not work with time 24:00

          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpErlstSchedldExecEndDte, cast('235959' as tims), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  ,
          dats_tims_to_tstmp( afvg.OpActualExecutionEndDate, afvg.OpActualExecutionEndTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL') + 1
        else
          tstmp_seconds_between(dats_tims_to_tstmp( afvg.OpErlstSchedldExecEndDte, afvg.OpErlstSchedldExecEndTme, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL')  ,
          dats_tims_to_tstmp( afvg.OpActualExecutionEndDate, afvg.OpActualExecutionEndTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'INITIAL')
      end as PlannedActualEndDateDvtnDurn,
 
      // Offset

      afvg.StartDateOffsetReferenceCode,
      afvg.StartDateOffsetDurationUnit,
      afvg.StartDateOffsetDuration,
      afvg.EndDateOffsetReferenceCode,
      afvg.EndDateOffsetDurationUnit,
      afvg.EndDateOffsetDuration,

      // Quantities and UoM

      @Semantics.unitOfMeasure: true
      cast(afvg.OperationUnit as operationunit preserving type) as OperationUnit,
      afvg.OpQtyToBaseQtyDnmntr,
      afvg.OpQtyToBaseQtyNmrtr,
      afvg.OperationScrapPercent,
      afvg.OperationReferenceQuantity,
      afvg.OpPlannedTotalQuantity,
      afvg.OpPlannedScrapQuantity,
      afvg.OpPlannedYieldQuantity,
      afvg.OpTotalConfirmedYieldQty,
      afvg.OpTotalConfirmedScrapQty,
      afvg.OperationConfirmedReworkQty,
      afvg.ProductionUnit,
      afvg.OpTotConfdYieldQtyInOrdQtyUnit,

      // Confirmed Work Quantities and UoM

      afvg.OpWorkQuantityUnit1,
      afvg.OpConfirmedWorkQuantity1,
      afvg.NoFurtherOpWorkQuantity1IsExpd,
      afvg.OpWorkQuantityUnit2,
      afvg.OpConfirmedWorkQuantity2,
      afvg.NoFurtherOpWorkQuantity2IsExpd,
      afvg.OpWorkQuantityUnit3,
      afvg.OpConfirmedWorkQuantity3,
      afvg.NoFurtherOpWorkQuantity3IsExpd,
      afvg.OpWorkQuantityUnit4,
      afvg.OpConfirmedWorkQuantity4,
      afvg.NoFurtherOpWorkQuantity4IsExpd,
      afvg.OpWorkQuantityUnit5,
      afvg.OpConfirmedWorkQuantity5,
      afvg.NoFurtherOpWorkQuantity5IsExpd,
      afvg.OpWorkQuantityUnit6,
      afvg.OpConfirmedWorkQuantity6,
      afvg.NoFurtherOpWorkQuantity6IsExpd,

      // Work Quantities and UoM

      afvg.WorkCenterStandardWorkQtyUnit1,
      afvg.WorkCenterStandardWorkQty1,
      afvg.CostCtrActivityType1,
      afvg.WorkCenterStandardWorkQtyUnit2,
      afvg.WorkCenterStandardWorkQty2,
      afvg.CostCtrActivityType2,
      afvg.WorkCenterStandardWorkQtyUnit3,
      afvg.WorkCenterStandardWorkQty3,
      afvg.CostCtrActivityType3,
      afvg.WorkCenterStandardWorkQtyUnit4,
      afvg.WorkCenterStandardWorkQty4,
      afvg.CostCtrActivityType4,
      afvg.WorkCenterStandardWorkQtyUnit5,
      afvg.WorkCenterStandardWorkQty5,
      afvg.CostCtrActivityType5,
      afvg.WorkCenterStandardWorkQtyUnit6,
      afvg.WorkCenterStandardWorkQty6,
      afvg.CostCtrActivityType6,
 
      // Forecast Work Quantities

      afvg.ForecastWorkQuantity1,
      afvg.ForecastWorkQuantity2,
      afvg.ForecastWorkQuantity3,
      afvg.ForecastWorkQuantity4,
      afvg.ForecastWorkQuantity5,
      afvg.ForecastWorkQuantity6,

      // Business Process

      afvg.BusinessProcess,
      afvg.BusinessProcessEntryUnit,
      afvg.BusinessProcessConfirmedQty,
      afvg.NoFurtherBusinessProcQtyIsExpd,
      afvg.BusinessProcRemainingQtyUnit,
      afvg.BusinessProcessRemainingQty,

      // OAN data

      afvg.SetupOpActyNtwkInstance,
      afvg.ProduceOpActyNtwkInstance,
      afvg.TeardownOpActyNtwkInstance,

      // Free-defined fields

      afvg.FreeDefinedTableFieldSemantic,
      afvg.FreeDefinedAttribute01,
      afvg.FreeDefinedAttribute02,
      afvg.FreeDefinedAttribute03,
      afvg.FreeDefinedAttribute04,
      afvg.FreeDefinedQuantity1,
      afvg.FreeDefinedQuantity2,
      afvg.FreeDefinedAmount1,
      afvg.FreeDefinedAmount2,
      afvg.FreeDefinedDate1,
      afvg.FreeDefinedDate2,
      afvg.FreeDefinedIndicator1,
      afvg.FreeDefinedIndicator2,

      // Associations

      _OrdInternalBillOfOperations,
      _MfgOrder,
      _MfgOrderSequence,
      _MfgOrderCategory,
      _MfgOrderType,
      _SuperiorOperation,
      _OperationStandardTextCode,
      _ProductionPlant,
      _ProductionSupervisor,
      _ProductionUnit,
      _OperationUnit,
      _WorkCenter,
      _WorkCenterType,
      _WorkCenter_2,
      _WorkCenterType_2,
      _OperationControlProfile,
      _BillOfOperationsType,
      _BillOfOperationsGroup,
      _BillOfOperationsVariant,
      _BillOfOperationsSequence,
      _BOOOperationInternalID,
      _MRPController,
      _ResponsiblePlannerGroup,
      _ControlRecipeDestination,
      _OperationConfirmation,
      _FactoryCalendar,
      _CapacityRequirement,
      _CapacityRequirementItem,
      _ChangeNumber,
      _PurchasingOrganization,
      _PurchasingGroup,
      _PurchaseOrder,
      _PurchaseOrderItem,
      _PurchaseRequisition,
      _PurchaseRequisitionItem,
      _PurchasingInfoRecord,
      _OpExternalProcessingCurrency,
      _EmployeeWageGroup,
      _EmployeeSuitability,
      _Employee,
      _CompanyCode,
      _ProfitCenter,
      _RequestingCostCenter,
      _ControllingArea,
      _ControllingObjectClass,
      _FunctionalArea,
      _BusinessArea,
      _BusinessProcess,
      _BusinessProcessEntryUnit,
      _OperationSetupGroupCategory,
      _OperationSetupGroup,
      _OperationSetupType,
      _LeadTimeReductionStrategy,
      _StartDateOffsetReferenceCode,
      _EndDateOffsetReferenceCode,
      _Language,
      _SetupOpActyNtwkInstance,
      _ProduceOpActyNtwkInstance,
      _TeardownOpActyNtwkInstance,
      _LongText
};