I_BusPartRelationshipTP

DDL: I_BUSPARTRELATIONSHIPTP Type: view_entity TRANSACTIONAL

RAP BO View for BUPA Relationship

I_BusPartRelationshipTP is a Transactional CDS View that provides data about "RAP BO View for BUPA Relationship" in SAP S/4HANA. It reads from 1 data source (I_BPRelationshipUnion) and exposes 31 fields with key fields BusinessPartner1, BusinessPartner2, ValidityEndDate, RelationshipCategory, BPRelshpCatIsInFwdDirection. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BPRelationshipUnion I_BPRelationshipUnion from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_BPRelshpCntctPersnAddressTP _BusPartRelStdAddress $projection.BusinessPartner1 = _BusPartRelStdAddress.BusinessPartner1 and $projection.BusinessPartner2 = _BusPartRelStdAddress.BusinessPartner2 and $projection.ValidityEndDate = _BusPartRelStdAddress.ValidityEndDate and $projection.RelationshipCategory = _BusPartRelStdAddress.RelationshipCategory and $projection.BPRelshpCatIsInFwdDirection = _BusPartRelStdAddress.BPRelshpCatIsInFwdDirection and _BusPartRelStdAddress.IsDefaultAddress = 'X'
[0..1] I_BusPartRelshpCategoryDesc _RelationshipCategoryText $projection.RelationshipCategory = _RelationshipCategoryText.RelationshipCategory and $projection.BusPartRelshpIsRoleDefinition = _RelationshipCategoryText.BusPartRelshpIsRoleDefinition and $projection.BPRelshpCatIsInFwdDirection = _RelationshipCategoryText.BPRelshpCatIsInFwdDirection
[0..1] I_BPRelshpCompanyInterestTP _BPRelshpCompanyInterest
[0..1] I_BPRelshpContactPersonTP _BPRelshpContactPerson
[0..*] I_BPRelshpCntctPersnAddressTP _BPRelshpCntctPersnAddress

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
Search.searchable true view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label RAP BO View for BUPA Relationship view
Metadata.ignorePropagatedAnnotations true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner1 BusinessPartner1 Partner
KEY BusinessPartner2 BusinessPartner2 Partner
KEY ValidityEndDate ValidTo
KEY RelationshipCategory RelationshipCategory Relationsh.Cat.
KEY BPRelshpCatIsInFwdDirection BPRelshpCatIsInFwdDirection Boolean Variable (X = True, - = False, Space = Unknown)
BusinessPartner1ForEdit BusinessPartner1 Partner
BusinessPartner2ForEdit BusinessPartner2 Partner
RelationshipCategoryForEdit RelationshipCategory Relationsh.Cat.
RelationshipNumber RelationshipNumber BP Rel. Number
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDateForEdit ValidityEndDate ValidTo
BPRelshpCatIsInFwdDirForEdit BPRelshpCatIsInFwdDirection Boolean Variable (X = True, - = False, Space = Unknown)
IsStandardRelationship IsStandardRelationship Standard
BPRelationshipType BPRelationshipType RelationshpType
BusPartRelshpIsRoleDefinition BusPartRelshpIsRoleDefinition Role definition
CreatedByUser CreatedByUser User Name
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangedByUser LastChangedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
BusinessPartnerUUID
BusinessPartnerUUID1 _BusinessPartner1 BusinessPartnerUUID UUID
BusinessPartnerUUID2 _BusinessPartner2 BusinessPartnerUUID UUID
_BusinessPartner1 _BusinessPartner1
_BusinessPartner2 _BusinessPartner2
_RelationshipCategoryText _RelationshipCategoryText
_BusPartRelStdAddress _BusPartRelStdAddress
_BPRelshpCompanyInterest _BPRelshpCompanyInterest
_BPRelshpContactPerson _BPRelshpContactPerson
_BPRelshpCntctPersnAddress _BPRelshpCntctPersnAddress

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_BusPartRelationshipTP.
-- 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_BusPartRelationshipTP AS
SELECT
  BusinessPartner1,
  BusinessPartner2,
  cast( ValidityEndDate as abap.char( 17 )) AS ValidityEndDate,
  RelationshipCategory,
  BPRelshpCatIsInFwdDirection,
  BusinessPartner1 AS BusinessPartner1ForEdit,
  BusinessPartner2 AS BusinessPartner2ForEdit,
  RelationshipCategory AS RelationshipCategoryForEdit,
  RelationshipNumber,
  ValidityStartDate,
  ValidityEndDate AS ValidityEndDateForEdit,
  BPRelshpCatIsInFwdDirection AS BPRelshpCatIsInFwdDirForEdit,
  IsStandardRelationship,
  BPRelationshipType,
  BusPartRelshpIsRoleDefinition,
  CreatedByUser,
  CreationDate,
  CreationTime,
  LastChangedByUser,
  LastChangeDate,
  LastChangeTime,
  cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) AS BusinessPartnerUUID,
  _BusinessPartner1.BusinessPartnerUUID AS BusinessPartnerUUID1,
  _BusinessPartner2.BusinessPartnerUUID AS BusinessPartnerUUID2
FROM I_BPRelationshipUnion
LEFT OUTER JOIN I_BPRelshpCntctPersnAddressTP AS _BusPartRelStdAddress ON BusinessPartner1 = _BusPartRelStdAddress.BusinessPartner1 AND BusinessPartner2 = _BusPartRelStdAddress.BusinessPartner2 AND ValidityEndDate = _BusPartRelStdAddress.ValidityEndDate AND RelationshipCategory = _BusPartRelStdAddress.RelationshipCategory AND BPRelshpCatIsInFwdDirection = _BusPartRelStdAddress.BPRelshpCatIsInFwdDirection AND _BusPartRelStdAddress.IsDefaultAddress = 'X'  -- association [0..1]
LEFT OUTER JOIN I_BusPartRelshpCategoryDesc AS _RelationshipCategoryText ON RelationshipCategory = _RelationshipCategoryText.RelationshipCategory AND BusPartRelshpIsRoleDefinition = _RelationshipCategoryText.BusPartRelshpIsRoleDefinition AND BPRelshpCatIsInFwdDirection = _RelationshipCategoryText.BPRelshpCatIsInFwdDirection  -- association [0..1]
LEFT OUTER JOIN I_BPRelshpCompanyInterestTP AS _BPRelshpCompanyInterest ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN I_BPRelshpContactPersonTP AS _BPRelshpContactPerson ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN I_BPRelshpCntctPersnAddressTP AS _BPRelshpCntctPersnAddress ON /* condition not available in parsed metadata */  -- association [0..*]
;