I_MaintenanceStrategy

DDL: I_MAINTENANCESTRATEGY SQL: IMAINTSTRAT Type: view BASIC

Maintenance Strategy

I_MaintenanceStrategy (Basic)

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

Maintenance Strategy · Asset Management

I_MaintenanceStrategy is a Basic CDS View that provides data about "Maintenance Strategy" in SAP S/4HANA. It reads from 1 data source (t351) and exposes 21 fields with key field MaintenanceStrategy. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Maintenance Management
StatusReleased
Corresponding DataSourceIMAINTSTRAT
Purpose
This CDS view helps you view details of a maintenance strategy. It provides the data to answer the following business questions: What is the description of the maintenance strategy? Which maintenance strategies are available in the system? What are the details of the related maintenance strategy such as strategy unit, number of maintenance packages, scheduling parameters and so on? 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 .

Structure
Measures and Attributes Some important measures and attributes are: MaintenanceStrategy MaintenanceTaskPerformanceUnit MaintenanceStrategyActyUnit MaintenanceStrategyCycTotDurn MaintenanceStrategyCycDurn MaintPackageMinimumStepValue PerfBasedMaintPckgMinStepValue NumberOfMaintenancePackages NumberOfPerfBasedMaintPackages LateCompletionTolerancePercent EarlyCompletionTolerancePct LateCompletionShiftInPercent EarlyCompletionShiftInPercent MaintStrategySchedulingCode MaintenanceCallHorizonPercent MaintenanceCallHorizonCalcType FactoryCalendar AuthorizationGroup

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAsset Management
Application ComponentPM-PRM-TL
CapabilitiesData Source for Defining CDS Entities, Data Source for Data Extraction
PackageAsset Management for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
t351 t351 from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_MaintenanceStrategyT _MaintenanceStrategyText _MaintenanceStrategyText.MaintenanceStrategy = $projection.MaintenanceStrategy
[0..1] I_UnitOfMeasure _MaintenanceStrategyUnit _MaintenanceStrategyUnit.UnitOfMeasure = $projection.MaintenanceTaskPerformanceUnit
[0..1] I_FactoryCalendar _FactoryCalendar _FactoryCalendar.FactoryCalendar = $projection.FactoryCalendar

Annotations (16)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName IMAINTSTRAT view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Maintenance Strategy view
ObjectModel.representativeKey MaintenanceStrategy view
ObjectModel.semanticKey MaintenanceStrategy view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
VDM.viewType #BASIC view
Search.searchable true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #VALUE_HELP_PROVIDER view
Analytics.dataExtraction.enabled true view
ObjectModel.sapObjectNodeType.name MaintenanceStrategy view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceStrategy t351 strat Maintenance Strategy
MaintenanceTaskPerformanceUnit t351 zeieh Unit for the performance of maintenance tasks
MaintenanceStrategyActyUnit t351 leieh Maintenance strategy activity unit
MaintenanceStrategyCycTotDurn t351 zyk1g Total cycle duration of a maintenance strategy
MaintenanceStrategyCycDurn t351 zyk2g Total cycle duration of a maintenance strategy
MaintPackageMinimumStepValue t351 zyk1k Smallest step between two maintenance packages
PerfBasedMaintPckgMinStepValue t351 zyk2k Smallest step between two performance-based MaintPackages
NumberOfMaintenancePackages t351 anzp1 Number of MaintPackages in the MaintStrategy
NumberOfPerfBasedMaintPackages t351 anzp2 Number of MaintPackages in the MaintStrategy (peformance)
LateCompletionTolerancePercent t351 tole1 Tolerance for Late Completion (%)
EarlyCompletionTolerancePct t351 tole2 Tolerance for Early Completion (%)
LateCompletionShiftInPercent t351 vers1 Shift Factor for Late Completion
EarlyCompletionShiftInPercent t351 vers2 Shift Factor for Early Completion
MaintStrategySchedulingCode t351 termk Scheduling indicator
MaintenanceCallHorizonPercent t351 horiz Call horizon for maintenance plan calls
MaintenanceCallHorizonCalcType Calculation Type of Call Horizon
FactoryCalendar t351 fabkl Factory calendar key
AuthorizationGroup t351 authgr Authorization Group
_MaintenanceStrategyText _MaintenanceStrategyText
_MaintenanceStrategyUnit _MaintenanceStrategyUnit
_FactoryCalendar _FactoryCalendar

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_MaintenanceStrategy.
-- 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: IMAINTSTRAT

CREATE VIEW I_MaintenanceStrategy AS
SELECT
  t351.strat AS MaintenanceStrategy,
  t351.zeieh AS MaintenanceTaskPerformanceUnit,
  t351.leieh AS MaintenanceStrategyActyUnit,
  t351.zyk1g AS MaintenanceStrategyCycTotDurn,
  t351.zyk2g AS MaintenanceStrategyCycDurn,
  t351.zyk1k AS MaintPackageMinimumStepValue,
  t351.zyk2k AS PerfBasedMaintPckgMinStepValue,
  t351.anzp1 AS NumberOfMaintenancePackages,
  t351.anzp2 AS NumberOfPerfBasedMaintPackages,
  t351.tole1 AS LateCompletionTolerancePercent,
  t351.tole2 AS EarlyCompletionTolerancePct,
  t351.vers1 AS LateCompletionShiftInPercent,
  t351.vers2 AS EarlyCompletionShiftInPercent,
  t351.termk AS MaintStrategySchedulingCode,
  t351.horiz AS MaintenanceCallHorizonPercent,
  cast(t351.horiz_qualifier as eam_cc_callhorizon_calc_type preserving type) AS MaintenanceCallHorizonCalcType,
  t351.fabkl AS FactoryCalendar,
  t351.authgr AS AuthorizationGroup
FROM t351
LEFT OUTER JOIN I_MaintenanceStrategyT AS _MaintenanceStrategyText ON _MaintenanceStrategyText.MaintenanceStrategy = MaintenanceStrategy  -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _MaintenanceStrategyUnit ON _MaintenanceStrategyUnit.UnitOfMeasure = MaintenanceTaskPerformanceUnit  -- association [0..1]
LEFT OUTER JOIN I_FactoryCalendar AS _FactoryCalendar ON _FactoryCalendar.FactoryCalendar = FactoryCalendar  -- association [0..1]
;