I_MaintenancePlanBasic

DDL: I_MAINTENANCEPLANBASIC SQL: IMAINTPLANBASIC Type: view BASIC

Maintenance Plan

I_MaintenancePlanBasic (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Asset Management

I_MaintenancePlanBasic is a Basic CDS View that provides data about "Maintenance Plan" in SAP S/4HANA. It reads from 1 data source (mpla) and exposes 64 fields with key field MaintenancePlan. It has 20 associations to related views.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
StatusReleased
Purpose
This CDS view helps you view details of a maintenance plan. It provides the data to answer 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? How many maintenance items are in the maintenance plan? What are the scheduling parameters of the maintenance plan? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations For service maintenance plans (MaintenancePlanCallObject = '5'), you have authorizations to display the relevant maintenance plans in transaction CRMS4_MPLAN_DISPLAY . This check is based on the following fields: Authorization Group (I_BEGRP) Transaction Code (I_TCODE) For other maintenance plans (MaintenancePlanCallObject <> '5'), 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
Further important fields Important fields in this view include the following: MaintenancePlan MaintenancePlanDesc MaintenanceStrategy Equipment FunctionalLocation NumberOfMaintenanceItems MaintenancePlanCategory MaintenancePlanCallObject

SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables)

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAsset Management
Application ComponentPM-PRM-TL
CapabilitiesData Source for Defining CDS Entities
PackageAsset Management for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view helps you view details of a maintenance plan. It provides the data to answer 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>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> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
mpla mpla from

Associations (20)

CardinalityTargetAliasCondition
[0..*] I_StatusObjectActiveStatus _StatusObjectActiveStatus _StatusObjectActiveStatus.StatusObject = $projection.MaintenancePlanInternalID
[0..*] I_MaintenanceItem _MaintenanceItem _MaintenanceItem.MaintenancePlan = $projection.MaintenancePlan
[0..1] I_MaintenancePlanCatParam _MaintenancePlanCatParam _MaintenancePlanCatParam.MaintenancePlanCategory = $projection.MaintenancePlanCategory
[0..1] I_Customer _Customer _Customer.Customer = $projection.Customer
[0..1] I_Equipment _Equipment _Equipment.Equipment = $projection.Equipment
[0..1] I_FunctionalLocationLabel _FunctionalLocationLabel _FunctionalLocationLabel.FunctionalLocation = $projection.FunctionalLocation
[0..*] I_MaintenanceCall _MaintenanceCall _MaintenanceCall.MaintenancePlan = $projection.MaintenancePlan and _MaintenanceCall.MaintenanceCall = $projection.MaintenanceCall
[0..*] I_MaintPlanCallHistory _MaintPlanCallHistory _MaintPlanCallHistory.MaintenancePlan = $projection.MaintenancePlan
[0..1] I_MaintenanceStrategy _MaintenanceStrategy _MaintenanceStrategy.MaintenanceStrategy = $projection.MaintenanceStrategy
[0..1] I_FactoryCalendar _FactoryCalendar _FactoryCalendar.FactoryCalendar = $projection.FactoryCalendar
[0..*] I_MaintenanceCycle _MaintenanceCycle _MaintenanceCycle.MaintenancePlan = $projection.MaintenancePlan
[1..*] I_MaintenancePlanCycle _MaintenancePlanCycle _MaintenancePlanCycle.MaintenancePlan = $projection.MaintenancePlan
[0..1] I_MaintPlanSchedgInd _SchedulingIndicator _SchedulingIndicator.MaintPlanSchedgIndicator = $projection.MaintPlanSchedgIndicator
[0..1] I_UnitOfMeasure _SchedulingDurationUnit _SchedulingDurationUnit.UnitOfMeasure = $projection.SchedulingDurationUnit
[0..1] I_MaintPlanLgclOptr _LogicalOperator _LogicalOperator.LogicalOperator = $projection.MaintPlanLogicalOperatorCode
[0..1] I_TechObjAuthznGrp _AuthorizationGroup _AuthorizationGroup.TechObjAuthorizationGroup = $projection.AuthorizationGroup
[0..1] I_Indicator _MaintCallConfIsRequired _MaintCallConfIsRequired.IndicatorValue = $projection.PrdcssrCallObjCompltnIsRqd
[0..1] I_MaintenancePlanSortField _MaintenancePlanSortField _MaintenancePlanSortField.MaintenancePlanSortField = $projection.MaintPlanFreeDefinedAttrib
[0..1] I_UnitOfMeasure _MaintPlanStartBufferUnit _MaintPlanStartBufferUnit.UnitOfMeasure = $projection.MaintPlanStartBufferUnit -- Extensions, do not expose as association:
[0..1] E_MaintenancePlan _MaintenancePlanExtension $projection.MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan

