C_MaintenancePlanScheduleTP
Maintenance Calls
C_MaintenancePlanScheduleTP is a Consumption CDS View that provides data about "Maintenance Calls" in SAP S/4HANA. It reads from 1 data source (I_MaintPlanMaintCall) and exposes 45 fields with key fields MaintenancePlan, MaintenancePlanCallNumber. It has 2 associations to related views. It is exposed through 1 OData service (UI_MAINTENANCE_PLAN). It is used in 1 Fiori application: Manage Maintenance Plans. Part of development package VDM_EAM_MAINTENANCEPLAN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintPlanMaintCall | I_MaintPlanMaintCall | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_MaintPlanCallObject | _MaintPlanCallObjects | _MaintPlanCallObjects.MaintenancePlan = $projection.MaintenancePlan and _MaintPlanCallObjects.MaintenancePlanCallNumber = $projection.MaintenancePlanCallNumber |
| [1..1] | I_MaintenancePlanBasic | _MaintenancePlan | _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Maintenance Calls | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Search.searchable | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| Metadata.allowExtensions | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_MAINTENANCE_PLAN | UI_MAINTENANCE_PLAN | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| 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. |
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.
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | MaintenancePlan | MaintenancePlan | |
| KEY | MaintenancePlanCallNumber | MaintenancePlanCallNumber | Maintenance Call | |
| MaintenancePackage | MaintenancePackage | Maintenance Package | ||
| SchedulingType | SchedulingType | Scheduling Type | ||
| SchedulingTypeName | ||||
| SchedulingStatus | ||||
| sstring256asSchedulingStatusText | Call Status | |||
| MaintPlanStatusCriticality | ||||
| MaintenancePlanDesc | _MaintenancePlan | MaintenancePlanDesc | ||
| addedforGanttPOCMeasuringPoint | Measuring Point | |||
| MaintenanceTaskPerformanceUnit | MaintenanceTaskPerformanceUnit | Counter Unit | ||
| MaintenanceCallNextPlannedDate | MaintenanceCallNextPlannedDate | Planned Date | ||
| MaintPlnCnctntdDuePackagesTxt | MaintPlnCnctntdDuePackagesTxt | |||
| CompletionDate | CompletionDate | Completion Date | ||
| CompletionTime | CompletionTime | Completion Time | ||
| CycleSetSequence | CycleSetSequence | Cycle Sequence | ||
| dec220asMaintCallCompltnCntrRdng | Counter Reading on Completion | |||
| dec220asMaintCallNextPlndCntrRdng | Planned Counter Reading | |||
| MaintenanceCallIsOutstanding | MaintenanceCallIsOutstanding | Call Is Outstanding | ||
| MaintCallIsInvokedOnPlndDate | MaintCallIsInvokedOnPlndDate | Invoked on Planned Date | ||
| MaintCallHorizonIsNotReached | MaintCallHorizonIsNotReached | Call Horizon not Reached | ||
| MaintPlanLastScheduledDate | MaintPlanLastScheduledDate | Last Call On | ||
| ReleasedByUserName | ReleasedByUserName | Released By | ||
| MaintenancePlanCallObject | _MaintenancePlan | MaintenancePlanCallObject | Call Object | |
| MaintenancePlanCategory | _MaintenancePlan | MaintenancePlanCategory | Plan Category | |
| MaintenancePlanCategoryDesc | ||||
| LateCompletionShiftInPercent | _MaintenancePlan | LateCompletionShiftInPercent | ||
| EarlyCompletionTolerancePct | _MaintenancePlan | EarlyCompletionTolerancePct | ||
| EarlyCompletionShiftInPercent | _MaintenancePlan | EarlyCompletionShiftInPercent | ||
| LateCompletionTolerancePercent | _MaintenancePlan | LateCompletionTolerancePercent | ||
| MaintPlanSchedgIndicator | _MaintenancePlan | MaintPlanSchedgIndicator | ||
| MaintPlanIsNotPerformanceBased | ||||
| quan30asCallHorizonValue | ||||
| MaintenanceCallHorizonCalcType | MaintenanceCallHorizonCalcType | Call Horizon Unit | ||
| MaintPlanCallHrznCalcTypeText | ||||
| PrdcssrCallObjCompltnIsRqd | _MaintenancePlan | PrdcssrCallObjCompltnIsRqd | Completion Required | |
| FactoryCalendar | _MaintenancePlan | FactoryCalendar | Factory Calendar | |
| MaintPlanPrdcssrCallCompltnDte | MaintPlanPrdcssrCallCompltnDte | Completion Predecessor | ||
| MaintenancePlanManualCallDate | MaintenancePlanManualCallDate | Manual Call | ||
| MaintPlanIsMultiCounter | ||||
| _MaintenancePlan | _MaintenancePlan | |||
| _SchedulingType | _SchedulingType | |||
| _MaintTaskPerformanceUnit | _MaintTaskPerformanceUnit | |||
| _ReleasedByUserName | _ReleasedByUserName | |||
| _MaintPlanCallObjects | _MaintPlanCallObjects |
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_MaintenancePlanScheduleTP.
-- 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 C_MaintenancePlanScheduleTP AS
SELECT
MaintenancePlan,
MaintenancePlanCallNumber,
MaintenancePackage,
SchedulingType,
_SchedulingType._Text[Language = $session.system_language ].SchedulingTypeName AS SchedulingTypeName,
cast(SchedulingStatus as char1 preserving type ) AS SchedulingStatus,
cast (0 as int1 ) AS MaintPlanStatusCriticality,
_MaintenancePlan.MaintenancePlanDesc AS MaintenancePlanDesc,
MaintenanceTaskPerformanceUnit,
MaintenanceCallNextPlannedDate,
MaintPlnCnctntdDuePackagesTxt,
CompletionDate,
CompletionTime,
CycleSetSequence,
cast ( unit_conversion( quantity => MaintCallCompltnCntrRdng, source_unit => I_MaintPlanMaintCall._MaintTaskPerformanceUnit._Dimension.UnitOFMeasureSiUnit, target_unit => MaintenanceTaskPerformanceUnit, error_handling=> 'KEEP_UNCONVERTED' ) as abap.dec(22,0) ) as MaintCallCompltnCntrRdng AS dec220asMaintCallCompltnCntrRdng,
cast ( unit_conversion( quantity => MaintCallNextPlndCntrRdng, source_unit => I_MaintPlanMaintCall._MaintTaskPerformanceUnit._Dimension.UnitOFMeasureSiUnit, target_unit => MaintenanceTaskPerformanceUnit, error_handling=> 'KEEP_UNCONVERTED' ) as abap.dec(22,0) ) as MaintCallNextPlndCntrRdng AS dec220asMaintCallNextPlndCntrRdng,
MaintenanceCallIsOutstanding,
MaintCallIsInvokedOnPlndDate,
MaintCallHorizonIsNotReached,
MaintPlanLastScheduledDate,
ReleasedByUserName,
_MaintenancePlan.MaintenancePlanCallObject AS MaintenancePlanCallObject,
_MaintenancePlan.MaintenancePlanCategory AS MaintenancePlanCategory,
_MaintenancePlan._MaintenancePlanCatParam._Text[1:Language = $session.system_language].MaintenancePlanCategoryDesc AS MaintenancePlanCategoryDesc,
_MaintenancePlan.LateCompletionShiftInPercent AS LateCompletionShiftInPercent,
_MaintenancePlan.EarlyCompletionTolerancePct AS EarlyCompletionTolerancePct,
_MaintenancePlan.EarlyCompletionShiftInPercent AS EarlyCompletionShiftInPercent,
_MaintenancePlan.LateCompletionTolerancePercent AS LateCompletionTolerancePercent,
_MaintenancePlan.MaintPlanSchedgIndicator AS MaintPlanSchedgIndicator,
cast(' ' as boolean ) AS MaintPlanIsNotPerformanceBased,
cast (case _MaintenancePlan.MaintenanceCallHorizonCalcType when ' ' then _MaintenancePlan.CallHorizonPercent else _MaintenancePlan.CallHorizonInDays end as abap.quan( 3, 0)) as CallHorizonValue AS quan30asCallHorizonValue,
MaintenanceCallHorizonCalcType,
_CallHrznCalcTypeTxt[Language = $session.system_language ].MaintPlanCallHrznCalcTypeText AS MaintPlanCallHrznCalcTypeText,
_MaintenancePlan.PrdcssrCallObjCompltnIsRqd AS PrdcssrCallObjCompltnIsRqd,
_MaintenancePlan.FactoryCalendar AS FactoryCalendar,
MaintPlanPrdcssrCallCompltnDte,
MaintenancePlanManualCallDate,
cast(' ' as boolean ) AS MaintPlanIsMultiCounter
FROM I_MaintPlanMaintCall
LEFT OUTER JOIN C_MaintPlanCallObject AS _MaintPlanCallObjects ON _MaintPlanCallObjects.MaintenancePlan = MaintenancePlan AND _MaintPlanCallObjects.MaintenancePlanCallNumber = MaintenancePlanCallNumber -- association [0..*]
LEFT OUTER JOIN I_MaintenancePlanBasic AS _MaintenancePlan ON _MaintenancePlan.MaintenancePlan = MaintenancePlan -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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