C_MaintenancePlanTP

DDL: C_MAINTENANCEPLANTP Type: view_entity CONSUMPTION

Maintenance Plan Header

C_MaintenancePlanTP is a Consumption CDS View that provides data about "Maintenance Plan Header" in SAP S/4HANA. It reads from 1 data source (R_MaintenancePlanTP) and exposes 69 fields with key field MaintenancePlan. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_MaintenancePlanTP R_MaintenancePlanTP projection

Associations (5)

CardinalityTargetAliasCondition
[1..*] C_MaintenancePlanScheduleTP _Schedule $projection.MaintenancePlan = _Schedule.MaintenancePlan
[0..*] C_MaintPlanChgHistory _MaintPlanChgHistory $projection.MaintenancePlan = _MaintPlanChgHistory.ChangeDocObject
[0..*] C_MaintPlanStrategyCycle _StrategyCycle $projection.MaintenancePlan = _StrategyCycle.MaintenancePlan
[0..*] C_MaintPlanClfnClassTP _MaintPlanClfnClass _MaintPlanClfnClass.MaintenancePlan = $projection.MaintenancePlan
[0..1] C_MaintenancePlanCategoryVH _CategoryVH $projection.MaintenancePlanCategory = _CategoryVH.MaintenancePlanCategory and _CategoryVH.MaintenancePlanCallObject is initial or _CategoryVH.MaintenancePlanCallObject = '2'

Annotations (9)

NameValueLevelField
EndUserText.label Maintenance Plan Header view
AccessControl.authorizationCheck #CHECK view
Search.searchable true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.modelingPattern #TRANSACTIONAL_PROJECTED_ENTITY view
Metadata.allowExtensions true view

Fields (69)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan MaintenancePlan MaintenancePlan
MaintenancePlanDesc MaintenancePlanDesc Plan Description
CreationDate CreationDate Created On
CreatedByUser CreatedByUser User Name
CreatedByUserDescription _CreatedByUser UserDescription Full Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
LastChangedByUserDescription _LastChangedByUser UserDescription Full Name
MaintenanceStrategy MaintenanceStrategy Strategy
MaintenanceStrategyDesc
MaintenancePlanCycleSet MaintenancePlanCycleSet Cycle Set
SchedulingDuration Scheduling Period
SchedulingDurationUnit SchedulingDurationUnit Scheduling Period Unit
NumberOfMaintenanceItems NumberOfMaintenanceItems Number of Maintenance Items
CycleModificationRatio CycleModificationRatio Cycle Modification Factor
MaintPlanSchedgIndicator MaintPlanSchedgIndicator Scheduling Indicator
CallHorizonPercent CallHorizonPercent
CallHorizonInDays CallHorizonInDays
MaintenanceCallHorizonCalcType MaintenanceCallHorizonCalcType
CallHorizonUnit CallHorizonUnit
AuthorizationGroup AuthorizationGroup Authorization Group
MaintenancePlanInternalID MaintenancePlanInternalID
MaintenanceCall MaintenanceCall Call Number
MaintenancePlanCategory MaintenancePlanCategory Plan Category
MaintPlanFreeDefinedAttrib MaintPlanFreeDefinedAttrib Sort Field
BasicStartDate BasicStartDate Start Date of Scheduling
SchedulingStartDate SchedulingStartDate Start Date of Scheduling (Multiple Counter)
SchedulingStartTime SchedulingStartTime Start Time of Scheduling
MaintPlanSchedgStartDateTime MaintPlanSchedgStartDateTime Start of Scheduling (Multiple Counter)
MaintPlnStrtBufDurationInDays MaintPlnStrtBufDurationInDays Lead Float
FactoryCalendar FactoryCalendar Factory Calendar
LateCompletionShiftInPercent LateCompletionShiftInPercent Shift Factor for Late Completion
LateCompletionTolerancePercent LateCompletionTolerancePercent Tolerance for Late Completion
EarlyCompletionShiftInPercent EarlyCompletionShiftInPercent Shift Factor for Early Completion
EarlyCompletionTolerancePct EarlyCompletionTolerancePct Tolerance for Early Completion
PrdcssrCallObjCompltnIsRqd PrdcssrCallObjCompltnIsRqd Completion Required
MaintPlanLogicalOperatorCode MaintPlanLogicalOperatorCode Operation Type
MaintPlanLogicalOperatorText _LogicalOperatorText MaintPlanLogicalOperatorText
SchedulingEndDate SchedulingEndDate End Date for Scheduling
LastChangeDateTime LastChangeDateTime Timestamp
MaintenancePlanCallObject MaintenancePlanCallObject
MaintenancePlanType MaintenancePlanType Plan Type
IsAttachmentsEnabled IsAttachmentsEnabled Originals
SystemStatus SystemStatus
MaintPlanEndCntrReadingValue MaintPlanEndCntrReadingValue End Counter Reading for Scheduling
MeasuringPoint _SingleCycle MeasuringPoint Counter
virtualCharcValueUnitmsehi
virtualMaintPlnRmngCounterValueduration Remaining Counter
virtualMaintPlanIsNotMultiCounterboolean
virtualMaintPlanIsNotSingleCycleboolean
virtualUICT_PlanIsNotNonMCPForPMboole_d
virtualUICT_PlanIsNotNonMCPForSOboole_d
virtualUICT_PlanIsNotNonMCPForNOboole_d
virtualUICT_HideCallHorizIsInDaysboole_d
virtualUICT_HideCallHorizUnitboole_d
_ItemredirectedtoC_MaintenanceItemTP
_Schedule _Schedule
_MaintPlanChgHistory _MaintPlanChgHistory
_StrategyCycle _StrategyCycle
_MaintPlanClfnClass _MaintPlanClfnClass
_CallHrznCalcTypeTxt _CallHrznCalcTypeTxt
_SchedIndicator _SchedIndicator
_MaintenanceStrategy _MaintenanceStrategy
_UnitOfMeasure _UnitOfMeasure
_MaintenancePlanCallDate _MaintenancePlanCallDate
_CategoryVH _CategoryVH
_ActivePlan _ActivePlan
_InactivePlan _InactivePlan
_DeletedPlan _DeletedPlan

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_MaintenancePlanTP.
-- 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.

