C_TechObjMaintenanceItem

DDL: C_TECHOBJMAINTENANCEITEM SQL: CTOMAINTITEM Type: view CONSUMPTION

Maintenance Items for Technical Object

C_TechObjMaintenanceItem is a Consumption CDS View that provides data about "Maintenance Items for Technical Object" in SAP S/4HANA. It reads from 2 data sources (I_MaintenanceItem, I_MaintenanceItem) and exposes 53 fields with key field MaintenanceItem. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_MaintenanceItem I_MaintenanceItem from
I_MaintenanceItem I_MaintenanceItem union_all

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_TechObjIsEquipOrFuncnlLocT _TechObjIsEquipOrFuncnlLocT _TechObjIsEquipOrFuncnlLocT.TechObjIsEquipOrFuncnlLoc = 'EAMS_EQUI' and _TechObjIsEquipOrFuncnlLocT.Language = $session.system_language
[0..1] I_MaintenancePlanStatus_2 _MaintenancePlanStatus_2 $projection.MaintenancePlan = _MaintenancePlanStatus_2.MaintenancePlan

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName CTOMAINTITEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Items for Technical Object view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceItem MaintenanceItem MaintItem
MaintenanceItemDescription MaintenanceItemDescription Maintenance Item Text
MaintenancePlan MaintenancePlan MaintenancePlan
MaintenancePlanDesc _MaintenancePlan MaintenancePlanDesc Maintenance Plan Text
MaintPriority
MaintPriorityDesc
TechnicalObjectLabel Equipment check
TechnicalObjectDescription Technical Object Description
TechObjIsEquipOrFuncnlLoc Technical Object Type
TechObjIsEquipOrFuncnlLocDesc _TechObjIsEquipOrFuncnlLocT TechObjIsEquipOrFuncnlLocDesc Technical Object Type Description
MaintenancePlanCategory MaintenancePlanCategory Maintenance Item Category
MaintenancePlanCategoryDesc Maintenance Item Category Text
MaintenanceStrategy MaintenanceStrategy
MaintenanceStrategyDesc Maintenance Strategy Text
NotificationType NotificationType Notifictn Type
MaintenancePlanningPlant MaintenancePlanningPlant Planning Plant
MaintenancePlannerGroup MaintenancePlannerGroup Planner Group
SystemStatusName _MaintenancePlanStatus_2 SystemStatusName Plan Status
MaintPlanStatusCriticality _MaintenancePlanStatus_2 MaintPlanStatusCriticality
AuthorizationGroup _Equipment AuthorizationGroup AuthorizGroup
CostCenter _LocationAccountAssignment CostCenter Cost Center
ControllingArea _LocationAccountAssignment ControllingArea Controlling Area
MaintenancePlant
MaintObjectLocAcctAssgmtNmbr MaintObjectLocAcctAssgmtNmbr Loc/AccAssmt
MaintenanceOrderType _MaintenanceOrder MaintenanceOrderType Order Type
TechnicalObject Object ID
MaintenancePlankeyMaintenanceItem
MaintenanceItemDescription MaintenanceItemDescription MaintItem text
MaintenancePlan MaintenancePlan MaintenancePlan
MaintenancePlanDesc _MaintenancePlan MaintenancePlanDesc
MaintPriority
MaintPriorityDesc
TechnicalObjectLabel Equipment check
TechnicalObjectDescription
TechObjIsEquipOrFuncnlLoc
TechObjIsEquipOrFuncnlLocDesc _TechObjIsEquipOrFuncnlLocT TechObjIsEquipOrFuncnlLocDesc TObj.Type Desc.
MaintenancePlanCategory MaintenancePlanCategory
MaintenancePlanCategoryDesc
MaintenanceStrategy MaintenanceStrategy
MaintenanceStrategyDesc
NotificationType NotificationType Notifictn Type
MaintenancePlanningPlant MaintenancePlanningPlant Planning Plant
MaintenancePlannerGroup MaintenancePlannerGroup Planner Group
SystemStatusName _MaintenancePlanStatus_2 SystemStatusName
MaintPlanStatusCriticality _MaintenancePlanStatus_2 MaintPlanStatusCriticality
AuthorizationGroup AuthorizGroup
CostCenter _LocationAccountAssignment CostCenter Cost Center
ControllingArea _LocationAccountAssignment ControllingArea Controlling Area
MaintenancePlant
MaintObjectLocAcctAssgmtNmbr MaintObjectLocAcctAssgmtNmbr Loc/AccAssmt
MaintenanceOrderType _MaintenanceOrder MaintenanceOrderType Order Type
TechnicalObject Object ID
_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 C_TechObjMaintenanceItem.
-- 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: CTOMAINTITEM

CREATE VIEW C_TechObjMaintenanceItem AS
SELECT
  MaintenanceItem,
  MaintenanceItemDescription,
  MaintenancePlan,
  _MaintenancePlan.MaintenancePlanDesc AS MaintenancePlanDesc,
  _PMNotificationPriority._Text[1:Language=$session.system_language].MaintPriority AS MaintPriority,
  _PMNotificationPriority._Text[1:Language=$session.system_language].MaintPriorityDesc AS MaintPriorityDesc,
  cast( Equipment as eams_tech_obj_conv ) AS TechnicalObjectLabel,
  cast( _Equipment._EquipmentText[ 1: Language = $session.system_language ].EquipmentName as eams_tec_obj_des ) AS TechnicalObjectDescription,
  cast ( 'EAMS_EQUI' as eams_tec_obj_type_value) AS TechObjIsEquipOrFuncnlLoc,
  _TechObjIsEquipOrFuncnlLocT.TechObjIsEquipOrFuncnlLocDesc AS TechObjIsEquipOrFuncnlLocDesc,
  MaintenancePlanCategory,
  _MaintenancePlanCatParam._Text[1:Language=$session.system_language].MaintenancePlanCategoryDesc AS MaintenancePlanCategoryDesc,
  MaintenanceStrategy,
  _MaintenanceStrategy._MaintenanceStrategyText[1:Language=$session.system_language].MaintenanceStrategyDesc AS MaintenanceStrategyDesc,
  NotificationType,
  MaintenancePlanningPlant,
  MaintenancePlannerGroup,
  _MaintenancePlanStatus_2.SystemStatusName AS SystemStatusName,
  _MaintenancePlanStatus_2.MaintPlanStatusCriticality AS MaintPlanStatusCriticality,
  _Equipment.AuthorizationGroup AS AuthorizationGroup,
  _LocationAccountAssignment.CostCenter AS CostCenter,
  _LocationAccountAssignment.ControllingArea AS ControllingArea,
  _LocationAccountAssignment._WorkCenter.Plant AS MaintenancePlant,
  MaintObjectLocAcctAssgmtNmbr,
  _MaintenanceOrder.MaintenanceOrderType AS MaintenanceOrderType,
  cast( Equipment as eams_tec_obj ) AS TechnicalObject
FROM I_MaintenanceItem
LEFT OUTER JOIN I_TechObjIsEquipOrFuncnlLocT AS _TechObjIsEquipOrFuncnlLocT ON _TechObjIsEquipOrFuncnlLocT.TechObjIsEquipOrFuncnlLoc = 'EAMS_EQUI' AND _TechObjIsEquipOrFuncnlLocT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaintenancePlanStatus_2 AS _MaintenancePlanStatus_2 ON MaintenancePlan = _MaintenancePlanStatus_2.MaintenancePlan  -- association [0..1]
-- UNION ALL with additional select branch(es): I_MaintenanceItem
;