C_MaintPlanCallObject

DDL: C_MAINTPLANCALLOBJECT SQL: CMPLANCALLOBJ Type: view CONSUMPTION Package: VDM_EAM_MAINTENANCEPLAN

Maintenance Plan Call Objects

C_MaintPlanCallObject is a Consumption CDS View that provides data about "Maintenance Plan Call Objects" in SAP S/4HANA. It reads from 1 data source (I_MaintPlanCallObject) and exposes 56 fields with key fields MaintenancePlan, MaintenancePlanCallNumber, MaintenanceItem. It has 8 associations to related views. It is exposed through 2 OData services (UI_MAINTENANCE_PLAN, UI_MAINTENANCEITEM). It is used in 2 Fiori applications: Manage Maintenance Plans, Manage Maintenance Items. Part of development package VDM_EAM_MAINTENANCEPLAN.

Data Sources (1)

SourceAliasJoin Type
I_MaintPlanCallObject I_MaintPlanCallObject from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_OrderType _MaintenanceOrderType _MaintenanceOrderType.OrderType = $projection.MaintenanceOrderType
[1..1] I_PMNotificationType _PMNotificationType _PMNotificationType.NotificationType = $projection.NotificationType
[0..1] I_ServiceDocumentType _ServiceDocumentType _ServiceDocumentType.ServiceDocumentType = $projection.ServiceDocumentType
[0..1] I_MaintCallSchedulingType _SchedulingType _SchedulingType.SchedulingType = $projection.SchedulingType
[0..1] C_MaintOrderQuickVw _MaintenanceOrderQuickView _MaintenanceOrderQuickView.MaintenanceOrder = $projection.MaintenanceOrder
[0..1] C_MaintenancePlanQuickVw _MaintenancePlanQuickVw _MaintenancePlanQuickVw.MaintenancePlan = $projection.MaintenancePlan
[0..1] C_MaintNotificationQuickVw _MaintNotificationQuickView _MaintNotificationQuickView.MaintenanceNotification = $projection.MaintenanceNotification
[0..1] I_MaintPlanMaintCall _MaintPlanCallHistory _MaintPlanCallHistory.MaintenancePlan = $projection.MaintenancePlan and _MaintPlanCallHistory.MaintenancePlanCallNumber = $projection.MaintenancePlanCallNumber

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMPLANCALLOBJ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Plan Call Objects view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

OData Services (2)

ServiceBindingVersionContractRelease
UI_MAINTENANCE_PLAN UI_MAINTENANCE_PLAN V2 C1 NOT_RELEASED
UI_MAINTENANCEITEM UI_MAINTENANCEITEM V2 C1 NOT_RELEASED

Fiori Apps (2)

App IDApp NameTypeDescription
F5325 Manage Maintenance Plans Transactional An application to Manage Maintenance Plans, provides and comprehensive maintenance plan view including general data, scheduling information, assigned Maintenance Items, as well as review Maintenance calls, create new maintenance plan, edit existing maintenance plan.
F5356 Manage Maintenance Items Transactional An application to Manage Maintenance Items, provides and comprehensive Maintenance Item view, create new Maintenance Item, edit existing Maintenance Item.

Manage Maintenance Plans

Business Role: Maintenance Planner

With the Manage Maintenance Plans app, you as a maintenance planner can view, create, change, schedule, activate, and delete maintenance plans.

Manage Maintenance Items

Business Role: Maintenance Planner

