A_MaintenancePlan

DDL: A_MAINTENANCEPLAN Type: view_entity CONSUMPTION

Maintenance Plan

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

Data Sources (1)

SourceAliasJoin Type
R_MaintenancePlanTP R_MaintenancePlanTP projection

Associations (3)

CardinalityTargetAliasCondition
[1..*] A_MaintenancePlanSchedule _Schedules _Schedules.MaintenancePlan = $projection.MaintenancePlan
[1..*] A_MaintPlanClfnClass _MaintPlanClfnClass _MaintPlanClfnClass.MaintenancePlan = $projection.MaintenancePlan
[0..*] A_MaintPlanStrategyCycle _StrategyCycle $projection.MaintenancePlan = _StrategyCycle.MaintenancePlan

Annotations (9)

NameValueLevelField
EndUserText.label Maintenance Plan view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.modelingPattern #TRANSACTIONAL_PROJECTED_ENTITY view
Metadata.ignorePropagatedAnnotations true view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan MaintenancePlan MaintenancePlan
MaintenancePlanDesc MaintenancePlanDesc
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangedByUser LastChangedByUser User Name
MaintenanceStrategy MaintenanceStrategy
SchedulingDuration SchedulingDuration
SchedulingDurationUnit SchedulingDurationUnit
NumberOfMaintenanceItems NumberOfMaintenanceItems
CycleModificationRatio CycleModificationRatio
MaintPlanSchedgIndicator MaintPlanSchedgIndicator
CallHorizonPercent CallHorizonPercent
CallHorizonInDays CallHorizonInDays
MaintenanceCallHorizonCalcType MaintenanceCallHorizonCalcType
AuthorizationGroup AuthorizationGroup AuthorizGroup
MaintenancePlanInternalID MaintenancePlanInternalID
MaintenanceCall MaintenanceCall Call Number
MaintenancePlanCategory MaintenancePlanCategory
MaintPlanFreeDefinedAttrib MaintPlanFreeDefinedAttrib
BasicStartDate BasicStartDate
SchedulingStartDate SchedulingStartDate
SchedulingStartTime SchedulingStartTime
MaintPlanStartCntrReadingValue MaintPlanStartCntrReadingValue
MaintPlnStrtBufDurationInDays MaintPlnStrtBufDurationInDays
MaintPlanStartBufferUnit MaintPlanStartBufferUnit
FactoryCalendar FactoryCalendar Factory Calendar
LateCompletionShiftInPercent LateCompletionShiftInPercent
LateCompletionTolerancePercent LateCompletionTolerancePercent
EarlyCompletionShiftInPercent EarlyCompletionShiftInPercent
EarlyCompletionTolerancePct EarlyCompletionTolerancePct
PrdcssrCallObjCompltnIsRqd PrdcssrCallObjCompltnIsRqd
MaintPlanLogicalOperatorCode MaintPlanLogicalOperatorCode
SchedulingEndDate SchedulingEndDate
MaintPlanEndCntrReadingValue MaintPlanEndCntrReadingValue
LastChangeDateTime LastChangeDateTime Timestamp
MultipleCounterPlanShiftFactor MultipleCounterPlanShiftFactor
MaintenanceLeadFloatInDays MaintenanceLeadFloatInDays
MaintenancePlanCallObject MaintenancePlanCallObject
virtualMaintenancePlanSystemStatustxt30
_ItemredirectedtoA_MaintenanceItem
_Schedules _Schedules
_MaintPlanClfnClass _MaintPlanClfnClass
_StrategyCycle _StrategyCycle

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 A_MaintenancePlan.
-- 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 A_MaintenancePlan AS
SELECT
  MaintenancePlan,
  MaintenancePlanDesc,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  LastChangedByUser,
  MaintenanceStrategy,
  SchedulingDuration,
  SchedulingDurationUnit,
  NumberOfMaintenanceItems,
  CycleModificationRatio,
  MaintPlanSchedgIndicator,
  CallHorizonPercent,
  CallHorizonInDays,
  MaintenanceCallHorizonCalcType,
  AuthorizationGroup,
  MaintenancePlanInternalID,
  MaintenanceCall,
  MaintenancePlanCategory,
  MaintPlanFreeDefinedAttrib,
  BasicStartDate,
  SchedulingStartDate,
  SchedulingStartTime,
  MaintPlanStartCntrReadingValue,
  MaintPlnStrtBufDurationInDays,
  MaintPlanStartBufferUnit,
  FactoryCalendar,
  LateCompletionShiftInPercent,
  LateCompletionTolerancePercent,
  EarlyCompletionShiftInPercent,
  EarlyCompletionTolerancePct,
  PrdcssrCallObjCompltnIsRqd,
  MaintPlanLogicalOperatorCode,
  SchedulingEndDate,
  MaintPlanEndCntrReadingValue,
  LastChangeDateTime,
  MultipleCounterPlanShiftFactor,
  MaintenanceLeadFloatInDays,
  MaintenancePlanCallObject,
  virtual MaintenancePlanSystemStatus : txt30 AS virtualMaintenancePlanSystemStatustxt30
FROM R_MaintenancePlanTP
LEFT OUTER JOIN A_MaintenancePlanSchedule AS _Schedules ON _Schedules.MaintenancePlan = MaintenancePlan  -- association [1..*]
LEFT OUTER JOIN A_MaintPlanClfnClass AS _MaintPlanClfnClass ON _MaintPlanClfnClass.MaintenancePlan = MaintenancePlan  -- association [1..*]
LEFT OUTER JOIN A_MaintPlanStrategyCycle AS _StrategyCycle ON MaintenancePlan = _StrategyCycle.MaintenancePlan  -- association [0..*]
;