C_MaintenancePlanObjPg
Object Page for Maintenance Plan
C_MaintenancePlanObjPg is a Consumption CDS View that provides data about "Object Page for Maintenance Plan" in SAP S/4HANA. It reads from 1 data source (I_MaintenancePlanTP) and exposes 73 fields with key field MaintenancePlan. It has 13 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenancePlanTP | _MaintenancePlanTP | from |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_MaintPlanChgHistory | _MaintPlanChgHistory | $projection.MaintenancePlan = _MaintPlanChgHistory.ChangeDocObject |
| [0..*] | C_MaintenanceItemObjPg | _MaintenanceItem | _MaintenanceItem.MaintenancePlan = $projection.MaintenancePlan |
| [0..1] | C_MaintPlnObjPgSingleCycle | _MaintenanceSingleCycleTP | _MaintenanceSingleCycleTP.MaintenancePlan = $projection.MaintenancePlan |
| [0..*] | C_MaintPlanObjPgCycle | _Cycles | _Cycles.MaintenancePlan = $projection.MaintenancePlan |
| [0..*] | C_MaintPlanObjPgMaintCall | _ScheduledCalls | _ScheduledCalls.MaintenancePlan = $projection.MaintenancePlan and SchedulingType <> 'M' |
| [0..*] | C_MaintPlanObjPgMaintCall | _ManualCalls | _ManualCalls.MaintenancePlan = $projection.MaintenancePlan and SchedulingType = 'M' |
| [0..*] | C_MaintPlanObjPgMaintCall | _MaintenanceCallTP | _MaintenanceCallTP.MaintenancePlan = $projection.MaintenancePlan |
| [0..1] | I_MaintCallObjectType | _MaintCallObjectType | _MaintCallObjectType.MaintenanceCallObjectType = $projection.MaintenanceCallObjectType |
| [0..1] | I_MaintenancePlanType | _MaintenancePlanType | _MaintenancePlanType.MaintenancePlanType = $projection.MaintenancePlanType |
| [0..1] | I_UnitOfMeasure | _MaintPlanStartBufferUnit | _MaintPlanStartBufferUnit.UnitOfMeasure = $projection.MaintPlanStartBufferUnit |
| [0..1] | P_MaintPlanLastMsmtDoc | _MaintPlanLastMsmtDoc | _MaintPlanLastMsmtDoc.MaintenancePlan = $projection.MaintenancePlan |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CMAINTPLANOBJPG | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Object Page for Maintenance Plan | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view | |
| ObjectModel.draftEnabled | false | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| Search.searchable | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | MaintenancePlan | MaintenancePlan | |
| MaintenancePlanDesc | MaintenancePlanDesc | |||
| MaintenancePlanInternalID | MaintenancePlanInternalID | |||
| MaintenanceStrategy | MaintenanceStrategy | |||
| SchedulingDuration | Scheduling Period | |||
| SchedulingDurationUnit | SchedulingDurationUnit | Scheduling Period Unit | ||
| CycleModificationRatio | CycleModificationRatio | Cycle Modification Factor | ||
| MaintPlanSchedgIndicator | MaintPlanSchedgIndicator | Scheduling Indicator | ||
| MaintenanceCallHorizonCalcType | MaintenanceCallHorizonCalcType | |||
| CallHorizonPercent | CallHorizonPercent | |||
| CallHorizonInDays | CallHorizonInDays | |||
| AuthorizationGroup | AuthorizationGroup | Authorization Group | ||
| CallHorizonValue | CallHorizonValue | Call Horizon | ||
| CallHorizonUnit | Call Horizon Unit | |||
| MaintenancePlanCategory | MaintenancePlanCategory | Category | ||
| BasicStartDate | BasicStartDate | Start Date | ||
| MaintPlanFreeDefinedAttrib | MaintPlanFreeDefinedAttrib | Sort Field | ||
| SchedulingStartDate | SchedulingStartDate | Start Date for Scheduling | ||
| MaintSchedulingStartCounter | MaintSchedulingStartCounter | Start Counter Reading | ||
| fltpasMaintSchedulingStartCounter_H | ||||
| CharcValueUnit | Counter Unit | |||
| FactoryCalendar | FactoryCalendar | Factory Calendar | ||
| LateCompletionShiftFactor | LateCompletionShiftFactor | Shift Factor for Late Completion | ||
| LateCompletionTolerancePercent | LateCompletionTolerancePercent | Tolerance for Late Completion | ||
| EarlyCompletionShiftFactor | EarlyCompletionShiftFactor | Shift Factor for Early Completion | ||
| EarlyCompletionTolerancePct | EarlyCompletionTolerancePct | Tolerance for Early Completion | ||
| CompletionShiftFactorUnit | Completion Shift Factor Unit | |||
| CompletionToleranceUnit | Completion Tolerance Unit | |||
| PrdcssrCallObjCompltnIsRqd | PrdcssrCallObjCompltnIsRqd | Completion Required | ||
| MaintPlanStartBufferQuantity | MaintPlanStartBufferQuantity | Lead Float | ||
| MaintPlanStartBufferUnit | MaintPlanStartBufferUnit | Lead Float Unit | ||
| LogicalOperator | LogicalOperator | Operation Type | ||
| Customer | Customer | Sold-to Party | ||
| MaintenancePlanLongText | Long Text | |||
| MaintenancePlanSystemStatus | Status | |||
| MaintPlanStatusCriticality | ||||
| MaintenancePlanCallObject | _MaintenancePlanCatParam | MaintenancePlanCallObject | ||
| SchedulingEndDate | SchedulingEndDate | End Date for Scheduling | ||
| MaintPlnRmngScheduleDays | Remaining Schedule Days | |||
| fltpasMaintSchedulingEndCounter_H | ||||
| MaintPlnRmngCounterValue | Remaining Counter | |||
| However | ||||
| Ontheotherhand | ||||
| Furthermore | ||||
| Forexample | ||||
| AdminfieldsCreationDate | ||||
| CreatedByUser | CreatedByUser | User Name | ||
| CreatedByUserDescription | _CreatedByUser | UserDescription | Full Name | |
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangedByUserDescription | _LastChangedByUser | UserDescription | Full Name | |
| EndofAdminfields_MaintenanceItem | ||||
| _MaintenanceSingleCycleTP | _MaintenanceSingleCycleTP | |||
| _MaintenanceCallTP | _MaintenanceCallTP | |||
| _Cycles | _Cycles | |||
| _ScheduledCalls | _ScheduledCalls | |||
| _ManualCalls | _ManualCalls | |||
| _FactoryCalendar | _FactoryCalendar | |||
| _LogicalOperator | _LogicalOperator | |||
| _MaintenancePlanCatParam | _MaintenancePlanCatParam | |||
| _MaintenanceStrategy | _MaintenanceStrategy | |||
| _SchedulingDurationUnit | _SchedulingDurationUnit | |||
| _SchedulingIndicator | _SchedulingIndicator | |||
| _AuthorizationGroup | _AuthorizationGroup | |||
| _MaintCallObjectType | _MaintCallObjectType | |||
| _MaintCallConfIsRequired | _MaintCallConfIsRequired | |||
| _MaintenancePlanSortField | _MaintenancePlanSortField | |||
| _MaintenancePlanType | _MaintenancePlanType | |||
| _MaintPlanStartBufferUnit | _MaintPlanStartBufferUnit | |||
| _MaintPlanChgHistory | _MaintPlanChgHistory | |||
| _Customer | _Customer | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser |
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_MaintenancePlanObjPg.
-- 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: CMAINTPLANOBJPG
CREATE VIEW C_MaintenancePlanObjPg AS
SELECT
MaintenancePlan,
MaintenancePlanDesc,
MaintenancePlanInternalID,
MaintenanceStrategy,
cast( SchedulingDuration as fti_mnomzins) AS SchedulingDuration,
SchedulingDurationUnit,
CycleModificationRatio,
MaintPlanSchedgIndicator,
MaintenanceCallHorizonCalcType,
CallHorizonPercent,
CallHorizonInDays,
AuthorizationGroup,
CallHorizonValue,
cast ('' as msehi) AS CallHorizonUnit,
MaintenancePlanCategory,
BasicStartDate,
MaintPlanFreeDefinedAttrib,
SchedulingStartDate,
MaintSchedulingStartCounter,
cast( case when MaintSchedulingStartCounter <> '' then cast( MaintSchedulingStartCounter as abap.numc(22) ) when MaintSchedulingStartCounter = '' then '0000000000000000000000' end as abap.fltp ) as MaintSchedulingStartCounter_H AS fltpasMaintSchedulingStartCounter_H,
_MaintenanceSingleCycleTP._MeasuringPoint._Characteristic( P_KeyDate:$session.system_date ).CharcValueUnit AS CharcValueUnit,
FactoryCalendar,
LateCompletionShiftFactor,
LateCompletionTolerancePercent,
EarlyCompletionShiftFactor,
EarlyCompletionTolerancePct,
cast('%' as msehi) AS CompletionShiftFactorUnit,
cast('%' as msehi) AS CompletionToleranceUnit,
PrdcssrCallObjCompltnIsRqd,
MaintPlanStartBufferQuantity,
MaintPlanStartBufferUnit,
LogicalOperator,
Customer,
cast ('' as eams_ltext ) AS MaintenancePlanLongText,
cast ('' as txt30 ) AS MaintenancePlanSystemStatus,
cast (0 as int1 ) AS MaintPlanStatusCriticality,
_MaintenancePlanCatParam.MaintenancePlanCallObject AS MaintenancePlanCallObject,
SchedulingEndDate,
cast( '' as abap.char(14) ) AS MaintPlnRmngScheduleDays,
cast ( '' as abap.char(22) ) AS MaintPlnRmngCounterValue,
case when MaintSchedulingEndCounter <> '' then cast( cast( MaintSchedulingEndCounter as abap.numc(22) ) as abap.fltp ) - cast( _MaintPlanLastMsmtDoc.MeasurementCounterReading as abap.fltp ) AS However,
you will see 0 value for the empty fields in the data preview. On the other hand AS Ontheotherhand,
the database stores the null value. Furthermore AS Furthermore,
the filtering and the sorting logic will handle this value properly. AS Forexample,
CreatedByUser,
_CreatedByUser.UserDescription AS CreatedByUserDescription,
LastChangeDate,
LastChangedByUser,
_LastChangedByUser.UserDescription AS LastChangedByUserDescription
FROM I_MaintenancePlanTP AS _MaintenancePlanTP
LEFT OUTER JOIN C_MaintPlanChgHistory AS _MaintPlanChgHistory ON MaintenancePlan = _MaintPlanChgHistory.ChangeDocObject -- association [0..*]
LEFT OUTER JOIN C_MaintenanceItemObjPg AS _MaintenanceItem ON _MaintenanceItem.MaintenancePlan = MaintenancePlan -- association [0..*]
LEFT OUTER JOIN C_MaintPlnObjPgSingleCycle AS _MaintenanceSingleCycleTP ON _MaintenanceSingleCycleTP.MaintenancePlan = MaintenancePlan -- association [0..1]
LEFT OUTER JOIN C_MaintPlanObjPgCycle AS _Cycles ON _Cycles.MaintenancePlan = MaintenancePlan -- association [0..*]
LEFT OUTER JOIN C_MaintPlanObjPgMaintCall AS _ScheduledCalls ON _ScheduledCalls.MaintenancePlan = MaintenancePlan AND SchedulingType <> 'M' -- association [0..*]
LEFT OUTER JOIN C_MaintPlanObjPgMaintCall AS _ManualCalls ON _ManualCalls.MaintenancePlan = MaintenancePlan AND SchedulingType = 'M' -- association [0..*]
LEFT OUTER JOIN C_MaintPlanObjPgMaintCall AS _MaintenanceCallTP ON _MaintenanceCallTP.MaintenancePlan = MaintenancePlan -- association [0..*]
LEFT OUTER JOIN I_MaintCallObjectType AS _MaintCallObjectType ON _MaintCallObjectType.MaintenanceCallObjectType = MaintenanceCallObjectType -- association [0..1]
LEFT OUTER JOIN I_MaintenancePlanType AS _MaintenancePlanType ON _MaintenancePlanType.MaintenancePlanType = MaintenancePlanType -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaintPlanStartBufferUnit ON _MaintPlanStartBufferUnit.UnitOfMeasure = MaintPlanStartBufferUnit -- association [0..1]
LEFT OUTER JOIN P_MaintPlanLastMsmtDoc AS _MaintPlanLastMsmtDoc ON _MaintPlanLastMsmtDoc.MaintenancePlan = MaintenancePlan -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- 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