I_InhRepairTransactionRelation

DDL: I_INHREPAIRTRANSACTIONRELATION Type: view_entity COMPOSITE Package: CRMS4_REPAIR_BO

Relationship between Srvc Transactions

I_InhRepairTransactionRelation (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Sales

I_InhRepairTransactionRelation is a Composite CDS View that provides data about "Relationship between Srvc 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. Part of development package CRMS4_REPAIR_BO.

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 →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSales
Application ComponentCRM-S4-IHR-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageSales for SAP S/4HANA Cloud Public Edition

Documentation

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 (8)

NameValueLevelField
EndUserText.label Relationship between Srvc 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

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CustMgmtTransacRelationUUID CustMgmtTransacRelationUUID Object Relationship Service : GUID binary link
CustMgmtPrdcssrTransactionUUID CustMgmtPrdcssrTransactionUUID GUID of a CRM Order Object
CustMgmtPrdcssrTransacObjType CustMgmtPrdcssrTransacObjType Object Type
CustMgmtSuccssrTransactionUUID CustMgmtSuccssrTransactionUUID GUID of a CRM Order Object
CustMgmtSuccssrTransactionKey CustMgmtSuccssrTransactionKey Object key
CustMgmtSuccssrTransacObjType CustMgmtSuccssrTransacObjType Object Type
CustMgmtTransacRelationType CustMgmtTransacRelationType Relationship type
CustMgmtPrdcssrTransactionKey CustMgmtPrdcssrTransactionKey Object 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]
;