I_MaintenanceOrderDEX

DDL: I_MAINTENANCEORDERDEX Type: view_entity COMPOSITE Package: IWO1

Maintenance Order Data

I_MaintenanceOrderDEX (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Maintenance Order · Asset Management

I_MaintenanceOrderDEX is a Composite CDS View (Fact) that provides data about "Maintenance Order Data" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrder) and exposes 92 fields with key field MaintenanceOrder. It has 2 associations to related views. Part of development package IWO1.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
Data CategoryFact
Purpose
This CDS view provides the data to answer the following business questions: What is the short description of the maintenance order? What are the scheduling parameters of the maintenance order? What is the technical object related to the maintenance order (piece of equipment or functional location)? Is the maintenance order marked for deletion? What are the location details of this maintenance order? What are the account assignment details of this maintenance order? What are the responsibility details of this maintenance order? What are the planning details of this maintenance order? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: KOSTL (Cost Center) IWERK (Maintenance Planning Plant) SWERK (Maintenance Plant) AUFART_IWERK (Order Category/Maintenance Planning Plant) BEGRP (Technical Object Authorization Group) These restriction types are edited in the Maintain Business Roles app.

Structure
Important Fields Some important measures and attributes are: Maintenance order short description Header notification Scheduling parameters Technical object Deletion flag Location data, for example Maintenance Plant and Plant Section Important dates, for example Latest Acceptable Completion Date Account assignment data, for example Company Code and Cost Center Responsibility data, for example Planner Group and Work Center Planning data, for example Maintenance Plan and Maintenance Item Data relevant for phase-enabled maintenance orders, for example Process Phase , Process Subphase and Processing Context

Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessAsset Management
Application ComponentPM-WOC-MO-2CL
CapabilitiesData Source for Data Extraction
Extensible (Key User)Yes
Extensible (Developer)Yes
Release State (Key User)Released
Release State (Developer)Released
PackageAsset Management for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li> <p>What is the short description of the maintenance order?</p> </li> <li> <p>What are the scheduling parameters of the maintenance order?</p> </li> <li> <p>What is the technical object related to the maintenance order (piece of equipment or functional location)?</p> </li> <li> <p>Is the maintenance order marked for deletion?</p> </li> <li> <p>What are the location details of this maintenance order?</p> </li> <li> <p>What are the account assignment details of this maintenance order?</p> </li> <li> <p>What are the responsibility details of this maintenance order?</p> </li> <li> <p>What are the planning details of this maintenance order?</p> </li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceOrder MaintenanceOrder from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_FunctionalLocationData _FunctionalLocation $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation
[0..1] E_MaintenanceOrder _MaintenanceOrderExtension $projection.MaintenanceOrder = _MaintenanceOrderExtension.MaintenanceOrder

Annotations (16)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #NONE view
ObjectModel.sapObjectNodeType.name MaintenanceOrder view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
EndUserText.label Maintenance Order Data view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix ORI view
AbapCatalog.extensibility.quota.maximumFields 250 view
AbapCatalog.extensibility.quota.maximumBytes 5000 view

