I_MaintOrderOperationData
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
| Category | CDS Views for Maintenance Management |
|---|---|
| Data Category | Transactional |
| Status | Released |
| Data Extraction Type | Full (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 .
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 .
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrderOperAndSubOper | I_MaintOrderOperAndSubOper | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA