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

I_MaintenanceItemData

DDL: I_MAINTENANCEITEMDATA SQL: IMAINTITEMDATA Type: view COMPOSITE Package: IPRM

Maintenance Item Data

I_MaintenanceItemData is a Composite CDS View (Dimension) that provides data about "Maintenance Item Data" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceItemTechObj) and exposes 108 fields with key field MaintenanceItem. It has 8 associations to related views. Part of development package IPRM.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
Data CategoryDimension
StatusDeprecated
Purpose
This CDS view provides the prerequisites for answering the following business questions: What is the creation date of the maintenance item? What is the short description of the maintenance item? Is the maintenance item assigned to a maintenance plan? What are the maintenance planning plant, the maintenance plant associated with the main work center, and the maintenance plant of the maintenance item location? What are the location details of the maintenance item? What are the account assignment details of the maintenance item? What are the responsibility details of this maintenance item? Note The field Inactivity Indicator (INACT) is obsolete. This means that, for this field, no values are stored in the database. 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 notification activities in transactions IP06 and IP18 . This check is based on the following fields: Cost Center ( I_KOSTL ) Maintenance Planner Group ( I_INGRP ) Maintenance Planning Plant ( I_IWERK ) Maintenance Plant ( I_SWERK ) Authorization Group ( I_BEGRP )

Structure
Business Objects This view is built on the following business objects: Maintenance item Main CDS parameters and filters This CDS view does not have any input parameters. Measures and attributes Some important measures and attributes are: Maintenance item creation date Maintenance item short description Inactivity indicator Maintenance plan Maintenance planning plant Plant associated with the main work center Location data, for example Maintenance Plant , Plant Section , and Work Breakdown Structure Element (WBS Element) Account assignment data, for example Company Code and Cost Center Responsibility data, for example Planner Group and Work Center

Constraints
This CDS view does not contain the details of the maintenance plan assigned to the maintenance item. Field Work Breakdown Structure Element (WBS Element) comes from the PM Object Location and Account Assignment database table ( ILOA ), not from the Maintenance item database table ( MPOS ). This CDS based DataSource only extracts maintenance item data. Data of other item types that might also be relevant for Plant Maintenance is not extracted, for example data of items that are related to customer services or Stability Study, are not extracted.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceItemTechObj I_MaintenanceItemTechObj from

Associations (8)

CardinalityTargetAliasCondition
[0..*] I_EquipmentData _EquipmentData $projection.Equipment = _EquipmentData.Equipment
[0..1] I_FunctionalLocationData _FunctionalLocationData $projection.FunctionalLocation = _FunctionalLocationData.FunctionalLocation
[0..1] I_Plant _WorkCenterPlant $projection.WorkCenterPlant = _WorkCenterPlant.Plant
[0..1] I_WorkCenter _WorkCenter $projection.workcenterinternalid = _WorkCenter.WorkCenterInternalID and _WorkCenter.WorkCenterTypeCode = 'A'
[0..1] I_WorkCenterBySemanticKey _MainWorkCenterBySemanticKey $projection.MainWorkCenter = _MainWorkCenterBySemanticKey.WorkCenter and $projection.MainWorkCenterPlant = _MainWorkCenterBySemanticKey.Plant
[0..1] I_WorkCenterBySemanticKey _WorkCenterBySemanticKey $projection.workcenter = _WorkCenterBySemanticKey.WorkCenter and $projection.WorkCenterPlant = _WorkCenterBySemanticKey.Plant
[0..1] I_MaintenancePlanPlant _MaintenancePlanPlant $projection.MaintenancePlanningPlant = _MaintenancePlanPlant.MaintenancePlanningPlant -- Extensions, do not expose as association:
[0..1] E_MaintenanceItemBasic _MaintenanceItemExtension _MaintenanceItemExtension.MaintenanceItem = $projection.MaintenanceItem

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName IMAINTITEMDATA view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Item Data view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.dataExtraction.delta.byElement.name LastChangeDateTime view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey MaintenanceItem view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.modelingPattern #NONE view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_MaintenanceItemDEX view

