I_BPRelshpCntctPersnAddrVersTP
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)
| Source | Alias | Join Type |
|---|---|---|
| adcp | AddressDetails | inner |
| P_BPContactToAddress | P_BPContactToAddress | from |
| adrp | PersonDetails | left_outer |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA