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.

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
CustMgmtPrdcssrTransactionUUID CustMgmtPrdcssrTransactionUUID
CustMgmtPrdcssrTransacObjType CustMgmtPrdcssrTransacObjType
CustMgmtSuccssrTransactionUUID CustMgmtSuccssrTransactionUUID
CustMgmtSuccssrTransactionKey CustMgmtSuccssrTransactionKey
CustMgmtSuccssrTransacObjType CustMgmtSuccssrTransacObjType
CustMgmtTransacRelationType CustMgmtTransacRelationType
CustMgmtPrdcssrTransactionKey CustMgmtPrdcssrTransactionKey
_PredecessorServiceTransaction _PredecessorServiceTransaction
_SuccessorServiceTransaction _SuccessorServiceTransaction
_InHouseRepairItem _InHouseRepairItem
_PredecessorCustomerReturn _PredecessorCustomerReturn
_OutboundDelivery _OutboundDelivery
@EndUserText.label: 'Relationship between Service Transactions'
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
  authorizationCheck: #PRIVILEGED_ONLY
}
@ObjectModel: {
  usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
}
@Metadata: {
  ignorePropagatedAnnotations: true
}
@ClientHandling: {
  algorithm: #SESSION_VARIABLE
}
@AbapCatalog: {
  sqlViewName: 'IIHRTRANSACRLTN',
  compiler.compareFilter: true,
  preserveKey: true
}

define view I_InhRepairTransactionRelation

  as select from I_CustMgmtTransactionRelation

  /*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
  association [0..1] to I_ServiceDocument   as _PredecessorServiceTransaction on  $projection.CustMgmtPrdcssrTransactionUUID = _PredecessorServiceTransaction.ServiceDocumentUUID
                                                                              and $projection.CustMgmtPrdcssrTransacObjType  = _PredecessorServiceTransaction.ServiceObjectType
  /*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
  association [0..1] to I_ServiceDocument   as _SuccessorServiceTransaction   on  $projection.CustMgmtSuccssrTransactionUUID = _SuccessorServiceTransaction.ServiceDocumentUUID
                                                                              and $projection.CustMgmtSuccssrTransacObjType  = _SuccessorServiceTransaction.ServiceObjectType
  /*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
  association [0..1] to I_InHouseRepairItem as _InHouseRepairItem             on  $projection.CustMgmtPrdcssrTransactionUUID = _InHouseRepairItem.InHouseRepairItemUUID
                                                                              and $projection.CustMgmtPrdcssrTransacObjType  = _InHouseRepairItem.InhRepairItemObjectType
                                                                              and $projection.CustMgmtPrdcssrTransacObjType  = 'BUS2000257'

  association [0..1] to I_CustomerReturnEnhanced as _PredecessorCustomerReturn on $projection.CustMgmtPrdcssrTransactionKey = _PredecessorCustomerReturn.CustomerReturn
  association [0..1] to I_OutboundDelivery as _OutboundDelivery on $projection.CustMgmtSuccssrTransactionKey = _OutboundDelivery.OutboundDelivery
{
  key CustMgmtTransacRelationUUID,
      CustMgmtPrdcssrTransactionUUID,
      CustMgmtPrdcssrTransacObjType,
      CustMgmtSuccssrTransactionUUID,
      CustMgmtSuccssrTransactionKey,
      CustMgmtSuccssrTransacObjType,
      CustMgmtTransacRelationType,

      //Return Order Changes

      CustMgmtPrdcssrTransactionKey, 
      
      
      // Associations

      _PredecessorServiceTransaction,
      _SuccessorServiceTransaction,
      _InHouseRepairItem,
      
      _PredecessorCustomerReturn,      
      _OutboundDelivery
}