I_MaintenanceOrderDEX
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
| Category | CDS Views for Maintenance Management |
|---|---|
| Data Category | Fact |
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.
SAP API Hub
| Category | Composite |
|---|---|
| State | C1 |
| Line of Business | Asset Management |
| Application Component | PM-WOC-MO-2CL |
| Capabilities | Data Source for Data Extraction |
| Extensible (Key User) | Yes |
| Extensible (Developer) | Yes |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Asset 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrder | MaintenanceOrder | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FunctionalLocationData | _FunctionalLocation | $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation |
| [0..1] | E_MaintenanceOrder | _MaintenanceOrderExtension | $projection.MaintenanceOrder = _MaintenanceOrderExtension.MaintenanceOrder |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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