I_MaintenancePlanStatus_2

DDL: I_MAINTENANCEPLANSTATUS_2 Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
P_maintplanstatusaggrgn _MaintenancePlanStatus from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;