I_InhRepairTransactionRelation

DDL: I_INHREPAIRTRANSACTIONRELATION Type: view COMPOSITE

Relationship between Service Transactions

I_InhRepairTransactionRelation is a Composite CDS View that provides data about "Relationship between Service Transactions" in SAP S/4HANA. It reads from 1 data source (I_CustMgmtTransactionRelation) and exposes 13 fields with key field CustMgmtTransacRelationUUID. It has 5 associations to related views.

SAP Help Documentation

CategoryService Operations and Processes
Purpose
This CDS view is designed to establish and analyze the relationships between various service transactions, including predecessor and successor service transactions, in-house repair items, customer returns, and outbound deliveries. It provides a comprehensive view of how different service-related transactions are interconnected within a business process. This CDS view provides the data to answer the following business questions: What are the predecessor and successor service transactions for a given service transaction? How are in-house repair items related to specific service transactions? What customer returns are associated with particular service transactions? How do outbound deliveries relate to successor service transactions? What is the overall relationship type between different customer management transactions?

Prerequisites
Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode).

Structure
Important Fields Important fields in this view include the following: Field Name Description CUSTMGMTPRDCSSRTRANSACOBJTYPE Object type CUSTMGMTTRANSACRELATIONUUID GUID link CUSTMGMTSUCCSSRTRANSACTIONKEY Key CUSTMGMTSUCCSSRTRANSACOBJTYPE Object type CUSTMGMTTRANSACRELATIONTYPE Rel. type CUSTMGMTPRDCSSRTRANSACTIONKEY Key CUSTMGMTPRDCSSRTRANSACTIONUUID Object GUID CUSTMGMTSUCCSSRTRANSACTIONUUID Object GUID

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_CustMgmtTransactionRelation I_CustMgmtTransactionRelation from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_ServiceDocument _PredecessorServiceTransaction $projection.CustMgmtPrdcssrTransactionUUID = _PredecessorServiceTransaction.ServiceDocumentUUID and $projection.CustMgmtPrdcssrTransacObjType = _PredecessorServiceTransaction.ServiceObjectType
[0..1] I_ServiceDocument _SuccessorServiceTransaction $projection.CustMgmtSuccssrTransactionUUID = _SuccessorServiceTransaction.ServiceDocumentUUID and $projection.CustMgmtSuccssrTransacObjType = _SuccessorServiceTransaction.ServiceObjectType
[0..1] I_InHouseRepairItem _InHouseRepairItem $projection.CustMgmtPrdcssrTransactionUUID = _InHouseRepairItem.InHouseRepairItemUUID and $projection.CustMgmtPrdcssrTransacObjType = _InHouseRepairItem.InhRepairItemObjectType and $projection.CustMgmtPrdcssrTransacObjType = 'BUS2000257'
[0..1] I_CustomerReturnEnhanced _PredecessorCustomerReturn $projection.CustMgmtPrdcssrTransactionKey = _PredecessorCustomerReturn.CustomerReturn
[0..1] I_OutboundDelivery _OutboundDelivery $projection.CustMgmtSuccssrTransactionKey = _OutboundDelivery.OutboundDelivery

Annotations (12)

NameValueLevelField
EndUserText.label Relationship between Service Transactions view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IIHRTRANSACRLTN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CustMgmtTransacRelationUUID CustMgmtTransacRelationUUID GUID link
CustMgmtPrdcssrTransactionUUID CustMgmtPrdcssrTransactionUUID Object GUID
CustMgmtPrdcssrTransacObjType CustMgmtPrdcssrTransacObjType Object Type
CustMgmtSuccssrTransactionUUID CustMgmtSuccssrTransactionUUID Object GUID
CustMgmtSuccssrTransactionKey CustMgmtSuccssrTransactionKey Key
CustMgmtSuccssrTransacObjType CustMgmtSuccssrTransacObjType Object Type
CustMgmtTransacRelationType CustMgmtTransacRelationType Rel. Type
CustMgmtPrdcssrTransactionKey CustMgmtPrdcssrTransactionKey Key
_PredecessorServiceTransaction _PredecessorServiceTransaction
_SuccessorServiceTransaction _SuccessorServiceTransaction
_InHouseRepairItem _InHouseRepairItem
_PredecessorCustomerReturn _PredecessorCustomerReturn
_OutboundDelivery _OutboundDelivery

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_InhRepairTransactionRelation.
-- 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_InhRepairTransactionRelation AS
SELECT
  CustMgmtTransacRelationUUID,
  CustMgmtPrdcssrTransactionUUID,
  CustMgmtPrdcssrTransacObjType,
  CustMgmtSuccssrTransactionUUID,
  CustMgmtSuccssrTransactionKey,
  CustMgmtSuccssrTransacObjType,
  CustMgmtTransacRelationType,
  CustMgmtPrdcssrTransactionKey
FROM I_CustMgmtTransactionRelation
LEFT OUTER JOIN I_ServiceDocument AS _PredecessorServiceTransaction ON CustMgmtPrdcssrTransactionUUID = _PredecessorServiceTransaction.ServiceDocumentUUID AND CustMgmtPrdcssrTransacObjType = _PredecessorServiceTransaction.ServiceObjectType  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocument AS _SuccessorServiceTransaction ON CustMgmtSuccssrTransactionUUID = _SuccessorServiceTransaction.ServiceDocumentUUID AND CustMgmtSuccssrTransacObjType = _SuccessorServiceTransaction.ServiceObjectType  -- association [0..1]
LEFT OUTER JOIN I_InHouseRepairItem AS _InHouseRepairItem ON CustMgmtPrdcssrTransactionUUID = _InHouseRepairItem.InHouseRepairItemUUID AND CustMgmtPrdcssrTransacObjType = _InHouseRepairItem.InhRepairItemObjectType AND CustMgmtPrdcssrTransacObjType = 'BUS2000257'  -- association [0..1]
LEFT OUTER JOIN I_CustomerReturnEnhanced AS _PredecessorCustomerReturn ON CustMgmtPrdcssrTransactionKey = _PredecessorCustomerReturn.CustomerReturn  -- association [0..1]
LEFT OUTER JOIN I_OutboundDelivery AS _OutboundDelivery ON CustMgmtSuccssrTransactionKey = _OutboundDelivery.OutboundDelivery  -- association [0..1]
;