I_MaintOrderOpCompLongText_2

DDL: I_MAINTORDEROPCOMPLONGTEXT_2 Type: view_entity COMPOSITE Package: IWO1

Maintenance Order Op Component Long Text

I_MaintOrderOpCompLongText_2 is a Composite CDS View that provides data about "Maintenance Order Op Component Long Text" in SAP S/4HANA. It reads from 2 data sources (I_TextObjectPlainLongText, I_OrderComponentLongText) and exposes 16 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintOrderComponentInternalID, TextObjectType. It has 3 associations to related views. Part of development package IWO1.

Data Sources (2)

SourceAliasJoin Type
I_TextObjectPlainLongText I_TextObjectPlainLongText from
I_OrderComponentLongText resb_text inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_MaintenanceOrderComponent_2 _MaintenanceOrderComponent _MaintenanceOrderComponent.Reservation = $projection.Reservation and _MaintenanceOrderComponent.ReservationItem = $projection.ReservationItem and _MaintenanceOrderComponent.ReservationType = $projection.ReservationType
[0..1] I_MaintenanceOrder _MaintenanceOrder _MaintenanceOrder.MaintenanceOrder = $projection.maintenanceorder
[0..1] I_Language _Language _Language.Language = $projection.Language

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Maintenance Order Op Component Long Text view
VDM.viewType #COMPOSITE view
ObjectModel.representativeKey MaintOrderComponentInternalID view
ObjectModel.dataCategory #TEXT view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder
KEY MaintenanceOrderOperation
KEY MaintenanceOrderSubOperation
KEY MaintOrderComponentInternalID
KEY TextObjectType I_TextObjectPlainLongText TextObjectType Text ID
KEY Language I_TextObjectPlainLongText Language Report Text Language
MaintenanceOrderComponent
Reservation I_OrderComponentLongText Reservation Reservation
ReservationItem I_OrderComponentLongText ReservationItem Reservation Item
ReservationType I_OrderComponentLongText RecordType Reservation Record Type
TextObjectKey I_OrderComponentLongText TextObjectKey Text Name
OrderComponentLongText I_TextObjectPlainLongText PlainLongText Long Text
TextObjectCategory I_TextObjectPlainLongText TextObjectCategory Text object
_MaintenanceOrderComponent _MaintenanceOrderComponent
_MaintenanceOrder _MaintenanceOrder
_Language _Language

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_MaintOrderOpCompLongText_2.
-- 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_MaintOrderOpCompLongText_2 AS
SELECT
  _MaintenanceOrderComponent[ inner ].MaintenanceOrder AS MaintenanceOrder,
  cast( _MaintenanceOrderComponent[ inner ].MaintenanceOrderOperation as maintenanceorderoperation preserving type ) AS MaintenanceOrderOperation,
  cast( _MaintenanceOrderComponent[ inner ].MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) AS MaintenanceOrderSubOperation,
  _MaintenanceOrderComponent[ inner ].MaintOrderComponentInternalID AS MaintOrderComponentInternalID,
  I_TextObjectPlainLongText.TextObjectType AS TextObjectType,
  I_TextObjectPlainLongText.Language AS Language,
  _MaintenanceOrderComponent[ inner ].MaintenanceOrderComponent AS MaintenanceOrderComponent,
  resb_text.Reservation AS Reservation,
  resb_text.ReservationItem AS ReservationItem,
  resb_text.RecordType AS ReservationType,
  resb_text.TextObjectKey AS TextObjectKey,
  I_TextObjectPlainLongText.PlainLongText AS OrderComponentLongText,
  I_TextObjectPlainLongText.TextObjectCategory AS TextObjectCategory
FROM I_TextObjectPlainLongText
INNER JOIN I_OrderComponentLongText AS resb_text ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaintenanceOrderComponent_2 AS _MaintenanceOrderComponent ON _MaintenanceOrderComponent.Reservation = Reservation AND _MaintenanceOrderComponent.ReservationItem = ReservationItem AND _MaintenanceOrderComponent.ReservationType = ReservationType  -- association [1..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON _MaintenanceOrder.MaintenanceOrder = maintenanceorder  -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON _Language.Language = Language  -- association [0..1]
;