Deprecated PUBLIC_LOCAL_API
This CDS view is deprecated in S/4HANA. Use I_MaintOrderOperation_DEX instead. View all deprecated CDS views →

I_MaintOrderOperationData

DDL: I_MAINTORDEROPERATIONDATA SQL: IPMORDOPERDATA Type: view COMPOSITE

Maintenance Order Operation Data

I_MaintOrderOperationData is a Composite CDS View (Fact) that provides data about "Maintenance Order Operation Data" in SAP S/4HANA. It reads from 1 data source (I_MaintOrderOperAndSubOper) and exposes 45 fields with key fields MaintenanceOrder, MaintOrderOperationCounter. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
Data CategoryTransactional
StatusReleased
Data Extraction TypeFull (physical deletions are possible in source tables)
Purpose
This CDS view provides the prerequisites for answering the following business questions: What is the short text of the maintenance order operation? What is the creation date of the maintenance order? For which technical object was the maintenance order created (piece of equipment or functional location)? Is the maintenance order operation marked for deletion? What is the completion confirmation number of the maintenance order operation? What are the planning details of this maintenance order operation? What are the responsibility details of this maintenance order operation? What are the purchasing and accounting details of this maintenance order operation? Note This CDS view is modeled for usage as a DataSource in Business Warehouse. We recommend that you only use it for this purpose.

Prerequisites
You have authorizations to display the relevant maintenance order operations in transactions IW33 and IW49 . This check is based on the following fields: Cost Centers ( I_KOSTL ) Maintenance Planner Group ( I_INGRP ) Maintenance Planning Plant ( I_IWERK ) Maintenance Plant ( I_SWERK ) Authorization Group ( I_BEGRP ) Order Type ( I_AUART ) If the person responsible referenced in the maintenance order operation has a business purpose completed status, you require special audit authorizations object is B_BUP_PCPT , and the authorization group is B_BUPA_GRP .

Structure
Business Objects This view is built on the following business objects: Maintenance order Main CDS parameters and filters This CDS view does not have any input parameters. Measures and attributes Some important measures and attributes are: Maintenance order operation short text Maintenance order creation date Technical object Deletion flag Completion confirmation number Planning data, for example Actual Work and Operation Quantity Responsibility data, for example Person Responsible and Work Center Purchasing and accounting data, for example Cost Element and Purchase Requisition Number

Business Warehouse (BW) Extraction
Extraction Details of Full Extraction For the identification of changed records, the CDS view has date time stamps. However, in order to delete an already extracted record, you need to rebuild the data of the InfoCube or InfoSource in BW.

Constraints
The deletion flag applies only in the case of those maintenance order operations for which the maintenance order has been released. If you delete the maintenance order operation before you release its maintenance order, you delete it directly from the database. Keep it in mind that operation and suboperation numbers are not stable because end users can renumber operations even after releasing the maintenance order. If you wish to use a stable field, you can use Internal Identifier of an Operation or Activity .

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_MaintOrderOperAndSubOper I_MaintOrderOperAndSubOper from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_LogisticsOrder _Order _Order.OrderID = $projection.MaintenanceOrder
[0..1] I_LocationAccountAssignment _LocationAccountAssignment $projection.maintobjectlocacctassgmtnmbr = _LocationAccountAssignment.MaintObjectLocAcctAssgmtNmbr
[0..1] I_Equipment _Equipment $projection.equipment = _Equipment.Equipment

Annotations (15)

