I_MfgOrderOperationDurnCube
Manufacturing Order Operation Duration - Cube
I_MfgOrderOperationDurnCube is a Composite CDS View (Cube) that provides data about "Manufacturing Order Operation Duration - Cube" in SAP S/4HANA. It reads from 3 data sources (P_PPH_ReportingDate3, I_OrderItem, I_MfgOrderOperationCube) and exposes 121 fields with key fields OrderInternalBillOfOperations, OrderIntBillOfOperationsItem. It has 9 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_PPH_ReportingDate3 | date | inner |
| I_OrderItem | item | inner |
| I_MfgOrderOperationCube | oper | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CalendarDate | _EndDate | $projection.ActualExecutionEndDate = _EndDate.CalendarDate |
| [0..1] | I_WeekDay | _EndDateWeekDay | $projection.EndDateWeekDay = _EndDateWeekDay.WeekDay |
| [0..1] | I_CalendarMonth | _EndDateMonth | $projection.EndDateMonth = _EndDateMonth.CalendarMonth |
| [0..1] | I_CalendarYear | _EndDateYear | $projection.EndDateYear = _EndDateYear.CalendarYear |
| [0..1] | I_ReportingPeriod | _ReportingPeriod | $projection.ReportingPeriod = _ReportingPeriod.ReportingPeriod |
| [0..1] | I_UnitOfMeasure | _DurationUnit | $projection.DurationUnit = _DurationUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _ActualDurationUnit | $projection.ActualDurationUnit = _ActualDurationUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _PlannedDurationUnit | $projection.PlannedDurationUnit = _PlannedDurationUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _DeviationDurationUnit | $projection.DeviationDurationUnit = _DeviationDurationUnit.UnitOfMeasure |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPMFGORDEROPDC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | 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 Duration - Cube | view |
Fields (121)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderInternalBillOfOperations | I_MfgOrderOperationCube | OrderInternalBillOfOperations | |
| KEY | OrderIntBillOfOperationsItem | I_MfgOrderOperationCube | OrderIntBillOfOperationsItem | |
| ManufacturingOrder | I_MfgOrderOperationCube | ManufacturingOrder | ||
| ManufacturingOrderSequence | I_MfgOrderOperationCube | ManufacturingOrderSequence | ||
| ManufacturingOrderOperation | I_MfgOrderOperationCube | ManufacturingOrderOperation | ||
| ManufacturingOrderSubOperation | I_MfgOrderOperationCube | ManufacturingOrderSubOperation | ||
| ManufacturingOrderCategory | I_MfgOrderOperationCube | ManufacturingOrderCategory | ||
| ManufacturingOrderType | I_MfgOrderOperationCube | ManufacturingOrderType | ||
| ProductionSupervisor | I_MfgOrderOperationCube | ProductionSupervisor | ||
| MRPPlant | I_OrderItem | MRPPlant | ||
| Material | I_OrderItem | Material | ||
| MfgOrderOperationText | I_MfgOrderOperationCube | MfgOrderOperationText | ||
| Language | I_MfgOrderOperationCube | Language | ||
| MfgOrderOperationIsPhase | I_MfgOrderOperationCube | MfgOrderOperationIsPhase | ||
| MfgOrderPhaseSuperiorOperation | I_MfgOrderOperationCube | MfgOrderPhaseSuperiorOperation | ||
| NumberOfCapacities | I_MfgOrderOperationCube | NumberOfCapacities | ||
| NumberOfConfirmationSlips | I_MfgOrderOperationCube | NumberOfConfirmationSlips | ||
| NumberOfOperationConfirmations | I_MfgOrderOperationCube | NumberOfOperationConfirmations | ||
| OperationImportance | I_MfgOrderOperationCube | OperationImportance | ||
| OperationIsCreated | I_MfgOrderOperationCube | OperationIsCreated | ||
| OperationIsReleased | I_MfgOrderOperationCube | OperationIsReleased | ||
| OperationIsPrinted | I_MfgOrderOperationCube | OperationIsPrinted | ||
| OperationIsConfirmed | I_MfgOrderOperationCube | OperationIsConfirmed | ||
| OperationIsPartiallyConfirmed | I_MfgOrderOperationCube | OperationIsPartiallyConfirmed | ||
| OperationIsTechlyCompleted | I_MfgOrderOperationCube | OperationIsTechlyCompleted | ||
| OperationIsClosed | I_MfgOrderOperationCube | OperationIsClosed | ||
| OperationIsScheduled | I_MfgOrderOperationCube | OperationIsScheduled | ||
| OperationIsPartiallyDelivered | I_MfgOrderOperationCube | OperationIsPartiallyDelivered | ||
| OperationIsDelivered | I_MfgOrderOperationCube | OperationIsDelivered | ||
| ProductionPlant | I_MfgOrderOperationCube | ProductionPlant | ||
| WorkCenterInternalID | I_MfgOrderOperationCube | WorkCenterInternalID | ||
| WorkCenterTypeCode | I_MfgOrderOperationCube | WorkCenterTypeCode | ||
| WorkCenter | I_MfgOrderOperationCube | WorkCenter | ||
| OperationControlProfile | I_MfgOrderOperationCube | OperationControlProfile | ||
| BillOfOperationsType | I_MfgOrderOperationCube | BillOfOperationsType | ||
| OperationConfirmation | I_MfgOrderOperationCube | OperationConfirmation | ||
| CapacityRequirement | I_MfgOrderOperationCube | CapacityRequirement | ||
| CapacityRequirementItem | I_MfgOrderOperationCube | CapacityRequirementItem | ||
| CompanyCode | I_MfgOrderOperationCube | CompanyCode | ||
| ControllingArea | I_MfgOrderOperationCube | ControllingArea | ||
| OpErlstSchedldExecStrtDte | I_MfgOrderOperationCube | OpErlstSchedldExecStrtDte | ||
| OpErlstSchedldExecStrtTme | I_MfgOrderOperationCube | OpErlstSchedldExecStrtTme | ||
| OpErlstSchedldProcgStrtDte | I_MfgOrderOperationCube | OpErlstSchedldProcgStrtDte | ||
| OpErlstSchedldProcgStrtTme | I_MfgOrderOperationCube | OpErlstSchedldProcgStrtTme | ||
| OpErlstSchedldTrdwnStrtDte | I_MfgOrderOperationCube | OpErlstSchedldTrdwnStrtDte | ||
| OpErlstSchedldTrdwnStrtTme | I_MfgOrderOperationCube | OpErlstSchedldTrdwnStrtTme | ||
| OpErlstSchedldExecEndDte | I_MfgOrderOperationCube | OpErlstSchedldExecEndDte | ||
| OpErlstSchedldExecEndTme | I_MfgOrderOperationCube | OpErlstSchedldExecEndTme | ||
| OpLtstSchedldExecStrtDte | I_MfgOrderOperationCube | OpLtstSchedldExecStrtDte | ||
| OpLtstSchedldExecStrtTme | I_MfgOrderOperationCube | OpLtstSchedldExecStrtTme | ||
| OpLtstSchedldProcgStrtDte | I_MfgOrderOperationCube | OpLtstSchedldProcgStrtDte | ||
| OpLtstSchedldProcgStrtTme | I_MfgOrderOperationCube | OpLtstSchedldProcgStrtTme | ||
| OpLtstSchedldTrdwnStrtDte | I_MfgOrderOperationCube | OpLtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | I_MfgOrderOperationCube | OpLtstSchedldTrdwnStrtTme | ||
| OpLtstSchedldExecEndDte | I_MfgOrderOperationCube | OpLtstSchedldExecEndDte | ||
| OpLtstSchedldExecEndTme | I_MfgOrderOperationCube | OpLtstSchedldExecEndTme | ||
| OperationConfirmedStartDate | I_MfgOrderOperationCube | OperationConfirmedStartDate | ||
| OperationConfirmedEndDate | I_MfgOrderOperationCube | OperationConfirmedEndDate | ||
| OpActualExecutionStartDate | I_MfgOrderOperationCube | OpActualExecutionStartDate | ||
| OpActualExecutionStartTime | I_MfgOrderOperationCube | OpActualExecutionStartTime | ||
| OpActualSetupEndDate | I_MfgOrderOperationCube | OpActualSetupEndDate | ||
| OpActualSetupEndTime | I_MfgOrderOperationCube | OpActualSetupEndTime | ||
| OpActualProcessingStartDate | I_MfgOrderOperationCube | OpActualProcessingStartDate | ||
| OpActualProcessingStartTime | I_MfgOrderOperationCube | OpActualProcessingStartTime | ||
| OpActualProcessingEndDate | I_MfgOrderOperationCube | OpActualProcessingEndDate | ||
| OpActualProcessingEndTime | I_MfgOrderOperationCube | OpActualProcessingEndTime | ||
| OpActualTeardownStartDate | I_MfgOrderOperationCube | OpActualTeardownStartDate | ||
| OpActualTeardownStartTme | I_MfgOrderOperationCube | OpActualTeardownStartTme | ||
| OpActualExecutionEndDate | I_MfgOrderOperationCube | OpActualExecutionEndDate | ||
| OpActualExecutionEndTime | I_MfgOrderOperationCube | OpActualExecutionEndTime | ||
| ReportingPeriod | ||||
| ActualExecutionEndDate | I_MfgOrderOperationCube | OpActualExecutionEndDate | ||
| ActualExecutionEndTime | I_MfgOrderOperationCube | OpActualExecutionEndTime | ||
| EndDateHour | ||||
| EndDateWeekDay | P_PPH_ReportingDate3 | ReportingDateWeekDay | ||
| EndDateWeek | P_PPH_ReportingDate3 | ReportingDateWeek | ||
| EndDateMonth | P_PPH_ReportingDate3 | ReportingDateMonth | ||
| EndDateYear | P_PPH_ReportingDate3 | ReportingDateYear | ||
| EndDateYearMonth | ||||
| PlannedActualStartDateDvtnDurn | I_MfgOrderOperationCube | PlannedActualStartDateDvtnDurn | ||
| PlannedActualEndDateDvtnDurn | I_MfgOrderOperationCube | PlannedActualEndDateDvtnDurn | ||
| PlannedCurrentStrtDateDvtnDurn | I_MfgOrderOperationCube | PlannedCurrentStrtDateDvtnDurn | ||
| PlannedCurrentEndDateDvtnDurn | I_MfgOrderOperationCube | PlannedCurrentEndDateDvtnDurn | ||
| ActualWorkdayDurnInSeconds | ||||
| PlannedWorkdayDurnInSeconds | ||||
| DeviationWorkdayDurnInSeconds | ||||
| ActualDurationUnit | ||||
| PlannedDurationUnit | ||||
| DeviationDurationUnit | ||||
| DurationUnit | ||||
| _ManufacturingOrder | I_MfgOrderOperationCube | _ManufacturingOrder | ||
| _OrderInternalID | I_MfgOrderOperationCube | _OrderInternalID | ||
| _OrdInternalBillOfOperations | I_MfgOrderOperationCube | _OrdInternalBillOfOperations | ||
| _MfgOrder | I_MfgOrderOperationCube | _MfgOrder | ||
| _MfgOrderSequence | I_MfgOrderOperationCube | _MfgOrderSequence | ||
| _MfgOrderCategory | I_MfgOrderOperationCube | _MfgOrderCategory | ||
| _MfgOrderType | I_MfgOrderOperationCube | _MfgOrderType | ||
| _ProductionPlant | I_MfgOrderOperationCube | _ProductionPlant | ||
| _ProductionSupervisor | I_MfgOrderOperationCube | _ProductionSupervisor | ||
| _OperationControlProfile | I_MfgOrderOperationCube | _OperationControlProfile | ||
| _BillOfOperationsType | I_MfgOrderOperationCube | _BillOfOperationsType | ||
| _WorkCenter | I_MfgOrderOperationCube | _WorkCenter | ||
| _WorkCenterType | I_MfgOrderOperationCube | _WorkCenterType | ||
| _WorkCenterBySemanticKey | I_MfgOrderOperationCube | _WorkCenterBySemanticKey | ||
| _Material | I_OrderItem | _Material | ||
| _MRPPlant | I_OrderItem | _MRPPlant | ||
| _CapacityRequirement | I_MfgOrderOperationCube | _CapacityRequirement | ||
| _CapacityRequirementItem | I_MfgOrderOperationCube | _CapacityRequirementItem | ||
| _OperationConfirmation | I_MfgOrderOperationCube | _OperationConfirmation | ||
| _CompanyCode | I_MfgOrderOperationCube | _CompanyCode | ||
| _ControllingArea | I_MfgOrderOperationCube | _ControllingArea | ||
| _Language | I_MfgOrderOperationCube | _Language | ||
| _ReportingPeriod | _ReportingPeriod | |||
| _EndDate | _EndDate | |||
| _EndDateWeekDay | _EndDateWeekDay | |||
| _EndDateMonth | _EndDateMonth | |||
| _EndDateYear | _EndDateYear | |||
| _DurationUnit | _DurationUnit | |||
| _ActualDurationUnit | _ActualDurationUnit | |||
| _PlannedDurationUnit | _PlannedDurationUnit | |||
| _DeviationDurationUnit | _DeviationDurationUnit |
@AbapCatalog.sqlViewName: 'IPPMFGORDEROPDC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_ProductionSupervisor']
@Analytics.dataCategory: #CUBE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@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 Duration - Cube'
// Operation cube view with additional duration calculations
define view I_MfgOrderOperationDurnCube
as select from I_MfgOrderOperationCube as oper
inner join I_OrderItem as item on item.OrderID = oper.ManufacturingOrder
and item.OrderItem = '0001'
inner join P_PPH_ReportingDate3 as date on oper.OpActualExecutionEndDate = date.ReportingDate
association [1..1] to I_CalendarDate as _EndDate on $projection.ActualExecutionEndDate = _EndDate.CalendarDate
association [0..1] to I_WeekDay as _EndDateWeekDay on $projection.EndDateWeekDay = _EndDateWeekDay.WeekDay
association [0..1] to I_CalendarMonth as _EndDateMonth on $projection.EndDateMonth = _EndDateMonth.CalendarMonth
association [0..1] to I_CalendarYear as _EndDateYear on $projection.EndDateYear = _EndDateYear.CalendarYear
association [0..1] to I_ReportingPeriod as _ReportingPeriod on $projection.ReportingPeriod = _ReportingPeriod.ReportingPeriod
association [0..1] to I_UnitOfMeasure as _DurationUnit on $projection.DurationUnit = _DurationUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _ActualDurationUnit on $projection.ActualDurationUnit = _ActualDurationUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _PlannedDurationUnit on $projection.PlannedDurationUnit = _PlannedDurationUnit.UnitOfMeasure
association [0..1] to I_UnitOfMeasure as _DeviationDurationUnit on $projection.DeviationDurationUnit = _DeviationDurationUnit.UnitOfMeasure
{
// Technical Key
@ObjectModel.foreignKey.association: '_OrderInternalID'
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: '_MRPPlant'
item.MRPPlant,
@ObjectModel.foreignKey.association: '_Material'
item.Material,
// Text
@Semantics.text: true
oper.MfgOrderOperationText,
@ObjectModel.foreignKey.association: '_Language'
oper.Language,
// Attributes
oper.MfgOrderOperationIsPhase,
oper.MfgOrderPhaseSuperiorOperation,
oper.NumberOfCapacities,
oper.NumberOfConfirmationSlips,
oper.NumberOfOperationConfirmations,
oper.OperationImportance,
// Status
oper.OperationIsCreated,
oper.OperationIsReleased,
oper.OperationIsPrinted,
oper.OperationIsConfirmed,
oper.OperationIsPartiallyConfirmed,
oper.OperationIsTechlyCompleted,
oper.OperationIsClosed,
oper.OperationIsScheduled,
oper.OperationIsPartiallyDelivered,
oper.OperationIsDelivered,
// Assignments
@ObjectModel.foreignKey.association: '_ProductionPlant'
oper.ProductionPlant,
@ObjectModel.foreignKey.association: '_WorkCenter'
oper.WorkCenterInternalID,
@ObjectModel.foreignKey.association: '_WorkCenterType'
oper.WorkCenterTypeCode,
@ObjectModel.foreignKey.association: '_WorkCenterBySemanticKey'
oper.WorkCenter,
@ObjectModel.foreignKey.association: '_OperationControlProfile'
oper.OperationControlProfile,
@ObjectModel.foreignKey.association: '_BillOfOperationsType'
oper.BillOfOperationsType,
@ObjectModel.foreignKey.association: '_OperationConfirmation'
oper.OperationConfirmation,
@ObjectModel.foreignKey.association: '_CapacityRequirement'
oper.CapacityRequirement,
@ObjectModel.foreignKey.association: '_CapacityRequirementItem'
oper.CapacityRequirementItem,
// Assignments FI/CO
@ObjectModel.foreignKey.association: '_CompanyCode'
oper.CompanyCode,
@ObjectModel.foreignKey.association: '_ControllingArea'
oper.ControllingArea,
// 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,
@ObjectModel.foreignKey.association: '_ReportingPeriod'
cast(date.ReportingPeriod as pph_reportingperiod preserving type) as ReportingPeriod,
@Semantics.calendarItem.dtEnd: true
oper.OpActualExecutionEndDate as ActualExecutionEndDate,
oper.OpActualExecutionEndTime as ActualExecutionEndTime,
cast(left(oper.OpActualExecutionEndTime,2) as enddatehour) as EndDateHour,
@ObjectModel.foreignKey.association: '_EndDateWeekDay'
date.ReportingDateWeekDay as EndDateWeekDay,
@Semantics.calendar.week: true
date.ReportingDateWeek as EndDateWeek,
@ObjectModel.foreignKey.association: '_EndDateMonth'
date.ReportingDateMonth as EndDateMonth,
@Semantics.calendar.year: true
date.ReportingDateYear as EndDateYear,
cast(concat( date.ReportingDateYear, date.ReportingDateMonth ) as vdm_yearmonth) as EndDateYearMonth,
// Durations
@Semantics.calendarItem.duration: true
oper.PlannedActualStartDateDvtnDurn,
@Semantics.calendarItem.duration: true
oper.PlannedActualEndDateDvtnDurn,
@Semantics.calendarItem.duration: true
oper.PlannedCurrentStrtDateDvtnDurn,
@Semantics.calendarItem.duration: true
oper.PlannedCurrentEndDateDvtnDurn,
@Aggregation.default: #SUM
@Semantics.calendarItem.duration: true
cast(oper.ActualWorkdayDurnInSeconds as actualdurationinsec preserving type) as ActualWorkdayDurnInSeconds,
@Aggregation.default: #SUM
@Semantics.calendarItem.duration: true
cast(oper.PlannedWorkdayDurnInSeconds as planneddurationinsec preserving type) as PlannedWorkdayDurnInSeconds,
@Aggregation.default: #SUM
@Semantics.calendarItem.duration: true
cast(oper.DeviationWorkdayDurnInSeconds as deviationdurationinsec preserving type) as DeviationWorkdayDurnInSeconds,
// Unit calculation and duration determination
@Semantics.unitOfMeasure: true
cast(oper.ActualDurationUnit as actualdurationunit preserving type) as ActualDurationUnit,
@Semantics.unitOfMeasure: true
cast(oper.PlannedDurationUnit as planneddurationunit preserving type) as PlannedDurationUnit,
@Semantics.unitOfMeasure: true
cast(oper.DeviationDurationUnit as deviationdurationunit preserving type) as DeviationDurationUnit,
@Semantics.unitOfMeasure: true
cast(oper.DurationUnit as durationunit preserving type) as DurationUnit, //always in seconds
@Semantics.quantity.unitOfMeasure: 'ActualDurationUnit'
@Aggregation.default: #SUM
cast(unit_conversion( quantity => oper.ActualWorkdayDurnInSeconds,
source_unit => oper.DurationUnit,
target_unit => oper.ActualDurationUnit,
error_handling => 'FAIL_ON_ERROR') as actualduration) as ActualDuration,
@Semantics.quantity.unitOfMeasure: 'PlannedDurationUnit'
@Aggregation.default: #SUM
cast(unit_conversion( quantity => oper.PlannedWorkdayDurnInSeconds,
source_unit => oper.DurationUnit,
target_unit => oper.PlannedDurationUnit,
error_handling => 'FAIL_ON_ERROR') as plannedduration) as PlannedDuration,
@Semantics.quantity.unitOfMeasure: 'DeviationDurationUnit'
@Aggregation.default: #SUM
cast(unit_conversion( quantity => oper.DeviationWorkdayDurnInSeconds,
source_unit => oper.DurationUnit,
target_unit => oper.DeviationDurationUnit,
error_handling => 'FAIL_ON_ERROR') as deviationduration) as DeviationDuration,
// Associations
oper._ManufacturingOrder,
@Consumption.hidden: true
oper._OrderInternalID,
@Consumption.hidden: true
@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._ProductionPlant,
oper._ProductionSupervisor,
oper._OperationControlProfile,
oper._BillOfOperationsType,
oper._WorkCenter,
oper._WorkCenterType,
oper._WorkCenterBySemanticKey,
item._Material,
item._MRPPlant,
oper._CapacityRequirement,
oper._CapacityRequirementItem,
oper._OperationConfirmation,
oper._CompanyCode,
oper._ControllingArea,
oper._Language,
_ReportingPeriod,
_EndDate,
_EndDateWeekDay,
_EndDateMonth,
_EndDateYear,
_DurationUnit,
_ActualDurationUnit,
_PlannedDurationUnit,
_DeviationDurationUnit
}
where oper.OperationIsConfirmed = 'X';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MFGORDEROPERATIONCUBE",
"I_ORDERITEM",
"P_PPH_REPORTINGDATE3"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONSTYPE",
"I_CALENDARDATE",
"I_CALENDARMONTH",
"I_CALENDARYEAR",
"I_CAPACITYREQUIREMENT",
"I_CAPACITYREQUIREMENTITEM",
"I_COMPANYCODE",
"I_CONFIRMATIONGROUP",
"I_CONTROLLINGAREA",
"I_LANGUAGE",
"I_MANUFACTURINGORDER",
"I_MATERIAL",
"I_MFGORDER",
"I_MFGORDERCATEGORY",
"I_MFGORDERSEQUENCE",
"I_MFGORDERTYPE",
"I_OPERATIONCONTROLPROFILE",
"I_ORDERINTERNALID",
"I_ORDINTERNALBILLOFOPERATIONS",
"I_PLANT",
"I_PRODUCTIONSUPERVISOR",
"I_REPORTINGPERIOD",
"I_UNITOFMEASURE",
"I_WEEKDAY",
"I_WORKCENTER",
"I_WORKCENTERBYSEMANTICKEY",
"I_WORKCENTERTYPE"
],
"BASE":
[
"I_MFGORDEROPERATIONCUBE",
"I_ORDERITEM"
],
"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