I_MaintOrdChangeDocumentDEX
Maintenance Order Change Document
I_MaintOrdChangeDocumentDEX (Composite)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Maintenance Order · Asset Management
I_MaintOrdChangeDocumentDEX is a Composite CDS View (Fact) that provides data about "Maintenance Order Change Document" in SAP S/4HANA. It reads from 2 data sources (I_ChangeDocumentItem, I_MaintenanceOrder) and exposes 20 fields with key fields ChangeDocObject, ChangeDocObjectClass, ChangeDocument, DatabaseTable, ChangeDocTableKey.
SAP Help Documentation
| Category | CDS Views for Maintenance Management |
|---|---|
| Data Category | Fact |
This CDS view provides access to change document information for maintenance orders and allows you to extract this data for all external consumers who want to extract to SAP Business Warehouse (SAP BW) or other external systems. 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 .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: I_AUART (Order Type) I_INGRP (Maintenance Planner Group) I_IWERK (Maintenance Planning Plant) S_SCD0_OBJ (Change Documents of Change Document Object)
Structure
Important Fields Important fields in this view include the following: Field Name Description ChangeDocObject Object Value ChangeDocObjectClass Change Doc. Object ChangeDocument Document Number DatabaseTable Table Name ChangeDocTableKey Table Key ChangeDocDatabaseTableField Field Name ChangeDocItemChangeType Change Indicator ChangeDocPreviousUnit Change Document Previous Unit ChangeDocNewUnit Change Document New Unit ChangeDocPreviousCurrency Change Document Previous Currency ChangeDocNewCurrency Change Document New Currency MaintenanceOrder Maintenance Order ChangeDocPreviousFieldValue Old Content of Changed Field ChangeDocNewFieldValue New Content of Changed Field
Data Extraction
This CDS view is enabled for data extraction in full mode as well as in delta mode. Deltas are determined automatically by change data capture.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Asset Management |
| Application Component | PM-WOC-MO |
| Capabilities | Data Source for Data Extraction |
| Package | Asset Management for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides access to change document information for maintenance orders and allows you to extract this data for all external consumers who want to extract to SAP Business Warehouse (SAP BW) or other external systems.</p> <p>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.</p> |
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 (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ChangeDocumentItem | ChangeDocumentItem | from |
| I_MaintenanceOrder | MaintOrder | inner |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Maintenance Order Change Document | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.dataExtraction.enabled | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChangeDocObject | I_ChangeDocumentItem | ChangeDocObject | Object Value |
| KEY | ChangeDocObjectClass | I_ChangeDocumentItem | ChangeDocObjectClass | Change Doc. Object |
| KEY | ChangeDocument | I_ChangeDocumentItem | ChangeDocument | Change Number of Document |
| KEY | DatabaseTable | I_ChangeDocumentItem | DatabaseTable | Table Name |
| KEY | ChangeDocTableKey | I_ChangeDocumentItem | ChangeDocTableKey | Key of Modified Table Row |
| KEY | ChangeDocDatabaseTableField | I_ChangeDocumentItem | ChangeDocDatabaseTableField | Field Name |
| KEY | ChangeDocItemChangeType | I_ChangeDocumentItem | ChangeDocItemChangeType | Change Indicator |
| MaintenanceOrder | I_MaintenanceOrder | MaintenanceOrder | Order Number | |
| MaintenancePlanningPlant | I_MaintenanceOrder | MaintenancePlanningPlant | Maintenance Planning Plant | |
| MaintenanceOrderType | I_MaintenanceOrder | MaintenanceOrderType | Order Type | |
| MaintenancePlannerGroup | I_MaintenanceOrder | MaintenancePlannerGroup | Planner Group for Customer Service and Plant Maintenance | |
| ChangeDocNewFieldValue | I_ChangeDocumentItem | ChangeDocNewFieldValue | New Content of Changed Field | |
| ChangeDocPreviousFieldValue | I_ChangeDocumentItem | ChangeDocPreviousFieldValue | Old Content of Changed Field | |
| ChangeDocPreviousUnit | Change Document Previous Unit | |||
| ChangeDocNewUnit | Change Document New Unit | |||
| ChangeDocPreviousCurrency | Change Document Previous Currency | |||
| ChangeDocNewCurrency | Change Document New Currency | |||
| CreatedByUser | User Name of Person Making Change in Change Document | |||
| CreationDate | Creation Date of Change Document | |||
| CreationTime | Time of Change |
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_MaintOrdChangeDocumentDEX.
-- 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_MaintOrdChangeDocumentDEX AS
SELECT
ChangeDocumentItem.ChangeDocObject AS ChangeDocObject,
ChangeDocumentItem.ChangeDocObjectClass AS ChangeDocObjectClass,
ChangeDocumentItem.ChangeDocument AS ChangeDocument,
ChangeDocumentItem.DatabaseTable AS DatabaseTable,
ChangeDocumentItem.ChangeDocTableKey AS ChangeDocTableKey,
ChangeDocumentItem.ChangeDocDatabaseTableField AS ChangeDocDatabaseTableField,
ChangeDocumentItem.ChangeDocItemChangeType AS ChangeDocItemChangeType,
MaintOrder.MaintenanceOrder AS MaintenanceOrder,
MaintOrder.MaintenancePlanningPlant AS MaintenancePlanningPlant,
MaintOrder.MaintenanceOrderType AS MaintenanceOrderType,
MaintOrder.MaintenancePlannerGroup AS MaintenancePlannerGroup,
ChangeDocumentItem.ChangeDocNewFieldValue AS ChangeDocNewFieldValue,
ChangeDocumentItem.ChangeDocPreviousFieldValue AS ChangeDocPreviousFieldValue,
cast ( ChangeDocumentItem.ChangeDocPreviousUnit as mmiv_chng_doc_old_unit preserving type ) AS ChangeDocPreviousUnit,
cast ( ChangeDocumentItem.ChangeDocNewUnit as mmiv_chng_doc_new_unit preserving type ) AS ChangeDocNewUnit,
cast ( ChangeDocumentItem.ChangeDocPreviousCurrency as mmiv_chng_doc_old_currency preserving type ) AS ChangeDocPreviousCurrency,
cast ( ChangeDocumentItem.ChangeDocNewCurrency as mmiv_chng_doc_new_currency preserving type ) AS ChangeDocNewCurrency,
ChangeDocumentItem._ChangeDocument.CreatedByUser AS CreatedByUser,
ChangeDocumentItem._ChangeDocument.CreationDate AS CreationDate,
ChangeDocumentItem._ChangeDocument.CreationTime AS CreationTime
FROM I_ChangeDocumentItem AS ChangeDocumentItem
INNER JOIN I_MaintenanceOrder AS MaintOrder ON /* join condition not captured in parsed metadata */
;
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