Annotations (14)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName IMAINTPLANBASIC view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Maintenance Plan view
ObjectModel.representativeKey MaintenancePlan view
ObjectModel.semanticKey MaintenancePlan view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #CDS_MODELING_DATA_SOURCE view
AbapCatalog.preserveKey true view

Fields (64)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan mpla warpl Maintenance Plan
MaintenancePlanDesc mpla wptxt Maintenance Plan Text
CreationDate mpla ersdt Date of creation
CreatedByUser mpla ernam Name of Person Responsible for Creating the Object
LastChangeDate mpla aedat Last Changed On
LastChangedByUser mpla aenam Name of Person Who Changed Object
MaintenanceStrategy mpla strat Maintenance Strategy
SchedulingDuration mpla abrho Scheduling Period
Equipment mpla equnr Equipment Number
FunctionalLocation mpla tplnr Functional Location
Customer mpla kunum Customer Number
NumberOfMaintenanceItems mpla anzps Number of maintenance items in the maintenance plan
Language mpla langu Language key of the long text
CycleModificationRatio mpla sfakt Cycle modification factor
MaintPlanSchedgIndicator mpla stich Scheduling indicator
CallHorizonPercent mpla horiz Call horizon for maintenance plan calls
CallHorizonInDays mpla horiz_days Call horizon for maintenance plan calls
AuthorizationGroup mpla begru Technical Object Authorization Group
MaintenancePlanInternalID mpla objnr Val. Obj. No.
MaintenanceCall mpla abnum Maintenance Plan Call Number
MaintenancePlanCategory mpla mptyp Maintenance plan category
SchedulingDurationUnit mpla hunit Unit for Scheduling Period
BasicStartDate mpla stadt Municipality
MaintPlanFreeDefinedAttrib mpla plan_sort Sort field for maintenance plans
FactoryCalendar mpla fabkl Factory calendar key
MaintPlanIsLockedAgainstCalls mpla lvorm Indicator: maintenance plan locked against calls
LastChangeDateTime mpla changeddatetime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
LateCompletionShiftInPercent mpla vspos Shift Factor for Late Completion
EarlyCompletionShiftInPercent mpla vsneg Shift Factor for Early Completion
LateCompletionTolerancePercent mpla topos Tolerance for Late Completion (%)
EarlyCompletionTolerancePct mpla toneg Tolerance for Early Completion (%)
MaintenanceCallHorizonCalcType Calculation Type of Call Horizon
MaintPlanLogicalOperatorCode mpla andor Indicator for OR or AND link
MultipleCounterPlanShiftFactor mpla mcp_sf Shift Factor for Multiple Counter Plan
MaintPlanStartCntrReadingValue mpla szaeh Start counter reading
SchedulingStartDate mpla start_date Start Date for Scheduling
SchedulingStartTime mpla start_time Start Time for Scheduling
MaintPlanEndCntrReadingValue mpla end_counter End Counter for Scheduling
SchedulingEndDate mpla enddt_for_sched End Date for Scheduling
MaintenanceLeadFloatInDays mpla puffp Lead Float in Days
MaintPlnStrtBufDurationInDays mpla tgoon Scheduling to reoccur when lead float reached
MaintPlanStartBufferUnit Unit for Scheduling Period
PrdcssrCallObjCompltnIsRqd mpla call_confirm Only Create New Call Object After Completing Predecessor
MaintenancePlanHasLongText mpla ltknz Long Text Indicator
MaintenancePlanCallObject _MaintenancePlanCatParam MaintenancePlanCallObject Call object for maintenance plan
_StatusObjectActiveStatus _StatusObjectActiveStatus
_Customer _Customer
_Equipment _Equipment
_FunctionalLocationLabel _FunctionalLocationLabel
_MaintenanceItem _MaintenanceItem
_MaintenancePlanCatParam _MaintenancePlanCatParam
_MaintenanceCall _MaintenanceCall
_MaintPlanCallHistory _MaintPlanCallHistory
_MaintenanceStrategy _MaintenanceStrategy
_FactoryCalendar _FactoryCalendar
_MaintenanceCycle _MaintenanceCycle
_SchedulingIndicator _SchedulingIndicator
_SchedulingDurationUnit _SchedulingDurationUnit
_LogicalOperator _LogicalOperator
_AuthorizationGroup _AuthorizationGroup
_MaintCallConfIsRequired _MaintCallConfIsRequired
_MaintenancePlanSortField _MaintenancePlanSortField
_MaintPlanStartBufferUnit _MaintPlanStartBufferUnit
_MaintenancePlanCycle _MaintenancePlanCycle

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_MaintenancePlanBasic.
-- 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: IMAINTPLANBASIC

