I_MaintenancePlanSchedule
Scheduled calls for Maintenance Plan
I_MaintenancePlanSchedule is a Composite CDS View that provides data about "Scheduled calls for Maintenance Plan" in SAP S/4HANA. It reads from 1 data source (I_MaintPlanCallHistory) and exposes 29 fields with key fields MaintenancePlan, MaintenancePlanCallNumber, MaintenancePackage. It has 6 associations to related views. Part of development package VDM_EAM_MAINTENANCEPLAN.
SAP Help Documentation
| Category | CDS Views for Maintenance Management |
|---|
Purpose
This CDS view retrieves the details of the scheduled calls of a maintenance plan. This CDS view provides the data to answer the following business questions: What is the call number of a maintenance plan? What is the package number of a maintenance call? Which strategy is associated with a maintenance call? Which is the next planned date of a maintenance call? Which is the last planned date of a maintenance call? What is the completion date of maintenance call? When was the call object manually created? 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 .
Structure
Important Fields Important fields in this view include the following: MaintenancePlan MaintenancePlanCallNumber MaintenancePackage MaintenanceStrategy SchedulingType SchedulingStatus MeasuringPoint MaintenanceCallNextPlannedDate MaintenanceCallDate CompletionDate CompletionTime MaintPlanPrdcssrCallCompltnDte MaintenancePlanManualCallDate MaintenanceCallLastPlannedDate
This CDS view retrieves the details of the scheduled calls of a maintenance plan. This CDS view provides the data to answer the following business questions: What is the call number of a maintenance plan? What is the package number of a maintenance call? Which strategy is associated with a maintenance call? Which is the next planned date of a maintenance call? Which is the last planned date of a maintenance call? What is the completion date of maintenance call? When was the call object manually created? 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 .
Structure
Important Fields Important fields in this view include the following: MaintenancePlan MaintenancePlanCallNumber MaintenancePackage MaintenanceStrategy SchedulingType SchedulingStatus MeasuringPoint MaintenanceCallNextPlannedDate MaintenanceCallDate CompletionDate CompletionTime MaintPlanPrdcssrCallCompltnDte MaintenancePlanManualCallDate MaintenanceCallLastPlannedDate
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintPlanCallHistory | I_MaintPlanCallHistory | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaintCallSchedulingType | _SchedulingType | _SchedulingType.SchedulingType = $projection.SchedulingType |
| [0..1] | P_MaintenanceSingleCycle | _MaintenanceSingleCycle | _MaintenanceSingleCycle.MaintenancePlan = $projection.MaintenancePlan |
| [0..1] | I_UnitOfMeasure | _MaintTaskPerformanceUnit | _MaintTaskPerformanceUnit.UnitOfMeasure = $projection.MaintenanceTaskPerformanceUnit |
| [0..1] | P_MaintCallCompltnDateTime | _MaintCallCompltnDateTime | _MaintCallCompltnDateTime.MaintenancePlan = $projection.MaintenancePlan and _MaintCallCompltnDateTime.MaintenanceCall = $projection.MaintenancePlanCallNumber |
| [1..1] | I_MaintenancePlanBasic | _MaintenancePlan | _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan |
| [1..*] | I_MaintPlanCallHrznCalcTypeTxt | _CallHrznCalcTypeTxt | _CallHrznCalcTypeTxt.MaintenanceCallHorizonCalcType = $projection.MaintenanceCallHorizonCalcType |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Scheduled calls for Maintenance Plan | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | MaintenancePlan | MaintenancePlan | |
| KEY | MaintenancePlanCallNumber | MaintenancePlanCallNumber | Stage number | |
| KEY | MaintenancePackage | MaintenancePackage | Sort pos. | |
| MaintenanceStrategy | MaintenanceStrategy | Strategy Fields | ||
| SchedulingType | SchedulingType | SchedulngType | ||
| SchedulingStatus | SchedulingStatus | Tech. Status | ||
| MeasuringPoint | _MaintenanceSingleCycle | MeasuringPoint | ||
| MaintenanceCallNextPlannedDate | MaintenanceCallNextPlannedDate | Planned Date | ||
| MaintenanceCallDate | MaintenanceCallDate | |||
| CompletionTime | _MaintCallCompltnDateTime | CompletionTime | Completion Time | |
| CycleSetSequence | CycleSetSequence | Cycle Set Seq. | ||
| MaintCallCompltnCntrRdng | MaintCallCompltnCntrRdng | CompConfReadg | ||
| MaintCallNextPlndCntrRdng | MaintCallNextPlndCntrRdng | TL counter | ||
| MaintenanceCallIsOutstanding | MaintenanceCallIsOutstanding | SchedStatus | ||
| MaintCallIsInvokedOnPlndDate | MaintCallIsInvokedOnPlndDate | SchedStatus | ||
| MaintCallHorizonIsNotReached | MaintCallHorizonIsNotReached | SchedStatus | ||
| MaintPlanLastScheduledDate | MaintPlanLastScheduledDate | Call date | ||
| ReleasedByUserName | ReleasedByUserName | Description | ||
| MaintPlnCnctntdDuePackagesTxt | ||||
| MaintenanceCallHorizonCalcType | _MaintenancePlan | MaintenanceCallHorizonCalcType | ||
| MaintPlanPrdcssrCallCompltnDte | MaintPlanPrdcssrCallCompltnDte | Compl.Predecess | ||
| MaintenancePlanManualCallDate | MaintenancePlanManualCallDate | Manual call | ||
| MaintenanceCallLastPlannedDate | MaintenanceCallLastPlannedDate | Last date | ||
| _MaintenancePlan | _MaintenancePlan | |||
| _SchedulingType | _SchedulingType | |||
| _MaintTaskPerformanceUnit | _MaintTaskPerformanceUnit | |||
| _ReleasedByUserName | _ReleasedByUserName | |||
| _CallHrznCalcTypeTxt | _CallHrznCalcTypeTxt | |||
| _MaintenancePackage | _MaintenancePackage |
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_MaintenancePlanSchedule.
-- 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_MaintenancePlanSchedule AS
SELECT
MaintenancePlan,
MaintenancePlanCallNumber,
MaintenancePackage,
MaintenanceStrategy,
SchedulingType,
SchedulingStatus,
_MaintenanceSingleCycle.MeasuringPoint AS MeasuringPoint,
MaintenanceCallNextPlannedDate,
MaintenanceCallDate,
_MaintCallCompltnDateTime.CompletionTime AS CompletionTime,
CycleSetSequence,
MaintCallCompltnCntrRdng,
MaintCallNextPlndCntrRdng,
MaintenanceCallIsOutstanding,
MaintCallIsInvokedOnPlndDate,
MaintCallHorizonIsNotReached,
MaintPlanLastScheduledDate,
ReleasedByUserName,
cast ('' as abap.char(256) ) AS MaintPlnCnctntdDuePackagesTxt,
_MaintenancePlan.MaintenanceCallHorizonCalcType AS MaintenanceCallHorizonCalcType,
MaintPlanPrdcssrCallCompltnDte,
MaintenancePlanManualCallDate,
MaintenanceCallLastPlannedDate
FROM I_MaintPlanCallHistory
LEFT OUTER JOIN I_MaintCallSchedulingType AS _SchedulingType ON _SchedulingType.SchedulingType = SchedulingType -- association [0..1]
LEFT OUTER JOIN P_MaintenanceSingleCycle AS _MaintenanceSingleCycle ON _MaintenanceSingleCycle.MaintenancePlan = MaintenancePlan -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaintTaskPerformanceUnit ON _MaintTaskPerformanceUnit.UnitOfMeasure = MaintenanceTaskPerformanceUnit -- association [0..1]
LEFT OUTER JOIN P_MaintCallCompltnDateTime AS _MaintCallCompltnDateTime ON _MaintCallCompltnDateTime.MaintenancePlan = MaintenancePlan AND _MaintCallCompltnDateTime.MaintenanceCall = MaintenancePlanCallNumber -- association [0..1]
LEFT OUTER JOIN I_MaintenancePlanBasic AS _MaintenancePlan ON _MaintenancePlan.MaintenancePlan = MaintenancePlan -- association [1..1]
LEFT OUTER JOIN I_MaintPlanCallHrznCalcTypeTxt AS _CallHrznCalcTypeTxt ON _CallHrznCalcTypeTxt.MaintenanceCallHorizonCalcType = MaintenanceCallHorizonCalcType -- association [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