Fields (108)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceItem MaintenanceItem MaintItem
MaintObjectLocAcctAssgmtNmbr MaintObjectLocAcctAssgmtNmbr Loc/AccAssmt
MaintenancePlannerGroup MaintenancePlannerGroup Planner Group
MaintenancePlanningPlant MaintenancePlanningPlant Planning Plant
BusinessArea BusinessArea Business Area
MainWorkCenterInternalID MainWorkCenterInternalID Work Center
WorkCenterTypeCode WorkCenterTypeCode Object Type
MainWorkCenter
MainWorkCenterPlant _MainWorkCenter Plant Valuation Area
TaskListType TaskListType Task List Type
TaskListGroup TaskListGroup Group
TaskListGroupCounter TaskListGroupCounter Group Counter
Equipment Equipment Equipment check
Assembly Assembly Pegged Reqmt
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
MaintenanceItemDescription MaintenanceItemDescription MaintItem text
MaintenancePlan MaintenancePlan MaintenancePlan
MaintenancePlanItemPosition MaintenancePlanItemPosition
MaintenanceStrategy MaintenanceStrategy
MaintenancePlanCategory MaintenancePlanCategory
NotificationType NotificationType Notifictn Type
MaintenanceNotification MaintenanceNotification Notification
MaintPriorityType MaintPriorityType PriorityType
MaintPriority MaintPriority Priority
MaintenanceOrder MaintenanceOrder Order
MaintenanceActivityType MaintenanceActivityType MaintActivType
MaintenanceOrderType MaintenanceOrderType Order Type
SerialNumber SerialNumber Serial Number
Material Material Vehicle Model
OperationSystemCondition OperationSystemCondition SystemCondition
MaintenanceItemIsInactive MaintenanceItemIsInactive
ObjectInternalID ObjectInternalID Object number
MaintObjectCategory MaintObjectCategory Object Type
SalesDocument SalesDocument SD Document
PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
SettlementOrdForServiceProcmt SettlementOrder SettlementOrder
LastChangeDateTime LastChangeDateTime Timestamp
MaintPlanLastChangeDateTime MaintPlanLastChangeDateTime
ImmediateReleaseIsBlocked ImmediateReleaseIsBlocked
CycleSetSequence CycleSetSequence
ReferenceElement ReferenceElement Ref. Element PM/PS
WorkCenterInternalID _LocationAccountAssignment WorkCenterInternalID Work Center
WorkCenter
WorkCenterPlant
ABCIndicator _LocationAccountAssignment ABCIndicator ABC Indicator
SettlementOrder _LocationAccountAssignment SettlementOrder SettlementOrder
PlantSection _LocationAccountAssignment PlantSection Plant Section
CompanyCode _LocationAccountAssignment CompanyCode Receiver Company Code
ControllingArea _LocationAccountAssignment ControllingArea Controlling Area
CostCenter _LocationAccountAssignment CostCenter Cost Center
AssetRoom _LocationAccountAssignment AssetRoom Room
WBSElementInternalID _LocationAccountAssignment WBSElementInternalID WBS Internal ID
WBSElement
AssetLocation _LocationAccountAssignment AssetLocation Location
MaintenancePlant _LocationAccountAssignment MaintenancePlant Plant
FunctionalLocation _LocationAccountAssignment FunctionalLocation Object ID
_MaintenancePlannerGroup _MaintenancePlannerGroup
_MaintenancePlanningPlant _MaintenancePlanningPlant
_MaintenancePlan _MaintenancePlan
_MaintenanceStrategy _MaintenanceStrategy
_MaintenancePlanCatParam _MaintenancePlanCatParam
_PMNotificationPriority _PMNotificationPriority
_Equipment _Equipment
_EquipmentData _EquipmentData
_FunctionalLocationData _FunctionalLocationData
_MaintenanceNotification _MaintenanceNotification
_MaintenanceOrder _MaintenanceOrder
_MaintenanceTaskList _MaintenanceTaskList
_TaskListType _TaskListType
_TaskListGroup _TaskListGroup
_TaskListGroup_2 _TaskListGroup_2
_TaskListGroupCounter _TaskListGroupCounter
_TaskListGroupCounter_2 _TaskListGroupCounter_2
_MaintenanceActivityType _MaintenanceActivityType
_MaintenanceOrderType _MaintenanceOrderType
_MainWorkCenter _MainWorkCenter
_Plant _MainWorkCenter _Plant
_WorkCenterPlant _WorkCenterPlant
_MainWorkCenterBySemanticKey _MainWorkCenterBySemanticKey
_WorkCenterBySemanticKey _WorkCenterBySemanticKey
_WorkCenter _WorkCenter
_WorkCenterType _WorkCenterType
_Assembly _Assembly
_PMNotificationType _PMNotificationType
_Material _Material
_SalesDocument _SalesDocument
_PurchaseOrder _PurchaseOrder
_PurchaseOrderItem _PurchaseOrderItem
_SettlementOrdForServiceProcmt _SettlementOrder
_MaintOperationSystCondition _MaintOperationSystCondition
_PMReferenceElement _PMReferenceElement
_MaintenancePlanPlant _MaintenancePlanPlant
_LocationAccountAssignment _LocationAccountAssignment
_ABCIndicator _LocationAccountAssignment _ABCIndicator
_SettlementOrder _LocationAccountAssignment _SettlementOrder
_PlantSection _LocationAccountAssignment _PlantSection
_CompanyCode _LocationAccountAssignment _CompanyCode
_ControllingArea _LocationAccountAssignment _ControllingArea
_CostCenter _LocationAccountAssignment _CostCenter
_WBSElementBasicData _LocationAccountAssignment _WBSElementBasicData
_Location _LocationAccountAssignment _Location
_MaintenancePlant _LocationAccountAssignment _MaintenancePlant
_FunctionalLocation _LocationAccountAssignment _FunctionalLocation
_PMNotificationPriorityType _PMNotificationPriorityType

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_MaintenanceItemData.
-- 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: IMAINTITEMDATA

