I_MeasurementDocument
Measurement Document
I_MeasurementDocument (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Asset Management
I_MeasurementDocument is a Basic CDS View that provides data about "Measurement Document" in SAP S/4HANA. It reads from 1 data source (imrg) and exposes 58 fields with key field MeasurementDocument. It has 11 associations to related views.
SAP Help Documentation
| Category | CDS Views for Maintenance Management |
|---|---|
| Status | Released |
| Corresponding DataSource | IMEASDOC |
Purpose
This CDS view helps you to view details of a measurement document. It provides the data to answer the following business questions: What is the description of the measurement document? Who created the measurement document? Who last changed the measurement document and at what time was it changed? Who entered the measuring readings? On which date and at what time were the readings entered? What are the details of the related measurement readings? What are the measurement reading values and the measurement reading differences? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Structure
Measures and Attributes Some important measures and attributes are: MeasurementDocument MeasuringPoint MsmtRdngDate MsmtRdngTime MsmtRdngInvertedDateTime MsmtRdngIsForCounter MeasurementDocumentText Language MeasurementDocumentHasLongText MsmtRdngByUser CreationDate CreationTime CreatedByUser LastChangeDate LastChangedByUser SingleLevelDeletionLogicFlag MeasurementDocumentOrigin InspectionLot InspectionCharacteristic MsmtRdngSourceMeasurementDoc ProdnRsceToolTypeCode ProdnRsceToolInternalID MsmtDocumentReferredOrder MsmtIsDoneAfterTaskCompltn MeasurementReading MsmtRdngIsEntered MeasurementReadingInEntryUoM MsmtReadingInEntryUoMIsEntered MeasurementReadingEntryUoM MeasurementCounterReading MsmtCntrRdngIsEntered MsmtCounterReadingDifference MsmtCntrReadingDiffIsEntered MsmtCounterReadingIsReplaced TotalMsmtRdngIsSetExternally MeasurementDocumentCatalogType MeasurementDocumentCodeGroup MsmtValuationCode MsmtValuationCodeVersNmbr MsmtRdngStatus MsmtRdngIsReversed InspectionValuationResult MsmtRdngIsIntervalDoc MsmtRdngIntervalStartDate MsmtRdngIntervalStartTime MaintOrderOperationInternalID
This CDS view helps you to view details of a measurement document. It provides the data to answer the following business questions: What is the description of the measurement document? Who created the measurement document? Who last changed the measurement document and at what time was it changed? Who entered the measuring readings? On which date and at what time were the readings entered? What are the details of the related measurement readings? What are the measurement reading values and the measurement reading differences? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Structure
Measures and Attributes Some important measures and attributes are: MeasurementDocument MeasuringPoint MsmtRdngDate MsmtRdngTime MsmtRdngInvertedDateTime MsmtRdngIsForCounter MeasurementDocumentText Language MeasurementDocumentHasLongText MsmtRdngByUser CreationDate CreationTime CreatedByUser LastChangeDate LastChangedByUser SingleLevelDeletionLogicFlag MeasurementDocumentOrigin InspectionLot InspectionCharacteristic MsmtRdngSourceMeasurementDoc ProdnRsceToolTypeCode ProdnRsceToolInternalID MsmtDocumentReferredOrder MsmtIsDoneAfterTaskCompltn MeasurementReading MsmtRdngIsEntered MeasurementReadingInEntryUoM MsmtReadingInEntryUoMIsEntered MeasurementReadingEntryUoM MeasurementCounterReading MsmtCntrRdngIsEntered MsmtCounterReadingDifference MsmtCntrReadingDiffIsEntered MsmtCounterReadingIsReplaced TotalMsmtRdngIsSetExternally MeasurementDocumentCatalogType MeasurementDocumentCodeGroup MsmtValuationCode MsmtValuationCodeVersNmbr MsmtRdngStatus MsmtRdngIsReversed InspectionValuationResult MsmtRdngIsIntervalDoc MsmtRdngIntervalStartDate MsmtRdngIntervalStartTime MaintOrderOperationInternalID
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Asset Management |
| Application Component | PM-EQM-SF-MPC |
| Capabilities | Data Source for Defining CDS Entities |
| Package | Asset Management for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| imrg | imrg | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MeasuringPoint | _MeasuringPoint | $projection.MeasuringPoint = _MeasuringPoint.MeasuringPoint |
| [0..1] | I_Language | _Language | _Language.Language = $projection.Language |
| [0..1] | I_InspectionLot | _InspectionLot | $projection.InspectionLot = _InspectionLot.InspectionLot |
| [0..1] | I_MeasurementDocument | _MsmtRdngSourceMeasurementDoc | $projection.MsmtRdngSourceMeasurementDoc = _MsmtRdngSourceMeasurementDoc.MeasurementDocument |
| [0..1] | I_ControllingObject | _ControllingObject | $projection.MsmtDocumentReferredOrder = _ControllingObject.ControllingObject |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.MeasurementReadingEntryUoM = _UnitOfMeasure.UnitOfMeasure |
| [0..1] | I_Inspectioncatalog | _MsmtDocumentCatalogType | $projection.MeasurementDocumentCatalogType = _MsmtDocumentCatalogType.InspectionCatalog |
| [0..1] | I_InspectionCodeGroup | _MeasurementDocumentCodeGroup | $projection.MeasurementDocumentCatalogType = _MeasurementDocumentCodeGroup.InspectionCatalog and $projection.MeasurementDocumentCodeGroup = _MeasurementDocumentCodeGroup.InspectionCodeGroup |
| [0..1] | I_InspectionCode | _MeasurementValuationCode | $projection.MeasurementDocumentCatalogType = _MeasurementValuationCode.InspectionCatalog and $projection.MeasurementDocumentCodeGroup = _MeasurementValuationCode.InspectionCodeGroup and $projection.MsmtValuationCode = _MeasurementValuationCode.InspectionCode |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | $projection.MsmtDocumentReferredOrder = _MaintenanceOrder.MaintenanceOrderInternalID |
| [0..1] | I_MaintenanceNotification | _MaintenanceNotification | $projection.MsmtDocumentReferredOrder = _MaintenanceNotification.MaintNotifInternalID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMEASDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Measurement Document | view | |
| ObjectModel.representativeKey | MeasurementDocument | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.supportedCapabilities | #CDS_MODELING_DATA_SOURCE | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (58)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MeasurementDocument | mdocm | Measurement Doc. No. | |
| MeasuringPoint | point | Measuring point | ||
| MsmtRdngDate | idate | Date of the Measurement | ||
| MsmtRdngTime | itime | Single-Character Flag | ||
| MsmtRdngInvertedDateTime | invts | Inverted Time Stamp: 99.999.999.999 - Seconds AD | ||
| MsmtRdngIsForCounter | cntrg | Indicator: Counter Reading Document | ||
| MeasurementDocumentText | mdtxt | Measurement Document Text | ||
| Language | mlang | Primary lang. | ||
| MeasurementDocumentHasLongText | kzltx | Long Text Exists | ||
| MsmtRdngByUser | readr | Person who Took the Measurement Reading | ||
| CreationDate | erdat | Date on which the object was created | ||
| CreationTime | eruhr | Time at which the object was created | ||
| CreatedByUser | ernam | Name of User Who Created the Object | ||
| LastChangeDate | aedat | Date on which the object was last changed | ||
| LastChangedByUser | aenam | Name of the user who last changed the object | ||
| SingleLevelDeletionLogicFlag | lvorm | Deletion Flag for 1-Level Deletion Logic | ||
| MeasurementDocumentOrigin | gener | Origin Indicator | ||
| InspectionLot | prueflos | Inspection Lot Number | ||
| InspectionCharacteristic | merknr | Inspection Characteristic Number | ||
| MsmtRdngSourceMeasurementDoc | rootd | Source Document for Measurement Reading Transfer | ||
| ProdnRsceToolTypeCode | tolty | CIM Resource Object Type for Production Resources/Tools | ||
| ProdnRsceToolInternalID | tolid | Production Resource/Tool Object ID | ||
| MsmtDocumentReferredOrder | woobj | Object Number of Order | ||
| MsmtIsDoneAfterTaskCompltn | docaf | Indicator: MeasDoc. Created After Associated Task | ||
| MeasurementReading | readg | Measurement Reading/Total Counter Reading in SI Unit | ||
| MsmtRdngIsEntered | readgi | Indicator: Associated Number Field Contains a Value | ||
| MeasurementReadingInEntryUoM | recdv | Measurement Reading in Unit of Entry | ||
| MsmtReadingInEntryUoMIsEntered | recdvi | Indicator: Associated Number Field Contains a Value | ||
| MeasurementReadingEntryUoM | recdu | Unit of Measurement for Document Entry | ||
| MsmtDocumentSIUnitOfMeasure | SI Unit | |||
| MeasurementCounterReading | cntrr | Counter Reading in SI Unit | ||
| MsmtCntrRdngIsEntered | cntrri | Indicator: Associated Number Field Contains a Value | ||
| MsmtCounterReadingDifference | cdiff | Counter Reading Difference in SI Unit | ||
| MsmtCntrReadingDiffIsEntered | idiff | Indicator: Counter Reading Entered as Difference | ||
| MsmtCounterReadingIsReplaced | exchg | Indicator: Counter Replaced | ||
| TotalMsmtRdngIsSetExternally | totex | Indicator: Total Counter Reading Set Externally | ||
| MeasurementDocumentCatalogType | codct | Catalog Type - Measurement Reading Valuation Code | ||
| MeasurementDocumentCodeGroup | codgr | Code Group - Measurement Reading Valuation Code | ||
| MsmtValuationCode | vlcod | Valuation code | ||
| MsmtValuationCodeVersNmbr | cvers | Version Number | ||
| MsmtRdngStatus | prest | Processing Status | ||
| MsmtRdngIsReversed | cancl | Reversal Indicator | ||
| InspectionValuationResult | mbewertg | Inspection Result Valuation | ||
| MsmtRdngIsIntervalDoc | intvl | Indicator that Document Refers to Time Interval | ||
| MsmtRdngIntervalStartDate | idat1 | Date of Interval Start | ||
| MsmtRdngIntervalStartTime | itim1 | Time of Interval Start | ||
| MaintOrderOperationInternalID | woob1 | Object Number of Order Operation/Confirmation Counter etc. | ||
| _MeasuringPoint | _MeasuringPoint | |||
| _Language | _Language | |||
| _InspectionLot | _InspectionLot | |||
| _MsmtRdngSourceMeasurementDoc | _MsmtRdngSourceMeasurementDoc | |||
| _ControllingObject | _ControllingObject | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _MsmtDocumentCatalogType | _MsmtDocumentCatalogType | |||
| _MeasurementDocumentCodeGroup | _MeasurementDocumentCodeGroup | |||
| _MeasurementValuationCode | _MeasurementValuationCode | |||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _MaintenanceNotification | _MaintenanceNotification |
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_MeasurementDocument.
-- 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: IMEASDOC
CREATE VIEW I_MeasurementDocument AS
SELECT
mdocm AS MeasurementDocument,
point AS MeasuringPoint,
idate AS MsmtRdngDate,
itime AS MsmtRdngTime,
invts AS MsmtRdngInvertedDateTime,
cntrg AS MsmtRdngIsForCounter,
mdtxt AS MeasurementDocumentText,
mlang AS Language,
kzltx AS MeasurementDocumentHasLongText,
readr AS MsmtRdngByUser,
erdat AS CreationDate,
eruhr AS CreationTime,
ernam AS CreatedByUser,
aedat AS LastChangeDate,
aenam AS LastChangedByUser,
lvorm AS SingleLevelDeletionLogicFlag,
gener AS MeasurementDocumentOrigin,
prueflos AS InspectionLot,
merknr AS InspectionCharacteristic,
rootd AS MsmtRdngSourceMeasurementDoc,
tolty AS ProdnRsceToolTypeCode,
tolid AS ProdnRsceToolInternalID,
woobj AS MsmtDocumentReferredOrder,
docaf AS MsmtIsDoneAfterTaskCompltn,
readg AS MeasurementReading,
readgi AS MsmtRdngIsEntered,
recdv AS MeasurementReadingInEntryUoM,
recdvi AS MsmtReadingInEntryUoMIsEntered,
recdu AS MeasurementReadingEntryUoM,
_MeasuringPoint._UnitOfMeasure._Dimension.UnitOFMeasureSiUnit AS MsmtDocumentSIUnitOfMeasure,
cntrr AS MeasurementCounterReading,
cntrri AS MsmtCntrRdngIsEntered,
cdiff AS MsmtCounterReadingDifference,
idiff AS MsmtCntrReadingDiffIsEntered,
exchg AS MsmtCounterReadingIsReplaced,
totex AS TotalMsmtRdngIsSetExternally,
codct AS MeasurementDocumentCatalogType,
codgr AS MeasurementDocumentCodeGroup,
vlcod AS MsmtValuationCode,
cvers AS MsmtValuationCodeVersNmbr,
prest AS MsmtRdngStatus,
cancl AS MsmtRdngIsReversed,
mbewertg AS InspectionValuationResult,
intvl AS MsmtRdngIsIntervalDoc,
idat1 AS MsmtRdngIntervalStartDate,
itim1 AS MsmtRdngIntervalStartTime,
woob1 AS MaintOrderOperationInternalID
FROM imrg
LEFT OUTER JOIN I_MeasuringPoint AS _MeasuringPoint ON MeasuringPoint = _MeasuringPoint.MeasuringPoint -- association [1..1]
LEFT OUTER JOIN I_Language AS _Language ON _Language.Language = Language -- association [0..1]
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot -- association [0..1]
LEFT OUTER JOIN I_MeasurementDocument AS _MsmtRdngSourceMeasurementDoc ON MsmtRdngSourceMeasurementDoc = _MsmtRdngSourceMeasurementDoc.MeasurementDocument -- association [0..1]
LEFT OUTER JOIN I_ControllingObject AS _ControllingObject ON MsmtDocumentReferredOrder = _ControllingObject.ControllingObject -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON MeasurementReadingEntryUoM = _UnitOfMeasure.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Inspectioncatalog AS _MsmtDocumentCatalogType ON MeasurementDocumentCatalogType = _MsmtDocumentCatalogType.InspectionCatalog -- association [0..1]
LEFT OUTER JOIN I_InspectionCodeGroup AS _MeasurementDocumentCodeGroup ON MeasurementDocumentCatalogType = _MeasurementDocumentCodeGroup.InspectionCatalog AND MeasurementDocumentCodeGroup = _MeasurementDocumentCodeGroup.InspectionCodeGroup -- association [0..1]
LEFT OUTER JOIN I_InspectionCode AS _MeasurementValuationCode ON MeasurementDocumentCatalogType = _MeasurementValuationCode.InspectionCatalog AND MeasurementDocumentCodeGroup = _MeasurementValuationCode.InspectionCodeGroup AND MsmtValuationCode = _MeasurementValuationCode.InspectionCode -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON MsmtDocumentReferredOrder = _MaintenanceOrder.MaintenanceOrderInternalID -- association [0..1]
LEFT OUTER JOIN I_MaintenanceNotification AS _MaintenanceNotification ON MsmtDocumentReferredOrder = _MaintenanceNotification.MaintNotifInternalID -- 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