P_maintplanstatusaggrgn

DDL: P_MAINTPLANSTATUSAGGRGN Type: view_entity COMPOSITE

P_maintplanstatusaggrgn is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MaintPlanStatus) and exposes 8 fields with key field MaintenancePlan.

Data Sources (1)

SourceAliasJoin Type
P_MaintPlanStatus _MaintenancePlanStatus from

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan P_MaintPlanStatus MaintenancePlan MaintenancePlan
MaintenancePlanInternalID P_MaintPlanStatus MaintenancePlanInternalID
MaintenancePlanCategory P_MaintPlanStatus MaintenancePlanCategory
AuthorizationGroup P_MaintPlanStatus AuthorizationGroup AuthorizGroup
MaintenancePlanIsScheduled
MaintenancePlanIsCreated
MaintPlanIsMarkedForDeletion
MaintenancePlanIsInactive

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 P_maintplanstatusaggrgn.
-- 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 P_maintplanstatusaggrgn AS
SELECT
  _MaintenancePlanStatus.MaintenancePlan AS MaintenancePlan,
  _MaintenancePlanStatus.MaintenancePlanInternalID AS MaintenancePlanInternalID,
  _MaintenancePlanStatus.MaintenancePlanCategory AS MaintenancePlanCategory,
  _MaintenancePlanStatus.AuthorizationGroup AS AuthorizationGroup,
  max(MaintenancePlanIsScheduled) AS MaintenancePlanIsScheduled,
  max(MaintenancePlanIsCreated) AS MaintenancePlanIsCreated,
  max(MaintPlanIsMarkedForDeletion) AS MaintPlanIsMarkedForDeletion,
  max(MaintenancePlanIsInactive) AS MaintenancePlanIsInactive
FROM P_MaintPlanStatus AS _MaintenancePlanStatus
;