CREATE VIEW I_MaintenancePlanBasic AS
SELECT
  mpla.warpl AS MaintenancePlan,
  mpla.wptxt AS MaintenancePlanDesc,
  mpla.ersdt AS CreationDate,
  mpla.ernam AS CreatedByUser,
  mpla.aedat AS LastChangeDate,
  mpla.aenam AS LastChangedByUser,
  mpla.strat AS MaintenanceStrategy,
  mpla.abrho AS SchedulingDuration,
  mpla.equnr AS Equipment,
  mpla.tplnr AS FunctionalLocation,
  mpla.kunum AS Customer,
  mpla.anzps AS NumberOfMaintenanceItems,
  mpla.langu AS Language,
  mpla.sfakt AS CycleModificationRatio,
  mpla.stich AS MaintPlanSchedgIndicator,
  mpla.horiz AS CallHorizonPercent,
  mpla.horiz_days AS CallHorizonInDays,
  mpla.begru AS AuthorizationGroup,
  mpla.objnr AS MaintenancePlanInternalID,
  mpla.abnum AS MaintenanceCall,
  mpla.mptyp AS MaintenancePlanCategory,
  mpla.hunit AS SchedulingDurationUnit,
  mpla.stadt AS BasicStartDate,
  mpla.plan_sort AS MaintPlanFreeDefinedAttrib,
  mpla.fabkl AS FactoryCalendar,
  mpla.lvorm AS MaintPlanIsLockedAgainstCalls,
  mpla.changeddatetime AS LastChangeDateTime,
  mpla.vspos AS LateCompletionShiftInPercent,
  mpla.vsneg AS EarlyCompletionShiftInPercent,
  mpla.topos AS LateCompletionTolerancePercent,
  mpla.toneg AS EarlyCompletionTolerancePct,
  cast (mpla.horiz_qualifier as eam_cc_callhorizon_calc_type preserving type) AS MaintenanceCallHorizonCalcType,
  mpla.andor AS MaintPlanLogicalOperatorCode,
  mpla.mcp_sf AS MultipleCounterPlanShiftFactor,
  mpla.szaeh AS MaintPlanStartCntrReadingValue,
  mpla.start_date AS SchedulingStartDate,
  mpla.start_time AS SchedulingStartTime,
  mpla.end_counter AS MaintPlanEndCntrReadingValue,
  mpla.enddt_for_sched AS SchedulingEndDate,
  mpla.puffp AS MaintenanceLeadFloatInDays,
  mpla.tgoon AS MaintPlnStrtBufDurationInDays,
  cast('TAG' as hunit) AS MaintPlanStartBufferUnit,
  mpla.call_confirm AS PrdcssrCallObjCompltnIsRqd,
  mpla.ltknz AS MaintenancePlanHasLongText,
  _MaintenancePlanCatParam.MaintenancePlanCallObject AS MaintenancePlanCallObject
