I_MaintPlanMaintCall
Maintenance calls for Maintenance Plan
I_MaintPlanMaintCall is a Composite CDS View that provides data about "Maintenance 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. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintPlanCallHistory | I_MaintPlanCallHistory | from |
Associations (5)
| 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..*] | I_MaintPlanCallHrznCalcTypeTxt | _CallHrznCalcTypeTxt | _CallHrznCalcTypeTxt.MaintenanceCallHorizonCalcType = $projection.MaintenanceCallHorizonCalcType |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | IMNTPLNMNTCALL | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Maintenance calls for Maintenance Plan | view | |
| ObjectModel.representativeKey | MaintenancePlanCallNumber | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #COMPOSITE | view | |
| AbapCatalog.preserveKey | true | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | MaintenancePlan | MaintenancePlan | |
| KEY | MaintenancePlanCallNumber | MaintenancePlanCallNumber | Stage number | |
| SchedulingType | ||||
| SchedulingStatus | ||||
| MeasuringPoint | ||||
| MaintenanceCallNextPlannedDate | ||||
| MaintenanceCallDate | ||||
| CompletionTime | ||||
| CycleSetSequence | ||||
| MaintCallCompltnCntrRdng | ||||
| MaintCallNextPlndCntrRdng | ||||
| MaintenanceCallIsOutstanding | ||||
| MaintCallIsInvokedOnPlndDate | ||||
| MaintCallHorizonIsNotReached | ||||
| MaintPlanLastScheduledDate | ||||
| ReleasedByUserName | ReleasedByUserName | Description | ||
| UserDescription | _ReleasedByUserName | UserDescription | Full Name | |
| MaintPlnCnctntdDuePackagesTxt | ||||
| MaintCallCompltnDateVariance | ||||
| MaintenancePackage | ||||
| MaintenanceStrategy | ||||
| MaintenanceCallHorizonCalcType | ||||
| MaintPlanPrdcssrCallCompltnDte | ||||
| MaintenancePlanManualCallDate | ||||
| _CallHrznCalcTypeTxt | _CallHrznCalcTypeTxt | |||
| _MaintenancePlan | _MaintenancePlan | |||
| _SchedulingType | _SchedulingType | |||
| _MaintTaskPerformanceUnit | _MaintTaskPerformanceUnit | |||
| _ReleasedByUserName | _ReleasedByUserName |
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_MaintPlanMaintCall.
-- 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: IMNTPLNMNTCALL
CREATE VIEW I_MaintPlanMaintCall AS
SELECT
MaintenancePlan,
MaintenancePlanCallNumber,
max( SchedulingType ) AS SchedulingType,
max( SchedulingStatus ) AS SchedulingStatus,
max ( _MaintenanceSingleCycle.MeasuringPoint) AS MeasuringPoint,
min( MaintenanceCallNextPlannedDate ) AS MaintenanceCallNextPlannedDate,
min( MaintenanceCallDate ) AS MaintenanceCallDate,
max( _MaintCallCompltnDateTime.CompletionTime ) AS CompletionTime,
min( CycleSetSequence ) AS CycleSetSequence,
min( MaintCallCompltnCntrRdng ) AS MaintCallCompltnCntrRdng,
min( MaintCallNextPlndCntrRdng ) AS MaintCallNextPlndCntrRdng,
max( MaintenanceCallIsOutstanding ) AS MaintenanceCallIsOutstanding,
max( MaintCallIsInvokedOnPlndDate ) AS MaintCallIsInvokedOnPlndDate,
max( MaintCallHorizonIsNotReached ) AS MaintCallHorizonIsNotReached,
min( MaintPlanLastScheduledDate ) AS MaintPlanLastScheduledDate,
ReleasedByUserName,
_ReleasedByUserName.UserDescription AS UserDescription,
cast ('' as abap.sstring(256) ) AS MaintPlnCnctntdDuePackagesTxt,
cast ('' as abap.sstring(11) ) AS MaintCallCompltnDateVariance,
max(MaintenancePackage) AS MaintenancePackage,
max(MaintenanceStrategy) AS MaintenanceStrategy,
max(_MaintenancePlan.MaintenanceCallHorizonCalcType) AS MaintenanceCallHorizonCalcType,
max( MaintPlanPrdcssrCallCompltnDte) AS MaintPlanPrdcssrCallCompltnDte,
max(MaintenancePlanManualCallDate) AS MaintenancePlanManualCallDate
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_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