NameValueLevelField
EndUserText.label Maintenance Order Operation Data view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.sqlViewName IPMORDOPERDATA view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_MaintOrderOperation_DEX view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.sapObjectNodeType.name MaintenanceOrder view
Metadata.ignorePropagatedAnnotations true view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder MaintenanceOrder Order
KEY MaintOrderOperationCounter Counter
MaintOrderRoutingNumber MaintOrderRoutingNumber Plan No.f.Oper.
FunctionalLocation
Equipment _MaintenanceOrder Equipment Equipment check
Assembly _MaintenanceOrder Assembly Pegged Reqmt
MaintenanceActivityType _MaintenanceOrder MaintenanceActivityType MaintActivType
MaintenancePlannerGroup _MaintenanceOrder MaintenancePlannerGroup Planner Group
MaintenancePlanningPlant _MaintenanceOrder MaintenancePlanningPlant Planning Plant
MaintenanceOrderType _MaintenanceOrder MaintenanceOrderType Order Type
MaintenancePlant _MaintenanceOrder MaintenancePlant Plant
MaintObjectLocAcctAssgmtNmbr _MaintenanceOrder MaintObjectLocAcctAssgmtNmbr Loc/AccAssmt
MaintenanceOrderOperation MaintenanceOrderOperation Suboperation
MaintenanceOrderSubOperation MaintenanceOrderSubOperation Suboperation
OperationPersonResponsible OperationPersonResponsible Personnel no.
OperationControlKey OperationControlKey Control Key
OperationDescription OperationDescription Op. Short Text
WorkCenter _WorkCenter WorkCenter Work Center
WorkCenterPlant Plant Valuation Area
OperationPlannedWork _OperationPlanningValues OperationPlannedWork
OperationPlannedWorkUnit _OperationPlanningValues OperationPlannedWorkUnit
ConfirmationTotalQuantity _OperationPlanningValues ConfirmationTotalQuantity
OperationQuantity _OperationPlanningValues OperationQuantity Base Quantity
OperationQuantityUnit _OperationPlanningValues OperationQuantityUnit Unit of Measure
OperationAssembly Assembly Pegged Reqmt
CostCtrActivityType CostCtrActivityType Activity Type
CostElement CostElement G/L Account
MaterialGroup MaterialGroup Product Group
OperationUnloadingPointName OperationUnloadingPointName Unloading Point
PurchaseRequisition PurchaseRequisition Requisition
IsDeleted
CreationDate
LastChangeDateTime _MaintenanceOrder LastChangeDateTime Timestamp
MaintOrderConfirmation MaintOrderConfirmation Confirmation
MaintOrderOperationInternalID MaintOrderOperationInternalID Object number
SuperiorOperationInternalID SuperiorOperationInternalID Sup. Op. Node
OperationWorkCenterInternalID OperationWorkCenterInternalID Object ID
OperationWorkCenterTypeCode OperationWorkCenterTypeCode
_PlannedWorkUnitOfMeasure _OperationPlanningValues _PlannedWorkUnitOfMeasure
_OperationQtyUnitOfMeasure _OperationPlanningValues _OperationQtyUnitOfMeasure
_MaintenanceOrder _MaintenanceOrder
_PersonResponsible _PersonResponsible
_Order _Order
_Equipment _Equipment
_LocationAccountAssignment _LocationAccountAssignment

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_MaintOrderOperationData.
-- 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: IPMORDOPERDATA

CREATE VIEW I_MaintOrderOperationData AS
SELECT
  MaintenanceOrder,
  cast( MaintOrderOperationCounter as operationinternalid preserving type ) AS MaintOrderOperationCounter,
  MaintOrderRoutingNumber,
  _MaintenanceOrder._LocationAccountAssignment.FunctionalLocation AS FunctionalLocation,
  _MaintenanceOrder.Equipment AS Equipment,
  _MaintenanceOrder.Assembly AS Assembly,
  _MaintenanceOrder.MaintenanceActivityType AS MaintenanceActivityType,
  _MaintenanceOrder.MaintenancePlannerGroup AS MaintenancePlannerGroup,
  _MaintenanceOrder.MaintenancePlanningPlant AS MaintenancePlanningPlant,
  _MaintenanceOrder.MaintenanceOrderType AS MaintenanceOrderType,
  _MaintenanceOrder.MaintenancePlant AS MaintenancePlant,
  _MaintenanceOrder.MaintObjectLocAcctAssgmtNmbr AS MaintObjectLocAcctAssgmtNmbr,
  MaintenanceOrderOperation,
  MaintenanceOrderSubOperation,
  OperationPersonResponsible,
  OperationControlKey,
  OperationDescription,
  _WorkCenter.WorkCenter AS WorkCenter,
  Plant AS WorkCenterPlant,
  _OperationPlanningValues.OperationPlannedWork AS OperationPlannedWork,
  _OperationPlanningValues.OperationPlannedWorkUnit AS OperationPlannedWorkUnit,
  _OperationPlanningValues.ConfirmationTotalQuantity AS ConfirmationTotalQuantity,
  _OperationPlanningValues.OperationQuantity AS OperationQuantity,
  _OperationPlanningValues.OperationQuantityUnit AS OperationQuantityUnit,
  Assembly AS OperationAssembly,
  CostCtrActivityType,
  CostElement,
  MaterialGroup,
  OperationUnloadingPointName,
  PurchaseRequisition,
  cast( case when _StatusObjectActiveStatus[ StatusCode = 'I0013' ].StatusCode is not null then 'X' else ' ' end as eam_is_deleted preserving type ) AS IsDeleted,
  _MaintenanceOrder._Order.CreationDate AS CreationDate,
  _MaintenanceOrder.LastChangeDateTime AS LastChangeDateTime,
  MaintOrderConfirmation,
  MaintOrderOperationInternalID,
  SuperiorOperationInternalID,
  OperationWorkCenterInternalID,
  OperationWorkCenterTypeCode,
  _OperationPlanningValues._PlannedWorkUnitOfMeasure AS _PlannedWorkUnitOfMeasure,
  _OperationPlanningValues._OperationQtyUnitOfMeasure AS _OperationQtyUnitOfMeasure
FROM I_MaintOrderOperAndSubOper
LEFT OUTER JOIN I_LogisticsOrder AS _Order ON _Order.OrderID = MaintenanceOrder  -- association [0..1]
LEFT OUTER JOIN I_LocationAccountAssignment AS _LocationAccountAssignment ON maintobjectlocacctassgmtnmbr = _LocationAccountAssignment.MaintObjectLocAcctAssgmtNmbr  -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON equipment = _Equipment.Equipment  -- association [0..1]
;