I_MaintenancePlanStatus_2
Maintenance Plan System Status
I_MaintenancePlanStatus_2 is a Composite CDS View (Dimension) that provides data about "Maintenance Plan System Status" in SAP S/4HANA. It reads from 1 data source (P_maintplanstatusaggrgn) and exposes 13 fields with key field MaintenancePlan. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_maintplanstatusaggrgn | _MaintenancePlanStatus | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SystemStatusText | _StatusTextCreated | _StatusTextCreated.SystemStatus = 'I0001' and _StatusTextCreated.Language = $session.system_language |
| [0..1] | I_SystemStatusText | _StatusTextMarkedForDeletion | _StatusTextMarkedForDeletion.SystemStatus = 'I0076' and _StatusTextMarkedForDeletion.Language = $session.system_language |
| [0..1] | I_SystemStatusText | _StatusTextInactive | _StatusTextInactive.SystemStatus = 'I0320' and _StatusTextInactive.Language = $session.system_language |
| [0..1] | I_MaintenancePlanCatParam | _MaintenancePlanCatParam | _MaintenancePlanCatParam.MaintenancePlanCategory = $projection.MaintenancePlanCategory |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Maintenance Plan System Status | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| ObjectModel.representativeKey | MaintenancePlan | view | |
| Analytics.technicalName | IMPLANSTATUS_2 | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.internalName | #LOCAL | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenancePlan | P_maintplanstatusaggrgn | MaintenancePlan | MaintenancePlan |
| MaintenancePlanInternalID | P_maintplanstatusaggrgn | MaintenancePlanInternalID | ||
| MaintenancePlanCategory | MaintenancePlanCategory | |||
| AuthorizationGroup | AuthorizationGroup | AuthorizGroup | ||
| MaintenancePlanIsScheduled | ||||
| MaintenancePlanIsCreated | ||||
| MaintPlanIsMarkedForDeletion | ||||
| MaintenancePlanIsInactive | ||||
| SystemStatuselseendasSystemStatus | ||||
| _MaintenancePlanCatParam | _MaintenancePlanCatParam | |||
| _StatusTextCreated | _StatusTextCreated | |||
| _StatusTextMarkedForDeletion | _StatusTextMarkedForDeletion | |||
| _StatusTextInactive | _StatusTextInactive |
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_MaintenancePlanStatus_2.
-- 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_MaintenancePlanStatus_2 AS
SELECT
_MaintenancePlanStatus.MaintenancePlan AS MaintenancePlan,
_MaintenancePlanStatus.MaintenancePlanInternalID AS MaintenancePlanInternalID,
MaintenancePlanCategory,
AuthorizationGroup,
cast(_MaintenancePlanStatus.MaintenancePlanIsScheduled as xfeld preserving type) AS MaintenancePlanIsScheduled,
cast(_MaintenancePlanStatus.MaintenancePlanIsCreated as xfeld preserving type) AS MaintenancePlanIsCreated,
cast(_MaintenancePlanStatus.MaintPlanIsMarkedForDeletion as xfeld preserving type) AS MaintPlanIsMarkedForDeletion,
cast(_MaintenancePlanStatus.MaintenancePlanIsInactive as xfeld preserving type) AS MaintenancePlanIsInactive,
case when MaintPlanIsMarkedForDeletion = 'X' then _StatusTextMarkedForDeletion.SystemStatus when MaintenancePlanIsInactive = 'X' then _StatusTextInactive.SystemStatus when MaintenancePlanIsScheduled = 'X' then _StatusTextCreated.SystemStatus when MaintenancePlanIsCreated = 'X' then _StatusTextCreated.SystemStatus else '' end as SystemStatus AS SystemStatuselseendasSystemStatus
FROM P_maintplanstatusaggrgn AS _MaintenancePlanStatus
LEFT OUTER JOIN I_SystemStatusText AS _StatusTextCreated ON _StatusTextCreated.SystemStatus = 'I0001' AND _StatusTextCreated.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SystemStatusText AS _StatusTextMarkedForDeletion ON _StatusTextMarkedForDeletion.SystemStatus = 'I0076' AND _StatusTextMarkedForDeletion.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SystemStatusText AS _StatusTextInactive ON _StatusTextInactive.SystemStatus = 'I0320' AND _StatusTextInactive.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaintenancePlanCatParam AS _MaintenancePlanCatParam ON _MaintenancePlanCatParam.MaintenancePlanCategory = MaintenancePlanCategory -- 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