I_MaintPlanMaintCall

DDL: I_MAINTPLANMAINTCALL SQL: IMNTPLNMNTCALL Type: view COMPOSITE

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)

SourceAliasJoin Type
I_MaintPlanCallHistory I_MaintPlanCallHistory from

Associations (5)

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..*] I_MaintPlanCallHrznCalcTypeTxt _CallHrznCalcTypeTxt _CallHrznCalcTypeTxt.MaintenanceCallHorizonCalcType = $projection.MaintenanceCallHorizonCalcType

Annotations (11)

NameValueLevelField
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)

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