I_MaintenancePlanSchedule

DDL: I_MAINTENANCEPLANSCHEDULE SQL: IMPLASCHED Type: view COMPOSITE

Scheduled calls for Maintenance Plan

I_MaintenancePlanSchedule (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Asset Management

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.

SAP Help Documentation

CategoryCDS 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? 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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAsset Management
Application ComponentPM-PRM-MP
CapabilitiesData Source for Defining CDS Entities
PackageAsset Management for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves the details of the scheduled calls of a maintenance plan.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What is the call number of a maintenance plan?</p></li> <li><p>What is the package number of a maintenance call?</p></li> <li><p>Which strategy is associated with a maintenance call?</p></li> <li><p>Which is the next planned date of a maintenance call?</p></li> <li><p>What is the completion date of maintenance call?</p></li> <li><p>When was the call object manually created?</p></li> </ul> <p>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.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_MaintPlanCallHistory I_MaintPlanCallHistory from

Associations (6)

CardinalityTargetAliasCondition
[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 (12)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName IMPLASCHED view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE 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
AbapCatalog.preserveKey true view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan MaintenancePlan Maintenance Plan
KEY MaintenancePlanCallNumber MaintenancePlanCallNumber Maintenance Plan Call Number
KEY MaintenancePackage MaintenancePackage Maintenance Package Number
MaintenanceStrategy MaintenanceStrategy Maintenance Strategy
SchedulingType SchedulingType Scheduling type
SchedulingStatus SchedulingStatus Scheduling status
MeasuringPoint _MaintenanceSingleCycle MeasuringPoint Measuring Point
MaintenanceCallNextPlannedDate MaintenanceCallNextPlannedDate Next planned date
MaintenanceCallDate MaintenanceCallDate Call date
CompletionTime _MaintCallCompltnDateTime CompletionTime Completion Time
CycleSetSequence CycleSetSequence Cycle Set Sequence
MaintCallCompltnCntrRdng MaintCallCompltnCntrRdng Counter reading confirmation
MaintCallNextPlndCntrRdng MaintCallNextPlndCntrRdng Next planned counter reading
MaintenanceCallIsOutstanding MaintenanceCallIsOutstanding Scheduling status: call outstanding
MaintCallIsInvokedOnPlndDate MaintCallIsInvokedOnPlndDate Scheduling status: planned date called
MaintCallHorizonIsNotReached MaintCallHorizonIsNotReached Scheduling status: call horizon not reached
MaintPlanLastScheduledDate MaintPlanLastScheduledDate Date of the call
ReleasedByUserName ReleasedByUserName Name of the person who made the call
MaintPlnCnctntdDuePackagesTxt
MaintenanceCallHorizonCalcType _MaintenancePlan MaintenanceCallHorizonCalcType Calculation Type of Call Horizon
MaintPlanPrdcssrCallCompltnDte MaintPlanPrdcssrCallCompltnDte Completion for Predecessor
MaintenancePlanManualCallDate MaintenancePlanManualCallDate Manual call date
MaintenanceCallLastPlannedDate MaintenanceCallLastPlannedDate Last planned 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.
-- SQL view name: IMPLASCHED

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..*]
;