R_MaintenanceItemReasonTextTP

DDL: R_MAINTENANCEITEMREASONTEXTTP Type: view_entity TRANSACTIONAL Package: VDM_EAM_MAINTENANCEITEM

Maintenance Item Reason Long Text

R_MaintenanceItemReasonTextTP is a Transactional CDS View that provides data about "Maintenance Item Reason Long Text" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceItemReasonText) and exposes 10 fields with key fields MaintenanceItem, NmbrOfMaintComplianceItems, Language. It has 2 associations to related views. Part of development package VDM_EAM_MAINTENANCEITEM.

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceItemReasonText _MaintenanceItemReasonText from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_TextObjectPlainLongText _LongText _LongText.TextObjectCategory = 'MPCR' and _LongText.TextObjectType = 'LTXT' and _LongText.TextObjectKey = $projection.TextObjectKey and _LongText.Language = $projection.Language
[1..1] R_MaintenanceItemTP _MaintenanceItem $projection.MaintenanceItem = _MaintenanceItem.MaintenanceItem

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Item Reason Long Text view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceItem I_MaintenanceItemReasonText MaintenanceItem MaintItem
KEY NmbrOfMaintComplianceItems I_MaintenanceItemReasonText NmbrOfMaintComplianceItems
KEY Language _TextObject Language Report Text Language
TextObjectKey I_MaintenanceItemReasonText TextObjectKey Text Name
TextObjectCategory I_MaintenanceItemReasonText TextObjectCategory Text object
TextObjectType I_MaintenanceItemReasonText TextObjectType Text ID
PlainLongText _LongText PlainLongText Long Text
_LongText
_MaintenanceItem _MaintenanceItem
_MaintenanceItemReason _MaintenanceItemReason

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 R_MaintenanceItemReasonTextTP.
-- 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 R_MaintenanceItemReasonTextTP AS
SELECT
  _MaintenanceItemReasonText.MaintenanceItem AS MaintenanceItem,
  _MaintenanceItemReasonText.NmbrOfMaintComplianceItems AS NmbrOfMaintComplianceItems,
  _TextObject.Language AS Language,
  _MaintenanceItemReasonText.TextObjectKey AS TextObjectKey,
  _MaintenanceItemReasonText.TextObjectCategory AS TextObjectCategory,
  _MaintenanceItemReasonText.TextObjectType AS TextObjectType,
  _LongText.PlainLongText AS PlainLongText
FROM I_MaintenanceItemReasonText AS _MaintenanceItemReasonText
LEFT OUTER JOIN I_TextObjectPlainLongText AS _LongText ON _LongText.TextObjectCategory = 'MPCR' AND _LongText.TextObjectType = 'LTXT' AND _LongText.TextObjectKey = TextObjectKey AND _LongText.Language = Language  -- association [0..1]
LEFT OUTER JOIN R_MaintenanceItemTP AS _MaintenanceItem ON MaintenanceItem = _MaintenanceItem.MaintenanceItem  -- association [1..1]
;