I_MaintPlanCallHistory
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. Part of development package IPRM.
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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