Fields (92)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder MaintenanceOrder Order Number
MaintOrderRoutingNumber MaintOrderRoutingNumber Routing Number of Operations in the Order
MaintenanceOrderType MaintenanceOrderType Order Type
MaintenanceOrderDesc MaintenanceOrderDesc Description
MaintOrdBasicStartDate MaintOrdBasicStartDate Basic Start Date
MaintOrdBasicStartTime MaintOrdBasicStartTime Basic Start (Time)
MaintOrdBasicEndDate MaintOrdBasicEndDate Basic Finish Date
MaintOrdBasicEndTime MaintOrdBasicEndTime Basic Finish (Time)
ScheduledBasicStartDate ScheduledBasicStartDate Scheduled start
ScheduledBasicStartTime ScheduledBasicStartTime Scheduled Start (Time)
ScheduledBasicEndDate ScheduledBasicEndDate Scheduled finish
ScheduledBasicEndTime ScheduledBasicEndTime Scheduled finish time
MaintOrderReferenceDate MaintOrderReferenceDate PM Order: Reference Date
MaintOrderReferenceTime MaintOrderReferenceTime Time of Reference Date
MainWorkCompletedDateTime MainWorkCompletedDateTime Main Work Completed Date and Time
MaintenanceNotification MaintenanceNotification Notification Number
OrdIsNotSchedldAutomatically OrdIsNotSchedldAutomatically Indicator: Do not schedule automatically
ControllingArea ControllingArea Controlling Area
MainWorkCenterInternalID WorkCenterInternalID Object ID of the Work Center
MainWorkCenterTypeCode WorkCenterTypeCode Object Type of CIM Resources for Work Center
MainWorkCenter MainWorkCenter Main work center for maintenance tasks
MainWorkCenterPlant MainWorkCenterPlant Plant associated with main work center
WorkCenterInternalID _LocationAccountAssignment WorkCenterInternalID Object ID of PP work center
WorkCenterTypeCode _LocationAccountAssignment WorkCenterTypeCode Object types of the CIM resource
WorkCenter Work Center
MaintenancePlanningPlant MaintenancePlanningPlant Maintenance Planning Plant
MaintenancePlant MaintenancePlant Location Plant
Assembly Assembly Pegged Reqmt
MaintOrdProcessPhaseCode MaintOrdProcessPhaseCode Process Phase
MaintOrdProcessSubPhaseCode MaintOrdProcessSubPhaseCode Process Subphase
BusinessArea BusinessArea Business Area
CompanyCode CompanyCode Receiver Company Code
CostCenter _LocationAccountAssignment CostCenter Cost Center
CostingSheet CostingSheet Costing Sheet
ReferenceElement ReferenceElement Reference Element PM/PS
FunctionalArea FunctionalArea Sendr Fctl Area
AdditionalDeviceData AdditionalDeviceData Additional Device Data
Equipment Equipment Equipment Number
EquipmentName Description of technical object
FunctionalLocation Functional Location
MaintenanceOrderPlanningCode MaintenanceOrderPlanningCode Maintenance order planning indicator
MaintenancePlannerGroup MaintenancePlannerGroup Planner Group for Customer Service and Plant Maintenance
MaintenanceActivityType MaintenanceActivityType Maintenance Activity Type
MaintPriority MaintPriority Priority
MaintPriorityType MaintPriorityType Priority Type
OrderProcessingGroup OrderProcessingGroup Processing Group
ProfitCenter ProfitCenter Profit Center
ResponsibleCostCenter ResponsibleCostCenter Responsible Cost Center
Currency Currency Valuation Crcy
MaintenanceRevision MaintenanceRevision Revision for Plant Maintenance and Customer Service
SerialNumber SerialNumber Serial Number
Product Material Material Number
SuperiorProjectNetwork SuperiorProjectNetwork Number of superior network
OperationSystemCondition OperationSystemCondition System Condition
WBSElement _WBSElement WBSElementExternalID Work Breakdown Structure Element (WBS Element) Edited
WBSElementInternalID WBSElementInternalID Work breakdown structure element (WBS element)
ProjectInternalID Project (internal)
ControllingObjectClass ControllingObjectClass Controlling Object Class
MaintenanceOrderInternalID MaintenanceOrderInternalID Object number
MaintenanceObjectList MaintenanceItemObjectList Object list number
MaintObjectLocAcctAssgmtNmbr MaintObjectLocAcctAssgmtNmbr Location and account assignment for technical object
AssetLocation _LocationAccountAssignment AssetLocation Location of maintenance object
AssetRoom _LocationAccountAssignment AssetRoom Room
PlantSection _LocationAccountAssignment PlantSection Plant Section
ABCIndicator _LocationAccountAssignment ABCIndicator ABC Indicator for Technical Object
MaintObjectFreeDefinedAttrib _LocationAccountAssignment MaintObjectFreeDefinedAttrib Sort Field
BasicSchedulingType BasicSchedulingType Scheduling type
LatestAcceptableCompletionDate LatestAcceptableCompletionDate Final Due Date
MaintOrdPersonResponsible MaintOrdPersonResponsible Person Responsible ID
LastChangeByUser LastChangeByUser Last Changed By
LastChangeDateTime Changed On Timestamp with Date and Time
CreatedByUser CreatedByUser Entered By
OrderHasLongText OrderHasLongText Order Has Long Text
MaintenanceOrderOverheadCode MaintenanceOrderOverheadCode Overhead key
PlannedCostsCostingVariant PlannedCostsCostingVariant Costing Variant for Planned Costs
ActualCostsCostingVariant ActualCostsCostingVariant Costing Variant For Actual Costs
MaintenancePlan MaintenancePlan Maintenance Plan
MaintenanceCall MaintenanceCall Maintenance Plan Call Number
MaintenanceItem MaintenanceItem Maintenance Item
LeadingOrder LeadingOrder Order number
TaskListType TaskListType Bill of Operations Type
TaskListGroup TaskListGroup Bill of Operations ID
TaskListGroupCounter TaskListGroupCounter Bill of Operations Variant
LocAcctAssgmtWBSElement Work Breakdown Structure Element (WBS Element) Edited
LocAcctAssgmtWBSElmntIntID WBS Element
ControllingSettlementProfile _CtrlgObjectSettlementRule ControllingSettlementProfile Settlement Profile
LocAcctAssgmtBusinessArea _LocationAccountAssignment BusinessArea Business Area
LocAcctAssgmtControllingArea _LocationAccountAssignment ControllingArea Controlling Area
LocAcctAssgmtCompanyCode _LocationAccountAssignment CompanyCode Receiver Company Code
MaintOrderProcessingContext MaintOrderProcessingContext Additional Processing Context for Maintenance Order
_Equipment _Equipment
_FunctionalLocation _FunctionalLocation

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_MaintenanceOrderDEX.
-- 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.