With the Manage Maintenance Items app, you as a maintenance planner can manage maintenance items. You can create maintenance items, decide how to evaluate final due date for a maintenance item, assign maintenance item to a maintenance plan, view details of a maintenance item, view status of an equipment or a functional location within a maintenance item, and so on.

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan MaintenancePlan MaintenancePlan
KEY MaintenancePlanCallNumber MaintenancePlanCallNumber Maintenance Plan Call Number
KEY MaintenanceItem MaintenanceItem MaintItem
MaintenanceItemDescription _MaintenanceItem MaintenanceItemDescription MaintItem text
MaintenancePlanDesc _MaintenancePlan MaintenancePlanDesc
MaintenanceOrder MaintenanceOrder Order
MaintenanceOrderDesc _MaintenanceOrder MaintenanceOrderDesc Description
MaintenanceOrderType _MaintenanceOrder MaintenanceOrderType Order Type
OrderTypeName
MaintOrdBasicStartDate _MaintenanceOrder MaintOrdBasicStartDate Basic Start Date
MaintOrdBasicStartTime _MaintenanceOrder MaintOrdBasicStartTime Basic Start Time
MaintOrdBasicEndDate _MaintenanceOrder MaintOrdBasicEndDate Basic fin. date
MaintOrdBasicEndTime _MaintenanceOrder MaintOrdBasicEndTime
ScheduledBasicStartDate _MaintenanceOrder ScheduledBasicStartDate Scheduled Start Date
ScheduledBasicEndDate _MaintenanceOrder ScheduledBasicEndDate Scheduled End Date
MaintenanceNotification MaintenanceNotification Notification
MaintenanceNotificationText _MaintenanceNotification NotificationText Description
NotificationType _MaintenanceNotification NotificationType Notifictn Type
NotificationTypeName
RequiredStartDate _MaintenanceNotification RequiredStartDate Required Start Date
RequiredEndDate _MaintenanceNotification RequiredEndDate Req. End Date
MaintNotifRqdStartDateTime Required Start Date Time
MaintNotifRqdEndDateTime Required End Date Time
ServiceOrder ServiceOrder Service Order
ServiceOrderDescription _ServiceOrder ServiceDocumentDescription
ServiceDocumentType _ServiceOrder ServiceDocumentType Service Order Type
ServiceOrderTypeName
RequestedServiceStartDateTime _ServiceOrder RequestedServiceStartDateTime Service Start Date Time
RequestedServiceEndDateTime _ServiceOrder RequestedServiceEndDateTime
SchedulingStatus Scheduling Status
SchedulingStatusText
PlannedStartDate PlannedStartDate Latest Planned Start
ReleasedByUserName ReleasedByUserName User Scheduling
CompletionDate CompletionDate Completion Date
CompletionTime CompletionTime Completion Time
SchedulingType _MaintPlanCallHistory SchedulingType Scheduling Type
SchedulingTypeName
MaintCallIsInvokedOnPlndDate _MaintPlanCallHistory MaintCallIsInvokedOnPlndDate
MaintenanceCallIsOutstanding _MaintPlanCallHistory MaintenanceCallIsOutstanding
MaintPlanStatusCriticality
MaintPriorityelseendasMaintPriority Priority
ServiceDocumentPriority _ServiceOrder ServiceDocumentPriority
_MaintenancePlan _MaintenancePlan
_MaintenanceItem _MaintenanceItem
_MaintenanceOrder _MaintenanceOrder
_MaintenanceNotification _MaintenanceNotification
_MaintPlanCallHistory _MaintPlanCallHistory
_ServiceOrder _ServiceOrder
_ServiceDocumentType _ServiceDocumentType
_ServiceDocumentPriority _ServiceOrder _ServiceDocumentPriority
_MaintenanceOrderType _MaintenanceOrderType
_PMNotificationType _PMNotificationType
_SchedulingType _SchedulingType
_MaintenancePlanQuickVw _MaintenancePlanQuickVw
_MaintenanceOrderQuickView _MaintenanceOrderQuickView
_MaintNotificationQuickView _MaintNotificationQuickView

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_MaintPlanCallObject.
-- 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: CMPLANCALLOBJ

