I_MaintenanceCall
Maintenance Call
I_MaintenanceCall (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Asset Management
I_MaintenanceCall is a Basic CDS View that provides data about "Maintenance Call" in SAP S/4HANA. It reads from 1 data source (mhio) and exposes 18 fields with key fields MaintenancePlan, MaintenanceCall, MaintenanceItem. It has 6 associations to related views.
SAP Help Documentation
| Category | CDS Views for Maintenance Management |
|---|---|
| Status | Scheduling status |
Purpose
This CDS view is designed to provide a comprehensive overview of maintenance calls within an organization. It integrates various aspects of maintenance operations, including plans, items, orders, notifications, and service orders, allowing users to access detailed information about each maintenance call and its associated elements. This CDS view provides the data to answer the following business questions: What are the details of each maintenance call, including the associated maintenance plan, item, order, and notification? Has the maintenance call horizon been reached, and what is the current scheduling status? When is the planned start date for each maintenance call, and who released it? What is the completion date and time for each maintenance call? How can historical data related to maintenance plan calls be accessed for analysis and reporting purposes? 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: BEGRP These restriction types are edited in the Maintain Business Roles app.
Structure
Important Fields Important fields in this view include the following: Field Name Description RELEASEDBYUSERNAME User scheduling MAINTCALLHORIZONISNOTREACHED Scheduling status SCHEDULINGSTATUS Scheduling status PLANNEDSTARTDATE Basic start date COMPLETIONDATE Completion Date MAINTENANCECALL MntPlan Call No. COMPLETIONTIME Completion Time MAINTENANCEORDER Order SERVICEORDER Transaction ID MAINTENANCENOTIFICATION Notification MAINTENANCEPLAN Maintenance Plan MAINTENANCEITEM Maintenance Item
This CDS view is designed to provide a comprehensive overview of maintenance calls within an organization. It integrates various aspects of maintenance operations, including plans, items, orders, notifications, and service orders, allowing users to access detailed information about each maintenance call and its associated elements. This CDS view provides the data to answer the following business questions: What are the details of each maintenance call, including the associated maintenance plan, item, order, and notification? Has the maintenance call horizon been reached, and what is the current scheduling status? When is the planned start date for each maintenance call, and who released it? What is the completion date and time for each maintenance call? How can historical data related to maintenance plan calls be accessed for analysis and reporting purposes? 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: BEGRP These restriction types are edited in the Maintain Business Roles app.
Structure
Important Fields Important fields in this view include the following: Field Name Description RELEASEDBYUSERNAME User scheduling MAINTCALLHORIZONISNOTREACHED Scheduling status SCHEDULINGSTATUS Scheduling status PLANNEDSTARTDATE Basic start date COMPLETIONDATE Completion Date MAINTENANCECALL MntPlan Call No. COMPLETIONTIME Completion Time MAINTENANCEORDER Order SERVICEORDER Transaction ID MAINTENANCENOTIFICATION Notification MAINTENANCEPLAN Maintenance Plan MAINTENANCEITEM Maintenance Item
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Asset Management |
| Application Component | PM-PRM-TL |
| Capabilities | Data Source for Defining CDS Entities |
| Package | Asset Management for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mhio | mhio | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaintenancePlan | _MaintenancePlan | _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan |
| [0..1] | I_MaintenanceItem | _MaintenanceItem | _MaintenanceItem.MaintenanceItem = $projection.MaintenanceItem |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder |
| [0..1] | I_MaintenanceNotification | _MaintenanceNotification | _MaintenanceNotification.MaintenanceNotification = $projection.MaintenanceNotification |
| [0..1] | I_ServiceOrderEnhcd | _ServiceOrder | _ServiceOrder.ServiceOrder = $projection.ServiceOrder |
| [0..*] | I_MaintPlanCallHistory | _MaintPlanCallHistory | _MaintPlanCallHistory.MaintenancePlan = $projection.MaintenancePlan and _MaintPlanCallHistory.MaintenancePlanCallNumber = $projection.MaintenanceCall |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | IMAINTENANCECALL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Maintenance Call | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.supportedCapabilities | #CDS_MODELING_DATA_SOURCE | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | mhio | warpl | Maintenance Plan |
| KEY | MaintenanceCall | mhio | abnum | Maintenance Plan Call Number |
| KEY | MaintenanceItem | mhio | wppos | Maintenance item |
| MaintenanceOrder | mhio | aufnr | SettlementOrder | |
| MaintenanceNotification | mhio | qmnum | Notification Number | |
| MaintCallHorizonIsNotReached | mhio | tsenq | Scheduling status: call horizon not reached | |
| SchedulingStatus | mhio | tstat | Scheduling status | |
| CompletionDate | mhio | addat | Completion Date for Call Object | |
| CompletionTime | mhio | adtime | Completion Time for Call Object | |
| PlannedStartDate | mhio | gstrp | Basic start date | |
| ReleasedByUserName | mhio | usermod | Scheduling determined by user | |
| ServiceOrder | mhio | service_order | Transaction ID | |
| _MaintenancePlan | _MaintenancePlan | |||
| _MaintenanceItem | _MaintenanceItem | |||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _MaintenanceNotification | _MaintenanceNotification | |||
| _MaintPlanCallHistory | _MaintPlanCallHistory | |||
| _ServiceOrder | _ServiceOrder |
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_MaintenanceCall.
-- 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: IMAINTENANCECALL
CREATE VIEW I_MaintenanceCall AS
SELECT
mhio.warpl AS MaintenancePlan,
mhio.abnum AS MaintenanceCall,
mhio.wppos AS MaintenanceItem,
mhio.aufnr AS MaintenanceOrder,
mhio.qmnum AS MaintenanceNotification,
mhio.tsenq AS MaintCallHorizonIsNotReached,
mhio.tstat AS SchedulingStatus,
mhio.addat AS CompletionDate,
mhio.adtime AS CompletionTime,
mhio.gstrp AS PlannedStartDate,
mhio.usermod AS ReleasedByUserName,
mhio.service_order AS ServiceOrder
FROM mhio
LEFT OUTER JOIN I_MaintenancePlan AS _MaintenancePlan ON _MaintenancePlan.MaintenancePlan = MaintenancePlan -- association [0..1]
LEFT OUTER JOIN I_MaintenanceItem AS _MaintenanceItem ON _MaintenanceItem.MaintenanceItem = MaintenanceItem -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON _MaintenanceOrder.MaintenanceOrder = MaintenanceOrder -- association [0..1]
LEFT OUTER JOIN I_MaintenanceNotification AS _MaintenanceNotification ON _MaintenanceNotification.MaintenanceNotification = MaintenanceNotification -- association [0..1]
LEFT OUTER JOIN I_ServiceOrderEnhcd AS _ServiceOrder ON _ServiceOrder.ServiceOrder = ServiceOrder -- association [0..1]
LEFT OUTER JOIN I_MaintPlanCallHistory AS _MaintPlanCallHistory ON _MaintPlanCallHistory.MaintenancePlan = MaintenancePlan AND _MaintPlanCallHistory.MaintenancePlanCallNumber = MaintenanceCall -- association [0..*]
;
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