I_BPRelshpCntctPersnAddrVersTP

DDL: I_BPRELSHPCNTCTPERSNADDRVERSTP SQL: IBPRELCPADVERTP Type: view_entity TRANSACTIONAL Package: MDC_BUPA_REL_BO

RAP BO Contact Person Address Versions

I_BPRelshpCntctPersnAddrVersTP is a Transactional CDS View that provides data about "RAP BO Contact Person Address Versions" in SAP S/4HANA. It reads from 3 data sources (adcp, P_BPContactToAddress, adrp) and exposes 44 fields with key fields BusinessPartner1, BusinessPartner2, ValidityEndDate, RelationshipCategory, AddressID. It has 4 associations to related views. Part of development package MDC_BUPA_REL_BO.

Data Sources (3)

SourceAliasJoin Type
adcp AddressDetails inner
P_BPContactToAddress P_BPContactToAddress from
adrp PersonDetails left_outer

Associations (4)

CardinalityTargetAliasCondition
[1] I_BusPartRelationshipTP _BusPartRelationship $projection.BusinessPartner1 = _BusPartRelationship.BusinessPartner1 and $projection.BusinessPartner2 = _BusPartRelationship.BusinessPartner2 and $projection.ValidityEndDate = _BusPartRelationship.ValidityEndDate and $projection.RelationshipCategory = _BusPartRelationship.RelationshipCategory and $projection.BPRelshpCatIsInFwdDirection = _BusPartRelationship.BPRelshpCatIsInFwdDirection
[0..1] I_BPRelshpContactPersonTP _BPRelshpContactPerson $projection.BusinessPartner1 = _BPRelshpContactPerson.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelshpContactPerson.BusinessPartner2 and $projection.ValidityEndDate = _BPRelshpContactPerson.ValidityEndDate and $projection.RelationshipCategory = _BPRelshpContactPerson.RelationshipCategory
[0..*] I_AddressRepresentationText _AddressRepresentationText $projection.AddressRepresentationCode = _AddressRepresentationText.AddressRepresentationCode
[0..*] I_BusinessPartnerFormOfAddrTxt _BusinessPartnerFormOfAddrTxt $projection.FormOfAddress = _BusinessPartnerFormOfAddrTxt.FormOfAddress

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label RAP BO Contact Person Address Versions view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
Search.searchable true view
VDM.viewType #TRANSACTIONAL view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner1 P_BPContactToAddress BusinessPartnerCompany Busn. Partner
KEY BusinessPartner2 P_BPContactToAddress BusinessPartnerPerson Busn. Partner
KEY ValidityEndDate
KEY RelationshipCategory P_BPContactToAddress RelationshipCategory Relationsh.Cat.
KEY AddressID P_BPContactToAddress AddressID Ship-to address
KEY AddressRepresentationCode adcp nation Country/Region
KEY BPRelshpCatIsInFwdDirection P_BPContactToAddress BPRelshpCatIsInFwdDirection Boolean Variable (X = True, - = False, Space = Unknown)
AddrRepCodeForEdit adcp nation Country/Region
RelationshipNumber P_BPContactToAddress RelationshipNumber BP Rel. Number
FormOfAddress adrp title View Title
FirstName adrp name_first First Name
LastName adrp name_last Last Name
BirthName adrp name2 Name2/First nme
MiddleName adrp namemiddle Middle Name
AdditionalFamilyName adrp name_last2 Name at Birth
FullName adrp name_text Full Name
PersonFullNameMaintStatus adrp converted Converted
AcademicTitle adrp title_aca1 Academic Title
AcademicTitle2 adrp title_aca2 2nd Academic
LastNamePrefix adrp prefix1 Prefix Key
LastNameSecondPrefix adrp prefix2 2nd prefix
NameSupplement adrp title_sppl Name Supplement
BusinessPartnerNicknameLabel adrp nickname Nickname
Initials adrp initials Initials
NameFormat adrp nameformat Name Format
NameCountry adrp namcountry Country/Region
PersonProfessionName adrp profession Profession
GenderCode adrp sex Sex-Specific
AddressSearchText1 adrp sort1 Sort string 1
AddressSearchText2 adrp sort2 Sort string 2
ContactRelationshipFunction adcp function Unit Func.
ContactRelationshipDepartment adcp department Department
Floor adcp floor Floor
Building adcp building Building code
RoomNumber adcp roomnumber Room Number
CorrespondenceShortName adcp id_code Short name
InhouseMail adcp ih_mail Internal mail
_BusinessPartner1 P_BPContactToAddress _BusinessPartnerCompany
_BusinessPartner2 P_BPContactToAddress _BusinessPartnerPerson
_BPRelshpCntctPersnAddress _BPRelshpCntctPersnAddress
_BPRelshpContactPerson _BPRelshpContactPerson
_BusPartRelationship _BusPartRelationship
_AddressRepresentationText _AddressRepresentationText
_BusinessPartnerFormOfAddrTxt _BusinessPartnerFormOfAddrTxt

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_BPRelshpCntctPersnAddrVersTP.
-- 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.
-- SQL view name: IBPRELCPADVERTP

