P_MaintOrdObjectsConsolidated
Objects of an order from all sources
P_MaintOrdObjectsConsolidated is a Composite CDS View that provides data about "Objects of an order from all sources" in SAP S/4HANA. It reads from 2 data sources (I_MaintOrderObjectListItem, P_MaintenanceOrderDirectObject) and exposes 31 fields with key fields MaintenanceOrder, MaintenanceOrderObjectList, MaintenanceObjectListItem, MaintenanceOrderObjectList, MaintenanceObjectListItem. It has 7 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrderObjectListItem | I_MaintOrderObjectListItem | union |
| P_MaintenanceOrderDirectObject | P_MaintenanceOrderDirectObject | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Material | _Assembly | _Assembly.Material = $projection.Assembly |
| [0..1] | I_FunctionalLocation | _FunctionalLocation | _FunctionalLocation.FunctionalLocation = $projection.FunctionalLocation |
| [0..1] | I_Equipment | _Equipment | _Equipment.Equipment = $projection.Equipment |
| [0..1] | I_MaintenanceNotification | _MaintenanceNotification | _MaintenanceNotification.MaintenanceNotification = $projection.MaintenanceNotification |
| [0..1] | I_Equipment | _SerialNumber | ( _SerialNumber.Material = $projection.Material and _SerialNumber.SerialNumber = $projection.SerialNumber ) |
| [0..1] | I_Equipment | _UniqueItemIdentifier | _UniqueItemIdentifier.UniqueItemIdentifier = $projection.UniqueItemIdentifier |
| [0..1] | I_Product | _Product | _Product.Product = $projection.Material |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Objects of an order from all sources | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | MaintenanceOrder | Order | |
| KEY | MaintenanceOrderObjectList | MaintenanceOrderObjectList | Object list | |
| KEY | MaintenanceObjectListItem | MaintenanceObjectListItem | Object counters | |
| Equipment | Equipment | Equipment check | ||
| MaintenanceNotification | Notification | |||
| Assembly | Pegged Reqmt | |||
| Material | Vehicle Model | |||
| SerialNumber | Serial Number | |||
| UniqueItemIdentifier | UII | |||
| FunctionalLocation | Object ID | |||
| MaintObjectListItemSequence | Sort field | |||
| _Equipment | _Equipment | |||
| _FunctionalLocation | _FunctionalLocation | |||
| _MaintenanceNotification | _MaintenanceNotification | |||
| _Assembly | _Assembly | |||
| FunctionalLocationkeyMaintenanceOrder | ||||
| KEY | MaintenanceOrderObjectList | MaintenanceOrderObjectList | Object list | |
| KEY | MaintenanceObjectListItem | MaintenanceObjectListItem | Object counters | |
| Equipment | Equipment | Equipment check | ||
| MaintenanceNotification | MaintenanceNotification | Notification | ||
| Assembly | Assembly | Pegged Reqmt | ||
| Material | Material | Vehicle Model | ||
| SerialNumber | SerialNumber | Serial Number | ||
| UniqueItemIdentifier | UniqueItemIdentifier | UII | ||
| FunctionalLocation | Object ID | |||
| MaintObjectListItemSequence | MaintObjectListItemSequence | Sort field | ||
| _Equipment | _Equipment | |||
| _FunctionalLocation | _FunctionalLocation | |||
| _MaintenanceNotification | _MaintenanceNotification | |||
| _Assembly | _Assembly | |||
| _Product | _Product |
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_MaintOrdObjectsConsolidated.
-- 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_MaintOrdObjectsConsolidated AS
SELECT
MaintenanceOrder,
MaintenanceOrderObjectList,
MaintenanceObjectListItem,
Equipment,
cast( '' as qmnum ) AS MaintenanceNotification,
cast( '' as bautl ) AS Assembly,
cast( '' as matnr ) AS Material,
cast( '' as gernr ) AS SerialNumber,
cast( '' as uii_char72 ) AS UniqueItemIdentifier,
cast ( FunctionalLocation as vdm_eam_tplnr preserving type ) AS FunctionalLocation,
cast( '' as obsort ) AS MaintObjectListItemSequence
FROM P_MaintenanceOrderDirectObject
LEFT OUTER JOIN I_Material AS _Assembly ON _Assembly.Material = Assembly -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON _FunctionalLocation.FunctionalLocation = FunctionalLocation -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON _Equipment.Equipment = Equipment -- association [0..1]
LEFT OUTER JOIN I_MaintenanceNotification AS _MaintenanceNotification ON _MaintenanceNotification.MaintenanceNotification = MaintenanceNotification -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _SerialNumber ON ( _SerialNumber.Material = Material AND _SerialNumber.SerialNumber = SerialNumber ) -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _UniqueItemIdentifier ON _UniqueItemIdentifier.UniqueItemIdentifier = UniqueItemIdentifier -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON _Product.Product = Material -- association [0..1]
-- UNION with additional select branch(es): I_MaintOrderObjectListItem
;
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