C_MaintenancePlanDEX
Maintenance Plan Data Extractor
C_MaintenancePlanDEX (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Maintenance Plan · Asset Management
C_MaintenancePlanDEX is a Consumption CDS View (Dimension) that provides data about "Maintenance Plan Data Extractor" in SAP S/4HANA. It reads from 1 data source (I_MaintenancePlanCycle) and exposes 52 fields with key fields MaintenancePlan, MaintenancePlanCycle. It has 2 associations to related views.
SAP Help Documentation
| Category | CDS Views for Maintenance Management |
|---|---|
| Data Category | Dimension |
| Status | Released |
This CDS view provides the prerequisites for answering the following business questions: What is the description of the maintenance plan? What is the category of the maintenance plan? What is the creation date of the maintenance plan? Who created the maintenance plan? When was the last time the maintenance plan changed? Who changed the maintenance plan? What is the related maintenance strategy type if the maintenance plan is a strategy plan? What are the details of the maintenance cycle? How many maintenance items are in the maintenance plan? What are the scheduling parameters of the maintenance plan? Note This CDS view is modeled for usage as a datasource in Business Warehouse. We recommend that you only use it for this purpose.
Prerequisites
Authorizations You have authorizations to display the relevant maintenance plans in transactions IP03 and IP16 . This check is based on the following fields: Authorization Group ( I_BEGRP ) Transaction Code ( I_TCODE ) One of the following business catalogs needs to be assigned to a user to be able to use this CDS view: SAP_EAM_BC_MNTPLAN_DSP_PC SAP_EAM_BC_MP_DSP_MP_PC SAP_EAM_BC_MP_DSP_PC SAP_EAM_BC_MP_MNG_PC SAP_EAM_BC_MP_MP_DSP_PC SAP_EAM_BC_MPLAN_MC SAP_EAM_BC_MPLAN_MW_MC SAP_EAM_BC_MPLANIT_MC SAP_EAM_BC_MPLANIT_MW_MC
Structure
Business Objects This view is built on the maintenance plan business object. Measures and Attributes Some important measures and attributes are: Maintenance plan description Maintenance plan category Creation date Creator Last change date Changer Maintenance strategy type Maintenance cycle data, for example Text for maintenance package/cycle and Cycle Set Sequence
SAP Business Warehouse (SAP BW) Extraction
Data extraction type Delta: LastChangeDateTime
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Asset Management |
| Application Component | PM-PRM-TL |
| Capabilities | Data Source for Data Extraction |
| Package | Asset Management for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What is the description of the maintenance plan?</p></li> <li><p>What is the category of the maintenance plan?</p></li> <li><p>What is the creation date of the maintenance plan?</p></li> <li><p>Who created the maintenance plan?</p></li> <li><p>When was the last time the maintenance plan changed?</p></li> <li><p>Who changed the maintenance plan?</p></li> <li><p>What is the related maintenance strategy type if the maintenance plan is a strategy plan?</p></li> <li><p>What are the details of the maintenance cycle? </p></li> <li><p>How many maintenance items are in the maintenance plan?</p></li> <li><p>What are the scheduling parameters of the maintenance plan?</p></li> </ul> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenancePlanCycle | I_MaintenancePlanCycle | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaintenancePlanBasic | _MaintenancePlan | $projection.MaintenancePlan = _MaintenancePlan.MaintenancePlan -- Extensions, do not expose as association: |
| [0..1] | E_MaintenancePlan | _MaintenancePlanExtension | $projection.MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMAINTPLANDEX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Plan Data Extractor | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | MaintenancePlanCycle | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.byElement.name | LastChangeDateTime | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.modelingPattern | #EXTRACTION_DATA_SOURCE | view | |
| ObjectModel.sapObjectNodeType.name | MaintenancePlan | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | I_MaintenancePlanCycle | MaintenancePlan | Maintenance Plan |
| KEY | MaintenancePlanCycle | I_MaintenancePlanCycle | MaintenancePlanCycle | Counter in Control Tables |
| MaintenancePlanDesc | _MaintenancePlan | MaintenancePlanDesc | Maintenance Plan Text | |
| CreationDate | _MaintenancePlan | CreationDate | Date of creation | |
| CreatedByUser | _MaintenancePlan | CreatedByUser | Name of Person Responsible for Creating the Object | |
| LastChangeDate | _MaintenancePlan | LastChangeDate | Last Changed On | |
| LastChangedByUser | _MaintenancePlan | LastChangedByUser | Name of Person Who Changed Object | |
| MaintenanceStrategy | _MaintenancePlan | MaintenanceStrategy | Maintenance Strategy | |
| SchedulingDuration | _MaintenancePlan | SchedulingDuration | Scheduling Period | |
| MaintPlanIsLockedAgainstCalls | _MaintenancePlan | MaintPlanIsLockedAgainstCalls | Indicator: maintenance plan locked against calls | |
| NumberOfMaintenanceItems | _MaintenancePlan | NumberOfMaintenanceItems | Number of maintenance items in the maintenance plan | |
| MaintenanceCall | _MaintenancePlan | MaintenanceCall | Maintenance Plan Call Number | |
| LateCompletionShiftInPercent | _MaintenancePlan | LateCompletionShiftInPercent | Shift Factor for Late Completion | |
| EarlyCompletionShiftInPercent | _MaintenancePlan | EarlyCompletionShiftInPercent | Shift Factor for Early Completion | |
| LateCompletionTolerancePercent | _MaintenancePlan | LateCompletionTolerancePercent | Tolerance for Late Completion (%) | |
| EarlyCompletionTolerancePct | _MaintenancePlan | EarlyCompletionTolerancePct | Tolerance for Early Completion (%) | |
| CycleModificationRatio | _MaintenancePlan | CycleModificationRatio | Cycle modification factor | |
| MaintPlanSchedgIndicator | _MaintenancePlan | MaintPlanSchedgIndicator | Scheduling indicator | |
| CallHorizonPercent | Call horizon for maintenance plan calls in percentage | |||
| CallHorizonInDays | Call horizon for maintenance plan calls in days | |||
| MaintenanceCallHorizonCalcType | _MaintenancePlan | MaintenanceCallHorizonCalcType | Calculation Type of Call Horizon | |
| MaintPlanLogicalOperatorCode | _MaintenancePlan | MaintPlanLogicalOperatorCode | Indicator for OR or AND link | |
| AuthorizationGroup | _MaintenancePlan | AuthorizationGroup | Technical Object Authorization Group | |
| MaintenancePlanCategory | _MaintenancePlan | MaintenancePlanCategory | Maintenance plan category | |
| SchedulingDurationUnit | _MaintenancePlan | SchedulingDurationUnit | Unit for Scheduling Period | |
| BasicStartDate | _MaintenancePlan | BasicStartDate | Start date | |
| MaintPlanStartCntrReadingValue | _MaintenancePlan | MaintPlanStartCntrReadingValue | Start counter reading | |
| PrdcssrCallObjCompltnIsRqd | _MaintenancePlan | PrdcssrCallObjCompltnIsRqd | Only Create New Call Object After Completing Predecessor | |
| MaintPlanFreeDefinedAttrib | _MaintenancePlan | MaintPlanFreeDefinedAttrib | Sort field for maintenance plans | |
| FactoryCalendar | _MaintenancePlan | FactoryCalendar | Factory calendar key | |
| MaintenanceLeadFloatInDays | _MaintenancePlan | MaintenanceLeadFloatInDays | Lead Float in Days | |
| SchedulingStartDate | _MaintenancePlan | SchedulingStartDate | Start Date for Scheduling | |
| SchedulingStartTime | _MaintenancePlan | SchedulingStartTime | Start Time for Scheduling | |
| MultipleCounterPlanShiftFactor | _MaintenancePlan | MultipleCounterPlanShiftFactor | Shift Factor for Multiple Counter Plan | |
| MaintPlanEndCntrReadingValue | _MaintenancePlan | MaintPlanEndCntrReadingValue | End Counter for Scheduling | |
| SchedulingEndDate | _MaintenancePlan | SchedulingEndDate | End Date for Scheduling | |
| LastChangeDateTime | _MaintenancePlan | LastChangeDateTime | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | |
| ComparisonOperator | ComparisonOperator | Type of OPTION component in row type of a Ranges type | ||
| MaintPlanCycRcrrcIntervalQty | MaintPlanCycRcrrcIntervalQty | Maintenance package cycle/offset | ||
| MaintPlanCycRcrrcIntervalUnit | MaintPlanCycRcrrcIntervalUnit | Unit for the performance of maintenance tasks | ||
| MaintPlanCycleDesc | MaintPlanCycleDesc | Text for maintenance package/cycle (time/performance) | ||
| Language | Language | Primary language for object texts | ||
| MeasuringPoint | MeasuringPoint | Measuring point | ||
| MaintPlanCycleStartOffsetValue | MaintPlanCycleStartOffsetValue | Start offset of a time-based maintenance package | ||
| MaintenancePlanCycleIsInactive | MaintenancePlanCycleIsInactive | Indicator: event scheduling inactive | ||
| CycleSetSequence | CycleSetSequence | Cycle Set Sequence | ||
| CycleSetSequenceRepeatFactor | CycleSetSequenceRepeatFactor | Repeat Factor for Cycle Set Sequence | ||
| _MaintenancePlanCatParam | _MaintenancePlan | _MaintenancePlanCatParam | ||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _Language | _Language | |||
| _MeasuringPoint | _MeasuringPoint | |||
| _MaintenancePlan | _MaintenancePlan |
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_MaintenancePlanDEX.
-- 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: CMAINTPLANDEX
CREATE VIEW C_MaintenancePlanDEX AS
SELECT
I_MaintenancePlanCycle.MaintenancePlan AS MaintenancePlan,
I_MaintenancePlanCycle.MaintenancePlanCycle AS MaintenancePlanCycle,
_MaintenancePlan.MaintenancePlanDesc AS MaintenancePlanDesc,
_MaintenancePlan.CreationDate AS CreationDate,
_MaintenancePlan.CreatedByUser AS CreatedByUser,
_MaintenancePlan.LastChangeDate AS LastChangeDate,
_MaintenancePlan.LastChangedByUser AS LastChangedByUser,
_MaintenancePlan.MaintenanceStrategy AS MaintenanceStrategy,
_MaintenancePlan.SchedulingDuration AS SchedulingDuration,
_MaintenancePlan.MaintPlanIsLockedAgainstCalls AS MaintPlanIsLockedAgainstCalls,
_MaintenancePlan.NumberOfMaintenanceItems AS NumberOfMaintenanceItems,
_MaintenancePlan.MaintenanceCall AS MaintenanceCall,
_MaintenancePlan.LateCompletionShiftInPercent AS LateCompletionShiftInPercent,
_MaintenancePlan.EarlyCompletionShiftInPercent AS EarlyCompletionShiftInPercent,
_MaintenancePlan.LateCompletionTolerancePercent AS LateCompletionTolerancePercent,
_MaintenancePlan.EarlyCompletionTolerancePct AS EarlyCompletionTolerancePct,
_MaintenancePlan.CycleModificationRatio AS CycleModificationRatio,
_MaintenancePlan.MaintPlanSchedgIndicator AS MaintPlanSchedgIndicator,
cast( _MaintenancePlan.CallHorizonPercent as callhorizonpercent preserving type) AS CallHorizonPercent,
cast( _MaintenancePlan.CallHorizonInDays as callhorizonindays preserving type) AS CallHorizonInDays,
_MaintenancePlan.MaintenanceCallHorizonCalcType AS MaintenanceCallHorizonCalcType,
_MaintenancePlan.MaintPlanLogicalOperatorCode AS MaintPlanLogicalOperatorCode,
_MaintenancePlan.AuthorizationGroup AS AuthorizationGroup,
_MaintenancePlan.MaintenancePlanCategory AS MaintenancePlanCategory,
_MaintenancePlan.SchedulingDurationUnit AS SchedulingDurationUnit,
_MaintenancePlan.BasicStartDate AS BasicStartDate,
_MaintenancePlan.MaintPlanStartCntrReadingValue AS MaintPlanStartCntrReadingValue,
_MaintenancePlan.PrdcssrCallObjCompltnIsRqd AS PrdcssrCallObjCompltnIsRqd,
_MaintenancePlan.MaintPlanFreeDefinedAttrib AS MaintPlanFreeDefinedAttrib,
_MaintenancePlan.FactoryCalendar AS FactoryCalendar,
_MaintenancePlan.MaintenanceLeadFloatInDays AS MaintenanceLeadFloatInDays,
_MaintenancePlan.SchedulingStartDate AS SchedulingStartDate,
_MaintenancePlan.SchedulingStartTime AS SchedulingStartTime,
_MaintenancePlan.MultipleCounterPlanShiftFactor AS MultipleCounterPlanShiftFactor,
_MaintenancePlan.MaintPlanEndCntrReadingValue AS MaintPlanEndCntrReadingValue,
_MaintenancePlan.SchedulingEndDate AS SchedulingEndDate,
_MaintenancePlan.LastChangeDateTime AS LastChangeDateTime,
ComparisonOperator,
MaintPlanCycRcrrcIntervalQty,
MaintPlanCycRcrrcIntervalUnit,
MaintPlanCycleDesc,
Language,
MeasuringPoint,
MaintPlanCycleStartOffsetValue,
MaintenancePlanCycleIsInactive,
CycleSetSequence,
CycleSetSequenceRepeatFactor,
_MaintenancePlan._MaintenancePlanCatParam AS _MaintenancePlanCatParam
FROM I_MaintenancePlanCycle
LEFT OUTER JOIN I_MaintenancePlanBasic AS _MaintenancePlan ON MaintenancePlan = _MaintenancePlan.MaintenancePlan -- association [1..1]
LEFT OUTER JOIN E_MaintenancePlan AS _MaintenancePlanExtension ON MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan -- 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