I_BusPartRelationshipTP_2

DDL: I_BUSPARTRELATIONSHIPTP_2 SQL: IBUPARELTP2 Type: view TRANSACTIONAL

BO View fot BUPA Relationship

I_BusPartRelationshipTP_2 is a Transactional CDS View that provides data about "BO View fot BUPA Relationship" in SAP S/4HANA. It reads from 2 data sources (I_BPRelationship_2, I_BPRelationship_2) and exposes 47 fields with key fields RelationshipNumber, BusinessPartner1, BusinessPartner2, ValidityEndDate, BusinessPartner1. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_BPRelationship_2 I_BPRelationship_2 from
I_BPRelationship_2 I_BPRelationship_2 union_all

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerTP _BusinessPartner $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner
[0..1] I_BPRelshpCompanyInterestTP_2 _BPRelshpCompanyInterest $projection.RelationshipNumber = _BPRelshpCompanyInterest.RelationshipNumber and $projection.BusinessPartner1 = _BPRelshpCompanyInterest.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelshpCompanyInterest.BusinessPartner2 and $projection.ValidityEndDate = _BPRelshpCompanyInterest.ValidityEndDate

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IBUPARELTP2 view
AccessControl.authorizationCheck #CHECK view
EndUserText.label BO View fot BUPA Relationship view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.writeDraftPersistence bupa_rel_d view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable true view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (47)

KeyFieldSource TableSource FieldDescription
KEY RelationshipNumber RelationshipNumber
KEY BusinessPartner1 BusinessPartner1
KEY BusinessPartner2 BusinessPartner2
KEY ValidityEndDate ValidityEndDate
RelationshipCategory RelationshipCategory
ValidityStartDate ValidityStartDate
RelationshipNumberForEdit RelationshipNumber
BusinessPartner1ForEdit BusinessPartner1
BusinessPartner2ForEdit BusinessPartner2
ValidityEndDateForEdit ValidityEndDate
IsStandardRelationship IsStandardRelationship
BPRelationshipType BPRelationshipType
BusPartRelshpIsRoleDefinition BusPartRelshpIsRoleDefinition
BPRelshpCatIsInFwdDirection
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangedByUser LastChangedByUser
LastChangeDate LastChangeDate
LastChangeTime LastChangeTime
_BusinessPartner _BusinessPartner
_BPRelshpCompanyInterest _BPRelshpCompanyInterest
_BusinessPartner1 _BusinessPartner1
ValidityEndDatekeyRelationshipNumber
KEY BusinessPartner1 BusinessPartner2
KEY BusinessPartner2 BusinessPartner1
KEY ValidityEndDate ValidityEndDate
RelationshipCategory RelationshipCategory
ValidityStartDate ValidityStartDate
RelationshipNumberForEdit RelationshipNumber
BusinessPartner1ForEdit BusinessPartner2
BusinessPartner2ForEdit BusinessPartner1
ValidityEndDateForEdit ValidityEndDate
IsStandardRelationship IsStandardRelationship
BPRelationshipType BPRelationshipType
BusPartRelshpIsRoleDefinition BusPartRelshpIsRoleDefinition
BPRelshpCatIsInFwdDirection
CreatedByUser CreatedByUser
CreationDate CreationDate
CreationTime CreationTime
LastChangedByUser LastChangedByUser
LastChangeDate LastChangeDate
LastChangeTime LastChangeTime
_BusinessPartner _BusinessPartner
_BPRelshpCompanyInterest _BPRelshpCompanyInterest
_BusinessPartner1 _BusinessPartner2
_BusinessPartner2 _BusinessPartner1
@AbapCatalog.sqlViewName: 'IBUPARELTP2'
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'BO View fot BUPA Relationship'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #B,
  sizeCategory: #XXL,
  dataClass: #MASTER
}
@ObjectModel: {
    semanticKey: [ 'RelationshipNumber','BusinessPartner1', 'BusinessPartner2','ValidityEndDate'],
    createEnabled,
    updateEnabled,
    deleteEnabled
}

@ObjectModel.writeDraftPersistence: 'bupa_rel_d'

@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm : #SESSION_VARIABLE
@Search.searchable: true
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
define view I_BusPartRelationshipTP_2 
  as select from I_BPRelationship_2
  association [1..1] to I_BusinessPartnerTP           as _BusinessPartner         on  $projection.BusinessPartner1     = _BusinessPartner.BusinessPartner
  association [0..1] to I_BPRelshpCompanyInterestTP_2 as _BPRelshpCompanyInterest on  $projection.RelationshipNumber   = _BPRelshpCompanyInterest.RelationshipNumber
                                                                                  and $projection.BusinessPartner1     = _BPRelshpCompanyInterest.BusinessPartner1
                                                                                  and $projection.BusinessPartner2     = _BPRelshpCompanyInterest.BusinessPartner2
                                                                                  and $projection.ValidityEndDate      = _BPRelshpCompanyInterest.ValidityEndDate
                                                                                                                                                                   