CREATE VIEW I_MaintenanceItemData AS
SELECT
  MaintenanceItem,
  MaintObjectLocAcctAssgmtNmbr,
  MaintenancePlannerGroup,
  MaintenancePlanningPlant,
  BusinessArea,
  MainWorkCenterInternalID,
  WorkCenterTypeCode,
  cast( _MainWorkCenter.WorkCenter as gewrk preserving type ) AS MainWorkCenter,
  _MainWorkCenter.Plant AS MainWorkCenterPlant,
  TaskListType,
  TaskListGroup,
  TaskListGroupCounter,
  Equipment,
  Assembly,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangedByUser,
  MaintenanceItemDescription,
  MaintenancePlan,
  MaintenancePlanItemPosition,
  MaintenanceStrategy,
  MaintenancePlanCategory,
  NotificationType,
  MaintenanceNotification,
  MaintPriorityType,
  MaintPriority,
  MaintenanceOrder,
  MaintenanceActivityType,
  MaintenanceOrderType,
  SerialNumber,
  Material,
  OperationSystemCondition,
  MaintenanceItemIsInactive,
  ObjectInternalID,
  MaintObjectCategory,
  SalesDocument,
  PurchaseOrder,
  PurchaseOrderItem,
  SettlementOrder AS SettlementOrdForServiceProcmt,
  LastChangeDateTime,
  MaintPlanLastChangeDateTime,
  ImmediateReleaseIsBlocked,
  CycleSetSequence,
  ReferenceElement,
  _LocationAccountAssignment.WorkCenterInternalID AS WorkCenterInternalID,
  _LocationAccountAssignment._WorkCenter.WorkCenter AS WorkCenter,
  _LocationAccountAssignment._WorkCenter.Plant AS WorkCenterPlant,
  _LocationAccountAssignment.ABCIndicator AS ABCIndicator,
  _LocationAccountAssignment.SettlementOrder AS SettlementOrder,
  _LocationAccountAssignment.PlantSection AS PlantSection,
  _LocationAccountAssignment.CompanyCode AS CompanyCode,
  _LocationAccountAssignment.ControllingArea AS ControllingArea,
  _LocationAccountAssignment.CostCenter AS CostCenter,
  _LocationAccountAssignment.AssetRoom AS AssetRoom,
  _LocationAccountAssignment.WBSElementInternalID AS WBSElementInternalID,
  cast( _LocationAccountAssignment._WBSElementBasicData.WBSElement as ps_posid preserving type ) AS WBSElement,
  _LocationAccountAssignment.AssetLocation AS AssetLocation,
  _LocationAccountAssignment.MaintenancePlant AS MaintenancePlant,
  _LocationAccountAssignment.FunctionalLocation AS FunctionalLocation,
  _MainWorkCenter._Plant AS _Plant,
  _LocationAccountAssignment._ABCIndicator AS _ABCIndicator,
  _LocationAccountAssignment._SettlementOrder AS _SettlementOrder,
  _LocationAccountAssignment._PlantSection AS _PlantSection,
  _LocationAccountAssignment._CompanyCode AS _CompanyCode,
  _LocationAccountAssignment._ControllingArea AS _ControllingArea,
  _LocationAccountAssignment._CostCenter AS _CostCenter,
  _LocationAccountAssignment._WBSElementBasicData AS _WBSElementBasicData,
  _LocationAccountAssignment._Location AS _Location,
  _LocationAccountAssignment._MaintenancePlant AS _MaintenancePlant,
  _LocationAccountAssignment._FunctionalLocation AS _FunctionalLocation
FROM I_MaintenanceItemTechObj
LEFT OUTER JOIN I_EquipmentData AS _EquipmentData ON Equipment = _EquipmentData.Equipment  -- association [0..*]
LEFT OUTER JOIN I_FunctionalLocationData AS _FunctionalLocationData ON FunctionalLocation = _FunctionalLocationData.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _WorkCenterPlant ON WorkCenterPlant = _WorkCenterPlant.Plant  -- association [0..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON workcenterinternalid = _WorkCenter.WorkCenterInternalID AND _WorkCenter.WorkCenterTypeCode = 'A'  -- association [0..1]
LEFT OUTER JOIN I_WorkCenterBySemanticKey AS _MainWorkCenterBySemanticKey ON MainWorkCenter = _MainWorkCenterBySemanticKey.WorkCenter AND MainWorkCenterPlant = _MainWorkCenterBySemanticKey.Plant  -- association [0..1]
LEFT OUTER JOIN I_WorkCenterBySemanticKey AS _WorkCenterBySemanticKey ON workcenter = _WorkCenterBySemanticKey.WorkCenter AND WorkCenterPlant = _WorkCenterBySemanticKey.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaintenancePlanPlant AS _MaintenancePlanPlant ON MaintenancePlanningPlant = _MaintenancePlanPlant.MaintenancePlanningPlant  -- association [0..1]
LEFT OUTER JOIN E_MaintenanceItemBasic AS _MaintenanceItemExtension ON _MaintenanceItemExtension.MaintenanceItem = MaintenanceItem  -- association [0..1]
;