R_MaintenancePlanCycleTP

DDL: R_MAINTENANCEPLANCYCLETP Type: view_entity TRANSACTIONAL Package: VDM_EAM_MAINTENANCEPLAN

Maintenance Plan Cycle

R_MaintenancePlanCycleTP is a Transactional CDS View that provides data about "Maintenance Plan Cycle" in SAP S/4HANA. It reads from 1 data source (I_MaintenancePlanCycle) and exposes 16 fields with key fields MaintenancePlan, MaintenancePlanCycle. It has 1 association to related views. Part of development package VDM_EAM_MAINTENANCEPLAN.

Data Sources (1)

SourceAliasJoin Type
I_MaintenancePlanCycle I_MaintenancePlanCycle from

Associations (1)

CardinalityTargetAliasCondition
[1] I_MsrgPtLastMsmtDocument _LastMeasurementReading $projection.MeasuringPoint = _LastMeasurementReading.MeasuringPoint

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Plan Cycle view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.modelingPattern #TRANSACTIONAL_ENTITY view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan MaintenancePlan MaintenancePlan
KEY MaintenancePlanCycle MaintenancePlanCycle Counter
MaintenanceStrategy _MaintenancePlan MaintenanceStrategy
MaintPlanCycRcrrcIntervalUnit MaintPlanCycRcrrcIntervalUnit Unit
MaintPlanCycleDesc MaintPlanCycleDesc Cycle text
MeasuringPoint MeasuringPoint Measuring point
MaintenancePlanCycleIsInactive Record inactive
CycleSetSequence CycleSetSequence Cycle Set Seq.
CycleSetSequenceRepeatFactor CycleSetSequenceRepeatFactor RepFactor Set
MaintPlnStrtBufDurationInDays _MaintenancePlan MaintPlnStrtBufDurationInDays
CharcValueUnit
MsmtRdngDate _LastMeasurementReading MsmtRdngDate
_MaintenancePlan _MaintenancePlan
_MeasuringPoint _MeasuringPoint
_UnitOfMeasure _UnitOfMeasure
_MaintenanceStrategy _MaintenancePlan _MaintenanceStrategy

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 R_MaintenancePlanCycleTP.
-- 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 R_MaintenancePlanCycleTP AS
SELECT
  MaintenancePlan,
  MaintenancePlanCycle,
  _MaintenancePlan.MaintenanceStrategy AS MaintenanceStrategy,
  MaintPlanCycRcrrcIntervalUnit,
  MaintPlanCycleDesc,
  MeasuringPoint,
  cast( MaintenancePlanCycleIsInactive as boole_d ) AS MaintenancePlanCycleIsInactive,
  CycleSetSequence,
  CycleSetSequenceRepeatFactor,
  _MaintenancePlan.MaintPlnStrtBufDurationInDays AS MaintPlnStrtBufDurationInDays,
  _MeasuringPoint._Characteristic( P_KeyDate:$session.system_date ).CharcValueUnit AS CharcValueUnit,
  _LastMeasurementReading.MsmtRdngDate AS MsmtRdngDate,
  _MaintenancePlan._MaintenanceStrategy AS _MaintenanceStrategy
FROM I_MaintenancePlanCycle
LEFT OUTER JOIN I_MsrgPtLastMsmtDocument AS _LastMeasurementReading ON MeasuringPoint = _LastMeasurementReading.MeasuringPoint  -- association [1]
;