{
      //I_BPRelationship

  key RelationshipNumber,    
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
  key BusinessPartner1,
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
  key BusinessPartner2,
  key    ValidityEndDate,
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      RelationshipCategory, 
      ValidityStartDate,
      RelationshipNumber                     as RelationshipNumberForEdit,    
      BusinessPartner1                       as BusinessPartner1ForEdit,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'      
      BusinessPartner2                       as BusinessPartner2ForEdit,
      ValidityEndDate                        as ValidityEndDateForEdit,
      IsStandardRelationship,
      BPRelationshipType,
      BusPartRelshpIsRoleDefinition,
      'X' as BPRelshpCatIsInFwdDirection,

      //Administrative Data

      CreatedByUser,
      CreationDate,
      CreationTime,
      LastChangedByUser,
      LastChangeDate,
      LastChangeTime,

      //Control fields

      cast(
        case
          when RelationshipCategory = 'BURC01'
            then ''
          else 'X'
        end as abap_boolean preserving type) as BPRelshpCoIntrstDataIsHidden,

      cast(
        case
          when RelationshipCategory = 'BUR001'
            then ''
          else 'X'
        end as abap_boolean preserving type) as BPRelshpCntctPersnDataIsHidden,

      /* Associations */
      @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
      _BusinessPartner,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _BPRelshpCompanyInterest,
       _BusinessPartner1,
       _BusinessPartner2
} where RelationshipCategory <> 'BUR001'

union all select from I_BPRelationship_2
association [1..1] to I_BusinessPartnerTP           as _BusinessPartner         on  $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner
association [0..1] to I_BPRelshpCompanyInterestTP_2 as _BPRelshpCompanyInterest on  $projection.RelationshipNumber   = _BPRelshpCompanyInterest.RelationshipNumber 
                                                                                and $projection.BusinessPartner1     = _BPRelshpCompanyInterest.BusinessPartner1
                                                                                and $projection.BusinessPartner2     = _BPRelshpCompanyInterest.BusinessPartner2
                                                                                and $projection.ValidityEndDate      = _BPRelshpCompanyInterest.ValidityEndDate
                                                                                                                                                               
{//I_BPRelationship

  key RelationshipNumber,    
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
key  BusinessPartner2 as BusinessPartner1,
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
  key  BusinessPartner1 as BusinessPartner2,
  key    ValidityEndDate,
      @Search.defaultSearchElement: true
      @Search.ranking: #HIGH
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      RelationshipCategory, 
      ValidityStartDate,
      RelationshipNumber                     as RelationshipNumberForEdit,    
      BusinessPartner2                       as BusinessPartner1ForEdit,
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'      
      BusinessPartner1                       as BusinessPartner2ForEdit,
      ValidityEndDate                        as ValidityEndDateForEdit,
      IsStandardRelationship,
      BPRelationshipType,
      BusPartRelshpIsRoleDefinition,
      cast(' ' as abap_boolean)              as BPRelshpCatIsInFwdDirection,

      //Administrative Data

      CreatedByUser,
      CreationDate,
      CreationTime,
      LastChangedByUser,
      LastChangeDate,
      LastChangeTime,

      //Control fields

      cast(
        case
          when RelationshipCategory = 'BURC01'
            then ''
          else 'X'
        end as abap_boolean preserving type) as BPRelshpCoIntrstDataIsHidden,

      cast(
        case
          when RelationshipCategory = 'BUR001'
            then ''
          else 'X'
        end as abap_boolean preserving type) as BPRelshpCntctPersnDataIsHidden,

      /* Associations */
      @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
      _BusinessPartner,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _BPRelshpCompanyInterest,       
       _BusinessPartner2 as _BusinessPartner1,
       _BusinessPartner1 as _BusinessPartner2
} where RelationshipCategory <> 'BUR001'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BPRELATIONSHIP_2"
],
"ASSOCIATED":
[
"I_BPRELSHPCOMPANYINTERESTTP_2",
"I_BUSINESSPARTNER",
"I_BUSINESSPARTNERTP"
],
"BASE":
[
"I_BPRELATIONSHIP_2"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/