CREATE VIEW C_MaintPlanCallObject AS
SELECT
  MaintenancePlan,
  MaintenancePlanCallNumber,
  MaintenanceItem,
  _MaintenanceItem.MaintenanceItemDescription AS MaintenanceItemDescription,
  _MaintenancePlan.MaintenancePlanDesc AS MaintenancePlanDesc,
  MaintenanceOrder,
  _MaintenanceOrder.MaintenanceOrderDesc AS MaintenanceOrderDesc,
  _MaintenanceOrder.MaintenanceOrderType AS MaintenanceOrderType,
  _MaintenanceItem._MaintenanceOrderType._Text[1:Language = $session.system_language ].OrderTypeName AS OrderTypeName,
  _MaintenanceOrder.MaintOrdBasicStartDate AS MaintOrdBasicStartDate,
  _MaintenanceOrder.MaintOrdBasicStartTime AS MaintOrdBasicStartTime,
  _MaintenanceOrder.MaintOrdBasicEndDate AS MaintOrdBasicEndDate,
  _MaintenanceOrder.MaintOrdBasicEndTime AS MaintOrdBasicEndTime,
  _MaintenanceOrder.ScheduledBasicStartDate AS ScheduledBasicStartDate,
  _MaintenanceOrder.ScheduledBasicEndDate AS ScheduledBasicEndDate,
  MaintenanceNotification,
  _MaintenanceNotification.NotificationText AS MaintenanceNotificationText,
  _MaintenanceNotification.NotificationType AS NotificationType,
  _MaintenanceItem._PMNotificationType._Text[1:Language = $session.system_language ].NotificationTypeName AS NotificationTypeName,
  _MaintenanceNotification.RequiredStartDate AS RequiredStartDate,
  _MaintenanceNotification.RequiredEndDate AS RequiredEndDate,
  cast (dats_tims_to_tstmp( _MaintenanceNotification.RequiredStartDate, _MaintenanceNotification.RequiredStartTime, _MaintenanceNotification.NotificationTimeZone , $session.client, 'NULL') as tzntstmps preserving type ) AS MaintNotifRqdStartDateTime,
  cast (dats_tims_to_tstmp( _MaintenanceNotification.RequiredEndDate, _MaintenanceNotification.RequiredEndTime, _MaintenanceNotification.NotificationTimeZone, $session.client, 'NULL') as tzntstmps preserving type ) AS MaintNotifRqdEndDateTime,
  ServiceOrder,
  _ServiceOrder.ServiceDocumentDescription AS ServiceOrderDescription,
  _ServiceOrder.ServiceDocumentType AS ServiceDocumentType,
  _ServiceOrder._ServiceDocumentType._ServiceDocumentTypeText[1:Language = $session.system_language ].ServiceDocumentTypeName AS ServiceOrderTypeName,
  _ServiceOrder.RequestedServiceStartDateTime AS RequestedServiceStartDateTime,
  _ServiceOrder.RequestedServiceEndDateTime AS RequestedServiceEndDateTime,
  cast(SchedulingStatus as char1 preserving type ) AS SchedulingStatus,
  cast ('' as abap.sstring(256) ) AS SchedulingStatusText,
  PlannedStartDate,
  ReleasedByUserName,
  CompletionDate,
  CompletionTime,
  _MaintPlanCallHistory.SchedulingType AS SchedulingType,
  _MaintPlanCallHistory._SchedulingType._Text[1: Language = $session.system_language ].SchedulingTypeName AS SchedulingTypeName,
  _MaintPlanCallHistory.MaintCallIsInvokedOnPlndDate AS MaintCallIsInvokedOnPlndDate,
  _MaintPlanCallHistory.MaintenanceCallIsOutstanding AS MaintenanceCallIsOutstanding,
  cast ( 000 as int1 preserving type ) AS MaintPlanStatusCriticality,
  case _MaintenanceItem.MaintenancePlanCallObject when '' then _MaintenanceOrder.MaintPriority when '2' then _MaintenanceNotification.MaintPriority else '' end as MaintPriority AS MaintPriorityelseendasMaintPriority,
  _ServiceOrder.ServiceDocumentPriority AS ServiceDocumentPriority,
  _ServiceOrder._ServiceDocumentPriority AS _ServiceDocumentPriority
FROM I_MaintPlanCallObject
LEFT OUTER JOIN I_OrderType AS _MaintenanceOrderType ON _MaintenanceOrderType.OrderType = MaintenanceOrderType  -- association [1..1]
LEFT OUTER JOIN I_PMNotificationType AS _PMNotificationType ON _PMNotificationType.NotificationType = NotificationType  -- association [1..1]
LEFT OUTER JOIN I_ServiceDocumentType AS _ServiceDocumentType ON _ServiceDocumentType.ServiceDocumentType = ServiceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_MaintCallSchedulingType AS _SchedulingType ON _SchedulingType.SchedulingType = SchedulingType  -- association [0..1]
LEFT OUTER JOIN C_MaintOrderQuickVw AS _MaintenanceOrderQuickView ON _MaintenanceOrderQuickView.MaintenanceOrder = MaintenanceOrder  -- association [0..1]
LEFT OUTER JOIN C_MaintenancePlanQuickVw AS _MaintenancePlanQuickVw ON _MaintenancePlanQuickVw.MaintenancePlan = MaintenancePlan  -- association [0..1]
LEFT OUTER JOIN C_MaintNotificationQuickVw AS _MaintNotificationQuickView ON _MaintNotificationQuickView.MaintenanceNotification = MaintenanceNotification  -- association [0..1]
LEFT OUTER JOIN I_MaintPlanMaintCall AS _MaintPlanCallHistory ON _MaintPlanCallHistory.MaintenancePlan = MaintenancePlan AND _MaintPlanCallHistory.MaintenancePlanCallNumber = MaintenancePlanCallNumber  -- association [0..1]
;