P_MaintOrdObjectsConsolidated

DDL: P_MAINTORDOBJECTSCONSOLIDATED Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
I_MaintOrderObjectListItem I_MaintOrderObjectListItem union
P_MaintenanceOrderDirectObject P_MaintenanceOrderDirectObject from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;