CREATE VIEW I_MaintenanceOrderDEX AS
SELECT
  MaintenanceOrder,
  MaintOrderRoutingNumber,
  MaintenanceOrderType,
  MaintenanceOrderDesc,
  MaintOrdBasicStartDate,
  MaintOrdBasicStartTime,
  MaintOrdBasicEndDate,
  MaintOrdBasicEndTime,
  ScheduledBasicStartDate,
  ScheduledBasicStartTime,
  ScheduledBasicEndDate,
  ScheduledBasicEndTime,
  MaintOrderReferenceDate,
  MaintOrderReferenceTime,
  MainWorkCompletedDateTime,
  MaintenanceNotification,
  OrdIsNotSchedldAutomatically,
  ControllingArea,
  WorkCenterInternalID AS MainWorkCenterInternalID,
  WorkCenterTypeCode AS MainWorkCenterTypeCode,
  MainWorkCenter,
  MainWorkCenterPlant,
  _LocationAccountAssignment.WorkCenterInternalID AS WorkCenterInternalID,
  _LocationAccountAssignment.WorkCenterTypeCode AS WorkCenterTypeCode,
  _LocationAccountAssignment._WorkCenter.WorkCenter AS WorkCenter,
  MaintenancePlanningPlant,
  MaintenancePlant,
  Assembly,
  MaintOrdProcessPhaseCode,
  MaintOrdProcessSubPhaseCode,
  BusinessArea,
  CompanyCode,
  _LocationAccountAssignment.CostCenter AS CostCenter,
  CostingSheet,
  ReferenceElement,
  FunctionalArea,
  AdditionalDeviceData,
  Equipment,
  _Equipment._EquipmentText[1:Language=$session.system_language].EquipmentName AS EquipmentName,
  cast ( _LocationAccountAssignment.FunctionalLocation as vdm_eam_tplnr ) AS FunctionalLocation,
  MaintenanceOrderPlanningCode,
  MaintenancePlannerGroup,
  MaintenanceActivityType,
  MaintPriority,
  MaintPriorityType,
  OrderProcessingGroup,
  ProfitCenter,
  ResponsibleCostCenter,
  Currency,
  MaintenanceRevision,
  SerialNumber,
  Material AS Product,
  SuperiorProjectNetwork,
  OperationSystemCondition,
  _WBSElement.WBSElementExternalID AS WBSElement,
  WBSElementInternalID,
  cast( ProjectInternalID as ps_s4_proj_pspnr ) AS ProjectInternalID,
  ControllingObjectClass,
  MaintenanceOrderInternalID,
  MaintenanceItemObjectList AS MaintenanceObjectList,
  MaintObjectLocAcctAssgmtNmbr,
  _LocationAccountAssignment.AssetLocation AS AssetLocation,
  _LocationAccountAssignment.AssetRoom AS AssetRoom,
  _LocationAccountAssignment.PlantSection AS PlantSection,
  _LocationAccountAssignment.ABCIndicator AS ABCIndicator,
  _LocationAccountAssignment.MaintObjectFreeDefinedAttrib AS MaintObjectFreeDefinedAttrib,
  BasicSchedulingType,
  LatestAcceptableCompletionDate,
  MaintOrdPersonResponsible,
  LastChangeByUser,
  cast( LastChangeDateTime as rslastchangedat preserving type ) AS LastChangeDateTime,
  CreatedByUser,
  OrderHasLongText,
  MaintenanceOrderOverheadCode,
  PlannedCostsCostingVariant,
  ActualCostsCostingVariant,
  MaintenancePlan,
  MaintenanceCall,
  MaintenanceItem,
  LeadingOrder,
  TaskListType,
  TaskListGroup,
  TaskListGroupCounter,
  _LocationAccountAssignment._WBSElementBasicData.WBSElementExternalID AS LocAcctAssgmtWBSElement,
  cast ( _LocationAccountAssignment.WBSElementInternalID as ps_s4_pspnr preserving type ) AS LocAcctAssgmtWBSElmntIntID,
  _CtrlgObjectSettlementRule.ControllingSettlementProfile AS ControllingSettlementProfile,
  _LocationAccountAssignment.BusinessArea AS LocAcctAssgmtBusinessArea,
  _LocationAccountAssignment.ControllingArea AS LocAcctAssgmtControllingArea,
  _LocationAccountAssignment.CompanyCode AS LocAcctAssgmtCompanyCode,
  MaintOrderProcessingContext
FROM I_MaintenanceOrder AS MaintenanceOrder
LEFT OUTER JOIN I_FunctionalLocationData AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN E_MaintenanceOrder AS _MaintenanceOrderExtension ON MaintenanceOrder = _MaintenanceOrderExtension.MaintenanceOrder  -- association [0..1]
;