CREATE VIEW I_BPRelshpCntctPersnAddrVersTP AS
SELECT
  P_BPContactToAddress.BusinessPartnerCompany AS BusinessPartner1,
  P_BPContactToAddress.BusinessPartnerPerson AS BusinessPartner2,
  cast( P_BPContactToAddress.ValidityEndDate as abap.char( 17 )) AS ValidityEndDate,
  P_BPContactToAddress.RelationshipCategory AS RelationshipCategory,
  P_BPContactToAddress.AddressID AS AddressID,
  AddressDetails.nation AS AddressRepresentationCode,
  P_BPContactToAddress.BPRelshpCatIsInFwdDirection AS BPRelshpCatIsInFwdDirection,
  AddressDetails.nation AS AddrRepCodeForEdit,
  P_BPContactToAddress.RelationshipNumber AS RelationshipNumber,
  PersonDetails.title AS FormOfAddress,
  PersonDetails.name_first AS FirstName,
  PersonDetails.name_last AS LastName,
  PersonDetails.name2 AS BirthName,
  PersonDetails.namemiddle AS MiddleName,
  PersonDetails.name_last2 AS AdditionalFamilyName,
  PersonDetails.name_text AS FullName,
  PersonDetails.converted AS PersonFullNameMaintStatus,
  PersonDetails.title_aca1 AS AcademicTitle,
  PersonDetails.title_aca2 AS AcademicTitle2,
  PersonDetails.prefix1 AS LastNamePrefix,
  PersonDetails.prefix2 AS LastNameSecondPrefix,
  PersonDetails.title_sppl AS NameSupplement,
  PersonDetails.nickname AS BusinessPartnerNicknameLabel,
  PersonDetails.initials AS Initials,
  PersonDetails.nameformat AS NameFormat,
  PersonDetails.namcountry AS NameCountry,
  PersonDetails.profession AS PersonProfessionName,
  PersonDetails.sex AS GenderCode,
  PersonDetails.sort1 AS AddressSearchText1,
  PersonDetails.sort2 AS AddressSearchText2,
  AddressDetails.function AS ContactRelationshipFunction,
  AddressDetails.department AS ContactRelationshipDepartment,
  AddressDetails.floor AS Floor,
  AddressDetails.building AS Building,
  AddressDetails.roomnumber AS RoomNumber,
  AddressDetails.id_code AS CorrespondenceShortName,
  AddressDetails.ih_mail AS InhouseMail,
  P_BPContactToAddress._BusinessPartnerCompany AS _BusinessPartner1,
  P_BPContactToAddress._BusinessPartnerPerson AS _BusinessPartner2
FROM P_BPContactToAddress
INNER JOIN adcp AS AddressDetails ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN adrp AS PersonDetails ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BusPartRelationshipTP AS _BusPartRelationship ON BusinessPartner1 = _BusPartRelationship.BusinessPartner1 AND BusinessPartner2 = _BusPartRelationship.BusinessPartner2 AND ValidityEndDate = _BusPartRelationship.ValidityEndDate AND RelationshipCategory = _BusPartRelationship.RelationshipCategory AND BPRelshpCatIsInFwdDirection = _BusPartRelationship.BPRelshpCatIsInFwdDirection  -- association [1]
LEFT OUTER JOIN I_BPRelshpContactPersonTP AS _BPRelshpContactPerson ON BusinessPartner1 = _BPRelshpContactPerson.BusinessPartner1 AND BusinessPartner2 = _BPRelshpContactPerson.BusinessPartner2 AND ValidityEndDate = _BPRelshpContactPerson.ValidityEndDate AND RelationshipCategory = _BPRelshpContactPerson.RelationshipCategory  -- association [0..1]
LEFT OUTER JOIN I_AddressRepresentationText AS _AddressRepresentationText ON AddressRepresentationCode = _AddressRepresentationText.AddressRepresentationCode  -- association [0..*]
LEFT OUTER JOIN I_BusinessPartnerFormOfAddrTxt AS _BusinessPartnerFormOfAddrTxt ON FormOfAddress = _BusinessPartnerFormOfAddrTxt.FormOfAddress  -- association [0..*]
;