I_MaintenancePlanSituation
Situation Handling Maint Plan Header
I_MaintenancePlanSituation (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Asset Management
I_MaintenancePlanSituation is a Composite CDS View that provides data about "Situation Handling Maint Plan Header" in SAP S/4HANA. It reads from 1 data source (I_MaintenancePlanBasic) and exposes 44 fields with key field MaintenancePlan. It has 2 associations to related views.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Asset Management |
| Application Component | PM-PRM-MP |
| Capabilities | Data Structure |
| Package | Asset Management for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenancePlanBasic | _MaintenancePlanBasic | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaintenancePlanStatus | _MaintPlanActiveSystemStatus | $projection.MaintenancePlan = _MaintPlanActiveSystemStatus.MaintenancePlan -- Extensions, do not expose as association: |
| [0..1] | E_MaintenancePlan | _MaintenancePlanExtension | $projection.MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Situation Handling Maint Plan Header | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #DATA_STRUCTURE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AbapCatalog.extensibility.extensible | true | view | |
| AbapCatalog.extensibility.elementSuffix | MPN | view | |
| AbapCatalog.extensibility.quota.maximumFields | 250 | view | |
| AbapCatalog.extensibility.quota.maximumBytes | 5000 | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | MaintenancePlan | Maintenance Plan | |
| MaintenancePlanDesc | MaintenancePlanDesc | Maintenance Plan Description | ||
| CreationDate | CreationDate | Date of creation | ||
| CreatedByUser | CreatedByUser | Name of Person Responsible for Creating the Object | ||
| LastChangeDate | LastChangeDate | Last Changed On | ||
| LastChangedByUser | LastChangedByUser | Name of Person Who Changed Object | ||
| MaintenanceStrategy | MaintenanceStrategy | Maintenance Strategy | ||
| SchedulingDuration | SchedulingDuration | Scheduling Duration | ||
| Customer | Customer | Customer Number | ||
| NumberOfMaintenanceItems | NumberOfMaintenanceItems | Number of maintenance items in the maintenance plan | ||
| CycleModificationRatio | CycleModificationRatio | Cycle Modification Factor | ||
| MaintPlanSchedgIndicator | MaintPlanSchedgIndicator | Scheduling Indicator | ||
| CallHorizonPercent | CallHorizonPercent | Call horizon for maintenance plan calls | ||
| CallHorizonInDays | CallHorizonInDays | Call horizon for maintenance plan calls | ||
| AuthorizationGroup | AuthorizationGroup | Technical Object Authorization Group | ||
| MaintenanceCall | MaintenanceCall | Maintenance Plan Call Number | ||
| MaintenancePlanCategory | MaintenancePlanCategory | Maintenance plan category | ||
| SchedulingDurationUnit | SchedulingDurationUnit | Unit for Scheduling Period | ||
| BasicStartDate | BasicStartDate | Start Date | ||
| MaintPlanFreeDefinedAttrib | MaintPlanFreeDefinedAttrib | Sort field for maintenance plans | ||
| FactoryCalendar | FactoryCalendar | Factory calendar key | ||
| LateCompletionShiftInPercent | LateCompletionShiftInPercent | Shift Factor for Late Completion | ||
| EarlyCompletionShiftInPercent | EarlyCompletionShiftInPercent | Shift Factor for Early Completion | ||
| LateCompletionTolerancePercent | LateCompletionTolerancePercent | Tolerance for Late Completion (%) | ||
| EarlyCompletionTolerancePct | EarlyCompletionTolerancePct | Tolerance for Early Completion (%) | ||
| MaintenanceCallHorizonCalcType | MaintenanceCallHorizonCalcType | Calculation Type of Call Horizon | ||
| MaintPlanLogicalOperatorCode | MaintPlanLogicalOperatorCode | Indicator for OR or AND link | ||
| MultipleCounterPlanShiftFactor | MultipleCounterPlanShiftFactor | Shift Factor for Multiple Counter Plan | ||
| MaintPlanStartCntrReadingValue | MaintPlanStartCntrReadingValue | Start Counter Reading for Scheduling | ||
| SchedulingStartDate | SchedulingStartDate | Start Date for Scheduling | ||
| SchedulingStartTime | SchedulingStartTime | Start Time for Scheduling | ||
| MaintPlanEndCntrReadingValue | MaintPlanEndCntrReadingValue | End Counter Reading for Scheduling | ||
| SchedulingEndDate | SchedulingEndDate | End Date for Scheduling | ||
| MaintenanceLeadFloatInDays | MaintenanceLeadFloatInDays | Lead Float in Days | ||
| MaintPlnStrtBufDurationInDays | MaintPlnStrtBufDurationInDays | Scheduling to reoccur when lead float reached | ||
| PrdcssrCallObjCompltnIsRqd | PrdcssrCallObjCompltnIsRqd | Only Create New Call Object After Completing Predecessor | ||
| MaintenancePlanHasLongText | MaintenancePlanHasLongText | Maintenance Plan has Long Text | ||
| Language | Language | Language key of the long text | ||
| MaintenancePlanInternalID | MaintenancePlanInternalID | Maintenance Plan Internal ID | ||
| MaintPlanStartBufferUnit | MaintPlanStartBufferUnit | Unit for Scheduling Period | ||
| MaintenancePlanCallObject | MaintenancePlanCallObject | Call Object for Maintenance Plan | ||
| LastChangeDateTime | LastChangeDateTime | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| MaintPlanIsLockedAgainstCalls | MaintPlanIsLockedAgainstCalls | Indicator: maintenance plan locked against calls | ||
| _MaintenancePlanCatParam | _MaintenancePlanCatParam |
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_MaintenancePlanSituation.
-- 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 I_MaintenancePlanSituation AS
SELECT
MaintenancePlan,
MaintenancePlanDesc,
CreationDate,
CreatedByUser,
LastChangeDate,
LastChangedByUser,
MaintenanceStrategy,
SchedulingDuration,
Customer,
NumberOfMaintenanceItems,
CycleModificationRatio,
MaintPlanSchedgIndicator,
CallHorizonPercent,
CallHorizonInDays,
AuthorizationGroup,
MaintenanceCall,
MaintenancePlanCategory,
SchedulingDurationUnit,
BasicStartDate,
MaintPlanFreeDefinedAttrib,
FactoryCalendar,
LateCompletionShiftInPercent,
EarlyCompletionShiftInPercent,
LateCompletionTolerancePercent,
EarlyCompletionTolerancePct,
MaintenanceCallHorizonCalcType,
MaintPlanLogicalOperatorCode,
MultipleCounterPlanShiftFactor,
MaintPlanStartCntrReadingValue,
SchedulingStartDate,
SchedulingStartTime,
MaintPlanEndCntrReadingValue,
SchedulingEndDate,
MaintenanceLeadFloatInDays,
MaintPlnStrtBufDurationInDays,
PrdcssrCallObjCompltnIsRqd,
MaintenancePlanHasLongText,
Language,
MaintenancePlanInternalID,
MaintPlanStartBufferUnit,
MaintenancePlanCallObject,
LastChangeDateTime,
MaintPlanIsLockedAgainstCalls
FROM I_MaintenancePlanBasic AS _MaintenancePlanBasic
LEFT OUTER JOIN I_MaintenancePlanStatus AS _MaintPlanActiveSystemStatus ON MaintenancePlan = _MaintPlanActiveSystemStatus.MaintenancePlan -- association [1..1]
LEFT OUTER JOIN E_MaintenancePlan AS _MaintenancePlanExtension ON MaintenancePlan = _MaintenancePlanExtension.MaintenancePlan -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA