I_MaintWorkItemInterruption

DDL: I_MAINTWORKITEMINTERRUPTION SQL: IMTWKITMINTERR Type: view COMPOSITE Package: IOCF

Maintenance Work Item Interruption

I_MaintWorkItemInterruption is a Composite CDS View that provides data about "Maintenance Work Item Interruption" in SAP S/4HANA. It reads from 1 data source (P_MaintWorkItemProcessingLog) and exposes 8 fields with key fields StatusObject, EAMOverallObjectStatusLgEntry. It has 4 associations to related views. Part of development package IOCF.

Data Sources (1)

SourceAliasJoin Type
P_MaintWorkItemProcessingLog P_MaintWorkItemProcessingLog from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_EAMObjectOverallStatusLg _JobInterruptingLogEntry _JobInterruptingLogEntry.StatusObject = P_MaintWorkItemProcessingLog.StatusObject and _JobInterruptingLogEntry.EAMOverallObjectStatusLgEntry = P_MaintWorkItemProcessingLog.EAMOvrlStsObjIntrrptgLgEntry
[0..1] I_EAMObjectOverallStatusLg _JobInProcessLogEntry _JobInProcessLogEntry.StatusObject = P_MaintWorkItemProcessingLog.StatusObject and _JobInProcessLogEntry.EAMOverallObjectStatusLgEntry = P_MaintWorkItemProcessingLog.EAMOverallObjectStatusLgEntry
[0..*] I_EAMOverallObjectStatusReason _Reason _Reason.StatusObject = $projection.StatusObject and _Reason.EAMOverallObjectStatusLgEntry = $projection.EAMOverallObjectStatusLgEntry
[0..1] I_MaintenanceOrderOperation _MaintenanceOrderOperation _MaintenanceOrderOperation.MaintOrderOperationInternalID = $projection.StatusObject

Annotations (8)

NameValueLevelField
EndUserText.label Maintenance Work Item Interruption view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IMTWKITMINTERR view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY StatusObject P_MaintWorkItemProcessingLog StatusObject Status Object
KEY EAMOverallObjectStatusLgEntry P_MaintWorkItemProcessingLog EAMOvrlStsObjIntrrptgLgEntry
DurnOfInterruptionInSeconds
MaintWrkItmProcgTimeInSeconds
MaintenanceOrder
_Reason _Reason
_MaintenanceOrder
_MaintenanceOrderOperation _MaintenanceOrderOperation

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_MaintWorkItemInterruption.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IMTWKITMINTERR

CREATE VIEW I_MaintWorkItemInterruption AS
SELECT
  P_MaintWorkItemProcessingLog.StatusObject AS StatusObject,
  P_MaintWorkItemProcessingLog.EAMOvrlStsObjIntrrptgLgEntry AS EAMOverallObjectStatusLgEntry,
  cast( tstmp_seconds_between(_JobInterruptingLogEntry.EAMOvrlObjStsOriglSetDateTime, _JobInterruptingLogEntry.EAMOvrlObjStsOriglRsetDateTime, 'INITIAL') as eam_iwoc_interruption_duration preserving type ) AS DurnOfInterruptionInSeconds,
  tstmp_seconds_between(_JobInProcessLogEntry.EAMOvrlObjStsOriglSetDateTime, _JobInProcessLogEntry.EAMOvrlObjStsOriglRsetDateTime, 'INITIAL') AS MaintWrkItmProcgTimeInSeconds
FROM P_MaintWorkItemProcessingLog
LEFT OUTER JOIN I_EAMObjectOverallStatusLg AS _JobInterruptingLogEntry ON _JobInterruptingLogEntry.StatusObject = P_MaintWorkItemProcessingLog.StatusObject AND _JobInterruptingLogEntry.EAMOverallObjectStatusLgEntry = P_MaintWorkItemProcessingLog.EAMOvrlStsObjIntrrptgLgEntry  -- association [0..1]
LEFT OUTER JOIN I_EAMObjectOverallStatusLg AS _JobInProcessLogEntry ON _JobInProcessLogEntry.StatusObject = P_MaintWorkItemProcessingLog.StatusObject AND _JobInProcessLogEntry.EAMOverallObjectStatusLgEntry = P_MaintWorkItemProcessingLog.EAMOverallObjectStatusLgEntry  -- association [0..1]
LEFT OUTER JOIN I_EAMOverallObjectStatusReason AS _Reason ON _Reason.StatusObject = StatusObject AND _Reason.EAMOverallObjectStatusLgEntry = EAMOverallObjectStatusLgEntry  -- association [0..*]
LEFT OUTER JOIN I_MaintenanceOrderOperation AS _MaintenanceOrderOperation ON _MaintenanceOrderOperation.MaintOrderOperationInternalID = StatusObject  -- association [0..1]
;