FROM mpla
LEFT OUTER JOIN I_StatusObjectActiveStatus AS _StatusObjectActiveStatus ON _StatusObjectActiveStatus.StatusObject = MaintenancePlanInternalID  -- association [0..*]
LEFT OUTER JOIN I_MaintenanceItem AS _MaintenanceItem ON _MaintenanceItem.MaintenancePlan = MaintenancePlan  -- association [0..*]
LEFT OUTER JOIN I_MaintenancePlanCatParam AS _MaintenancePlanCatParam ON _MaintenancePlanCatParam.MaintenancePlanCategory = MaintenancePlanCategory  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON _Customer.Customer = Customer  -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON _Equipment.Equipment = Equipment  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocationLabel AS _FunctionalLocationLabel ON _FunctionalLocationLabel.FunctionalLocation = FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceCall AS _MaintenanceCall ON _MaintenanceCall.MaintenancePlan = MaintenancePlan AND _MaintenanceCall.MaintenanceCall = MaintenanceCall  -- association [0..*]
LEFT OUTER JOIN I_MaintPlanCallHistory AS _MaintPlanCallHistory ON _MaintPlanCallHistory.MaintenancePlan = MaintenancePlan  -- association [0..*]
LEFT OUTER JOIN I_MaintenanceStrategy AS _MaintenanceStrategy ON _MaintenanceStrategy.MaintenanceStrategy = MaintenanceStrategy  -- association [0..1]
LEFT OUTER JOIN I_FactoryCalendar AS _FactoryCalendar ON _FactoryCalendar.FactoryCalendar = FactoryCalendar  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceCycle AS _MaintenanceCycle ON _MaintenanceCycle.MaintenancePlan = MaintenancePlan  -- association [0..*]
LEFT OUTER JOIN I_MaintenancePlanCycle AS _MaintenancePlanCycle ON _MaintenancePlanCycle.MaintenancePlan = MaintenancePlan  -- association [1..*]
LEFT OUTER JOIN I_MaintPlanSchedgInd AS _SchedulingIndicator ON _SchedulingIndicator.MaintPlanSchedgIndicator = MaintPlanSchedgIndicator  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _SchedulingDurationUnit ON _SchedulingDurationUnit.UnitOfMeasure = SchedulingDurationUnit  -- association [0..1]
LEFT OUTER JOIN I_MaintPlanLgclOptr AS _LogicalOperator ON _LogicalOperator.LogicalOperator = MaintPlanLogicalOperatorCode  -- association [0..1]
LEFT OUTER JOIN I_TechObjAuthznGrp AS _AuthorizationGroup ON _AuthorizationGroup.TechObjAuthorizationGroup = AuthorizationGroup  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _MaintCallConfIsRequired ON _MaintCallConfIsRequired.IndicatorValue = PrdcssrCallObjCompltnIsRqd  -- association [0..1]
LEFT OUTER JOIN I_MaintenancePlanSortField AS _MaintenancePlanSortField ON _MaintenancePlanSortField.MaintenancePlanSortField = MaintPlanFreeDefinedAttrib  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaintPlanStartBufferUnit ON _MaintPlanStartBufferUnit.UnitOfMeasure = MaintPlanStartBufferUnit  -- association [0..1]
LEFT OUTER JOIN E_MaintenancePlan AS _MaintenancePlanExtension ON MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan  -- association [0..1]
;