P_MaintPlanLastMsmtDoc

DDL: P_MAINTPLANLASTMSMTDOC SQL: PMPLNLASTMSMTDOC Type: view COMPOSITE

P_MaintPlanLastMsmtDoc is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MaintenanceSingleCycle) and exposes 5 fields with key field MaintenancePlan. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_MaintenanceSingleCycle P_MaintenanceSingleCycle from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_MeasuringPointLastMsmtDoc _LastMeasurementDocument _LastMeasurementDocument.MeasuringPoint = $projection.MeasuringPoint

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMPLNLASTMSMTDOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY MaintenancePlan MaintenancePlan MaintenancePlan
NumberOfControlTableEntities NumberOfControlTableEntities
MeasuringPoint MeasuringPoint
MsmtRdngDate _LastMeasurementDocument MsmtRdngDate
_MaintenancePlan _MaintenancePlan

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_MaintPlanLastMsmtDoc.
-- 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: PMPLNLASTMSMTDOC

CREATE VIEW P_MaintPlanLastMsmtDoc AS
SELECT
  MaintenancePlan,
  NumberOfControlTableEntities,
  MeasuringPoint,
  _LastMeasurementDocument.MsmtRdngDate AS MsmtRdngDate
FROM P_MaintenanceSingleCycle
LEFT OUTER JOIN P_MeasuringPointLastMsmtDoc AS _LastMeasurementDocument ON _LastMeasurementDocument.MeasuringPoint = MeasuringPoint  -- association [0..1]
;