I_MaintPlanCallHistory

DDL: I_MAINTPLANCALLHISTORY SQL: IMPLANCALLHIST Type: view BASIC

Maintenance Plan Call History

I_MaintPlanCallHistory is a Basic CDS View that provides data about "Maintenance Plan Call History" in SAP S/4HANA. It reads from 2 data sources (mhis, mpla) and exposes 29 fields with key fields MaintenancePlan, MaintenancePlanCallNumber, MaintenancePackage. It has 6 associations to related views.

Data Sources (2)

SourceAliasJoin Type
mhis mhis from
mpla mpla inner

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_MaintenancePlan _MaintenancePlan _MaintenancePlan.MaintenancePlan = $projection.MaintenancePlan
[0..1] I_MaintenancePackage _MaintenancePackage _MaintenancePackage.MaintenanceStrategy = $projection.MaintenanceStrategy and _MaintenancePackage.MaintenancePackage = $projection.MaintenancePackage
[0..1] I_MaintenanceStrategy _MaintenanceStrategy _MaintenanceStrategy.MaintenanceStrategy = $projection.MaintenanceStrategy
[0..1] I_Indicator _MaintenancePlanCallIsLocked _MaintenancePlanCallIsLocked.IndicatorValue = $projection.MaintenancePlanCallIsLocked
[0..1] I_MaintCallSchedulingType _SchedulingType _SchedulingType.SchedulingType = $projection.SchedulingType
[0..1] I_User _ReleasedByUserName _ReleasedByUserName.UserID = $projection.ReleasedByUserName

Annotations (12)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName IMPLANCALLHIST view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Maintenance Plan Call History view
ObjectModel.representativeKey MaintenancePlanCallNumber view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan mhis warpl MaintenancePlan
KEY MaintenancePlanCallNumber mhis abnum Stage number
KEY MaintenancePackage mhis zaehl Sort pos.
MaintenanceStrategy mpla strat Strategy Fields
MaintenanceCallNextPlannedDate mhis nplda Planned Date
SchedulingType mhis terma SchedulngType
MaintenancePlanCallIsLocked mhis tsenm SchedStatus
SchedulingStatus mhis tstat Tech. Status
hordaendasMaintenanceCallDate
CompletionDate mhis lrmdt Last Completion
CycleSetSequence mhis cycleseqind Cycle Set Seq.
MaintCallCompltnCntrRdng mhis rzaeh CompConfReadg
MaintCallNextPlndCntrRdng mhis nzaeh TL counter
ReleasedByUserName mhis abrna Name
MaintCallIsInvokedOnPlndDate mhis tsabr SchedStatus
MaintenanceCallIsOutstanding mhis tsvbt SchedStatus
MaintCallHorizonIsNotReached mhis tsenq SchedStatus
MaintPlanLastScheduledDate mhis abrud Call date
MaintPlanPrdcssrCallCompltnDte mhis npldz Compl.Predecess
MaintenancePlanManualCallDate mhis manda Manual call
MaintPlanCycRcrrcIntervalQty mhis adcycle Package cycle
MaintPlanCycRcrrcIntervalUnit mhis adunit Unit
MaintenanceCallLastPlannedDate mhis npldo Last date
_MaintenancePlan _MaintenancePlan
_MaintenancePlanCallIsLocked _MaintenancePlanCallIsLocked
_SchedulingType _SchedulingType
_MaintenancePackage _MaintenancePackage
_MaintenanceStrategy _MaintenanceStrategy
_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_MaintPlanCallHistory.
-- 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: IMPLANCALLHIST

CREATE VIEW I_MaintPlanCallHistory AS
SELECT
  mhis.warpl AS MaintenancePlan,
  mhis.abnum AS MaintenancePlanCallNumber,
  mhis.zaehl AS MaintenancePackage,
  mpla.strat AS MaintenanceStrategy,
  mhis.nplda AS MaintenanceCallNextPlannedDate,
  mhis.terma AS SchedulingType,
  mhis.tsenm AS MaintenancePlanCallIsLocked,
  mhis.tstat AS SchedulingStatus,
  case mhis.horda when '' then '00000000' else mhis.horda end as MaintenanceCallDate AS hordaendasMaintenanceCallDate,
  mhis.lrmdt AS CompletionDate,
  mhis.cycleseqind AS CycleSetSequence,
  mhis.rzaeh AS MaintCallCompltnCntrRdng,
  mhis.nzaeh AS MaintCallNextPlndCntrRdng,
  mhis.abrna AS ReleasedByUserName,
  mhis.tsabr AS MaintCallIsInvokedOnPlndDate,
  mhis.tsvbt AS MaintenanceCallIsOutstanding,
  mhis.tsenq AS MaintCallHorizonIsNotReached,
  mhis.abrud AS MaintPlanLastScheduledDate,
  mhis.npldz AS MaintPlanPrdcssrCallCompltnDte,
  mhis.manda AS MaintenancePlanManualCallDate,
  mhis.adcycle AS MaintPlanCycRcrrcIntervalQty,
  mhis.adunit AS MaintPlanCycRcrrcIntervalUnit,
  mhis.npldo AS MaintenanceCallLastPlannedDate
FROM mhis
INNER JOIN mpla ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaintenancePlan AS _MaintenancePlan ON _MaintenancePlan.MaintenancePlan = MaintenancePlan  -- association [0..1]
LEFT OUTER JOIN I_MaintenancePackage AS _MaintenancePackage ON _MaintenancePackage.MaintenanceStrategy = MaintenanceStrategy AND _MaintenancePackage.MaintenancePackage = MaintenancePackage  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceStrategy AS _MaintenanceStrategy ON _MaintenanceStrategy.MaintenanceStrategy = MaintenanceStrategy  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _MaintenancePlanCallIsLocked ON _MaintenancePlanCallIsLocked.IndicatorValue = MaintenancePlanCallIsLocked  -- association [0..1]
LEFT OUTER JOIN I_MaintCallSchedulingType AS _SchedulingType ON _SchedulingType.SchedulingType = SchedulingType  -- association [0..1]
LEFT OUTER JOIN I_User AS _ReleasedByUserName ON _ReleasedByUserName.UserID = ReleasedByUserName  -- association [0..1]
;