C_MaintenancePlanCounter

DDL: C_MAINTENANCEPLANCOUNTER Type: view_entity CONSUMPTION

Quick View for Counter reading

C_MaintenancePlanCounter is a Consumption CDS View that provides data about "Quick View for Counter reading" in SAP S/4HANA. It reads from 1 data source (I_MeasuringPoint) and exposes 13 fields with key field MeasuringPoint. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MeasuringPoint I_MeasuringPoint from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_UnitOfMeasure _UnitOfMeasure $projection.MeasurementRangeUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_MsrgPtLastMsmtDocument _MsrgPtLastMsmtDocument $projection.MeasuringPoint = _MsrgPtLastMsmtDocument.MeasuringPoint

Annotations (8)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Quick View for Counter reading view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey MeasuringPoint view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY MeasuringPoint MeasuringPoint MeasuringPoint
MeasuringPointDescription MeasuringPointDescription Description
MeasuringPointCategory MeasuringPointCategory Category
MeasuringPointCategoryDesc
Characteristic Characteristic
UnitOfMeasureDimension _UnitOfMeasure UnitOfMeasureDimension Dimension
MeasurementRangeUnit MeasurementRangeUnit Entry UOM
MsrgPtIsCountingBackwards MsrgPtIsCountingBackwards Count Backwards
MeasurementReadingInEntryUoM _MsrgPtLastMsmtDocument MeasurementReadingInEntryUoM Reading
MeasurementReadingEntryUoM _MsrgPtLastMsmtDocument MeasurementReadingEntryUoM
MeasurementReadingDateTime _MsrgPtLastMsmtDocument MeasurementReadingDateTime Date/Time
MsmtRdngByUser _MsrgPtLastMsmtDocument MsmtRdngByUser Recorded By
UserDescription

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 C_MaintenancePlanCounter.
-- 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 C_MaintenancePlanCounter AS
SELECT
  MeasuringPoint,
  MeasuringPointDescription,
  MeasuringPointCategory,
  _MeasuringPointCategory._MeasuringPointCategoryText[1:Language = $session.system_language].MeasuringPointCategoryDesc AS MeasuringPointCategoryDesc,
  _Characteristic( P_KeyDate : $session.system_date ).Characteristic AS Characteristic,
  _UnitOfMeasure.UnitOfMeasureDimension AS UnitOfMeasureDimension,
  MeasurementRangeUnit,
  MsrgPtIsCountingBackwards,
  _MsrgPtLastMsmtDocument.MeasurementReadingInEntryUoM AS MeasurementReadingInEntryUoM,
  _MsrgPtLastMsmtDocument.MeasurementReadingEntryUoM AS MeasurementReadingEntryUoM,
  _MsrgPtLastMsmtDocument.MeasurementReadingDateTime AS MeasurementReadingDateTime,
  _MsrgPtLastMsmtDocument.MsmtRdngByUser AS MsmtRdngByUser,
  _MsrgPtLastMsmtDocument._User.UserDescription AS UserDescription
FROM I_MeasuringPoint
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON MeasurementRangeUnit = _UnitOfMeasure.UnitOfMeasure  -- association [1..1]
LEFT OUTER JOIN I_MsrgPtLastMsmtDocument AS _MsrgPtLastMsmtDocument ON MeasuringPoint = _MsrgPtLastMsmtDocument.MeasuringPoint  -- association [0..1]
;