CREATE VIEW C_MaintenancePlanTP AS
SELECT
  MaintenancePlan,
  MaintenancePlanDesc,
  CreationDate,
  CreatedByUser,
  _CreatedByUser.UserDescription AS CreatedByUserDescription,
  LastChangeDate,
  LastChangedByUser,
  _LastChangedByUser.UserDescription AS LastChangedByUserDescription,
  MaintenanceStrategy,
  _MaintenanceStrategy._MaintenanceStrategyText[1:Language = $session.system_language].MaintenanceStrategyDesc AS MaintenanceStrategyDesc,
  MaintenancePlanCycleSet,
  cast( SchedulingDuration as fti_mnomzins preserving type ) AS SchedulingDuration,
  SchedulingDurationUnit,
  NumberOfMaintenanceItems,
  CycleModificationRatio,
  MaintPlanSchedgIndicator,
  CallHorizonPercent,
  CallHorizonInDays,
  MaintenanceCallHorizonCalcType,
  CallHorizonUnit,
  AuthorizationGroup,
  MaintenancePlanInternalID,
  MaintenanceCall,
  MaintenancePlanCategory,
  MaintPlanFreeDefinedAttrib,
  BasicStartDate,
  SchedulingStartDate,
  SchedulingStartTime,
  MaintPlanSchedgStartDateTime,
  MaintPlnStrtBufDurationInDays,
  FactoryCalendar,
  LateCompletionShiftInPercent,
  LateCompletionTolerancePercent,
  EarlyCompletionShiftInPercent,
  EarlyCompletionTolerancePct,
  PrdcssrCallObjCompltnIsRqd,
  MaintPlanLogicalOperatorCode,
  _LogicalOperatorText.MaintPlanLogicalOperatorText AS MaintPlanLogicalOperatorText,
  SchedulingEndDate,
  LastChangeDateTime,
  MaintenancePlanCallObject,
  MaintenancePlanType,
  IsAttachmentsEnabled,
  SystemStatus,
  MaintPlanEndCntrReadingValue,
  _SingleCycle.MeasuringPoint AS MeasuringPoint,
  virtual CharcValueUnit : msehi AS virtualCharcValueUnitmsehi,
  virtual MaintPlnRmngCounterValue : duration AS virtualMaintPlnRmngCounterValueduration,
  virtual MaintPlanIsNotMultiCounter : boolean AS virtualMaintPlanIsNotMultiCounterboolean,
  virtual MaintPlanIsNotSingleCycle : boolean AS virtualMaintPlanIsNotSingleCycleboolean,
  virtual UICT_PlanIsNotNonMCPForPM : boole_d AS virtualUICT_PlanIsNotNonMCPForPMboole_d,
  virtual UICT_PlanIsNotNonMCPForSO : boole_d AS virtualUICT_PlanIsNotNonMCPForSOboole_d,
  virtual UICT_PlanIsNotNonMCPForNO : boole_d AS virtualUICT_PlanIsNotNonMCPForNOboole_d,
  virtual UICT_HideCallHorizIsInDays : boole_d AS virtualUICT_HideCallHorizIsInDaysboole_d,
  virtual UICT_HideCallHorizUnit : boole_d AS virtualUICT_HideCallHorizUnitboole_d
FROM R_MaintenancePlanTP
LEFT OUTER JOIN C_MaintenancePlanScheduleTP AS _Schedule ON MaintenancePlan = _Schedule.MaintenancePlan  -- association [1..*]
LEFT OUTER JOIN C_MaintPlanChgHistory AS _MaintPlanChgHistory ON MaintenancePlan = _MaintPlanChgHistory.ChangeDocObject  -- association [0..*]
LEFT OUTER JOIN C_MaintPlanStrategyCycle AS _StrategyCycle ON MaintenancePlan = _StrategyCycle.MaintenancePlan  -- association [0..*]
LEFT OUTER JOIN C_MaintPlanClfnClassTP AS _MaintPlanClfnClass ON _MaintPlanClfnClass.MaintenancePlan = MaintenancePlan  -- association [0..*]
LEFT OUTER JOIN C_MaintenancePlanCategoryVH AS _CategoryVH ON MaintenancePlanCategory = _CategoryVH.MaintenancePlanCategory AND _CategoryVH.MaintenancePlanCallObject is initial OR _CategoryVH.MaintenancePlanCallObject = '2'  -- association [0..1]
;