I_BPRelshpCntctPersnAddressTP
RAPBO view for BP Contact Person Address
I_BPRelshpCntctPersnAddressTP is a Transactional CDS View that provides data about "RAPBO view for BP Contact Person Address" in SAP S/4HANA. It reads from 1 data source (P_BPContactToAddress) and exposes 42 fields with key fields BusinessPartner1, BusinessPartner2, ValidityEndDate, RelationshipCategory, AddressID. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_BPContactToAddress | P_BPContactToAddress | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_BPRelshpContactPersonTP | _BPRelshpContactPerson | $projection.BusinessPartner1 = _BPRelshpContactPerson.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelshpContactPerson.BusinessPartner2 and $projection.ValidityEndDate = _BPRelshpContactPerson.ValidityEndDate and $projection.RelationshipCategory = _BPRelshpContactPerson.RelationshipCategory and $projection.BPRelshpCatIsInFwdDirection = _BPRelshpContactPerson.BPRelshpCatIsInFwdDirection |
| [0..1] | I_BPRelshpCntctPersnTelNmbrTP | _BPRelStandardTelNumber | $projection.BusinessPartner1 = _BPRelStandardTelNumber.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelStandardTelNumber.BusinessPartner2 and $projection.ValidityEndDate = _BPRelStandardTelNumber.ValidityEndDate and $projection.RelationshipCategory = _BPRelStandardTelNumber.RelationshipCategory and $projection.AddressID = _BPRelStandardTelNumber.AddressID and $projection.BPRelshpCatIsInFwdDirection = _BPRelStandardTelNumber.BPRelshpCatIsInFwdDirection and _BPRelStandardTelNumber.PhoneNumberType = '1' and _BPRelStandardTelNumber.IsDefaultPhoneNumber = 'X' |
| [0..1] | I_BPRelshpCntctPersnMblNmbrTP | _BPRelStandardMblNumber | $projection.BusinessPartner1 = _BPRelStandardMblNumber.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelStandardMblNumber.BusinessPartner2 and $projection.ValidityEndDate = _BPRelStandardMblNumber.ValidityEndDate and $projection.RelationshipCategory = _BPRelStandardMblNumber.RelationshipCategory and $projection.AddressID = _BPRelStandardMblNumber.AddressID and $projection.BPRelshpCatIsInFwdDirection = _BPRelStandardMblNumber.BPRelshpCatIsInFwdDirection and _BPRelStandardMblNumber.PhoneNumberType = '3' and _BPRelStandardMblNumber.IsDefaultPhoneNumber = 'X' |
| [0..1] | I_BPRelshpCntctPersnFaxNmbrTP | _BPRelStandardFaxNmbr | $projection.BusinessPartner1 = _BPRelStandardFaxNmbr.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelStandardFaxNmbr.BusinessPartner2 and $projection.ValidityEndDate = _BPRelStandardFaxNmbr.ValidityEndDate and $projection.RelationshipCategory = _BPRelStandardFaxNmbr.RelationshipCategory and $projection.AddressID = _BPRelStandardFaxNmbr.AddressID and $projection.BPRelshpCatIsInFwdDirection = _BPRelStandardFaxNmbr.BPRelshpCatIsInFwdDirection and _BPRelStandardFaxNmbr.IsDefaultFaxNumber = 'X' |
| [0..1] | I_BPRelshpCntctPersnEmlAddrTP | _BPRelStandardEmlAddr | $projection.BusinessPartner1 = _BPRelStandardEmlAddr.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelStandardEmlAddr.BusinessPartner2 and $projection.ValidityEndDate = _BPRelStandardEmlAddr.ValidityEndDate and $projection.RelationshipCategory = _BPRelStandardEmlAddr.RelationshipCategory and $projection.AddressID = _BPRelStandardEmlAddr.AddressID and $projection.BPRelshpCatIsInFwdDirection = _BPRelStandardEmlAddr.BPRelshpCatIsInFwdDirection and _BPRelStandardEmlAddr.IsDefaultEmailAddress = 'X' |
| [0..*] | I_BPRelshpCntctPersnAddrVersTP | _BPRelshpCntctPersnAddrVers | |
| [0..*] | I_BPRelshpCntctPersnEmlAddrTP | _BPRelshpCntctPersnEmlAddr | |
| [0..*] | I_BPRelshpCntctPersnTelNmbrTP | _BPRelshpCntctPersnTelNmbr | |
| [0..*] | I_BPRelshpCntctPersnMblNmbrTP | _BPRelshpCntctPersnMblNmbr | |
| [0..*] | I_BPRelshpCntctPersnFaxNmbrTP | _BPRelshpCntctPersnFaxNmbr | |
| [0..*] | I_BPRelshpCntctPersnWbsteURLTP | _BPRelshpCntctPersnWbsteURL | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | RAPBO view for BP Contact Person Address | 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 (42)
| 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 | BPRelshpCatIsInFwdDirection | P_BPContactToAddress | BPRelshpCatIsInFwdDirection | Boolean Variable (X = True, - = False, Space = Unknown) |
| AddressIDForEdit | P_BPContactToAddress | AddressID | Ship-to address | |
| RelationshipNumber | P_BPContactToAddress | RelationshipNumber | BP Rel. Number | |
| IsDefaultAddress | P_BPContactToAddress | IsDefaultAddress | Stand. address | |
| ContactRelationshipFunction | P_BPContactToAddress | ContactRelationshipFunction | Function | |
| ContactRelationshipDepartment | P_BPContactToAddress | ContactRelationshipDepartment | Department | |
| Floor | P_BPContactToAddress | Floor | Floor | |
| Building | P_BPContactToAddress | Building | Building code | |
| RoomNumber | P_BPContactToAddress | RoomNumber | Room Number | |
| PrfrdCommMediumType | P_BPContactToAddress | PrfrdCommMediumType | Comm. Method | |
| CorrespondenceShortName | P_BPContactToAddress | CorrespondenceShortName | ||
| InhouseMail | P_BPContactToAddress | InhouseMail | ||
| Country1111asFormattedAddress | ||||
| FormOfAddress | ||||
| FullName | ||||
| HouseNumber | ||||
| StreetName | ||||
| CityName | ||||
| PostalCode | ||||
| Region | ||||
| Country | ||||
| AddressTimeZone | ||||
| RelValidityEndDate | P_BPContactToAddress | RelValidityEndDate | Validity End Date | |
| _BusinessPartner1 | P_BPContactToAddress | _BusinessPartnerCompany | ||
| _BusinessPartner2 | P_BPContactToAddress | _BusinessPartnerPerson | ||
| _BPRelshpContactPerson | _BPRelshpContactPerson | |||
| _BusPartRelationship | _BusPartRelationship | |||
| _BPRelshpCntctPersnEmlAddr | _BPRelshpCntctPersnEmlAddr | |||
| _BPRelshpCntctPersnTelNmbr | _BPRelshpCntctPersnTelNmbr | |||
| _BPRelshpCntctPersnMblNmbr | _BPRelshpCntctPersnMblNmbr | |||
| _BPRelshpCntctPersnFaxNmbr | _BPRelshpCntctPersnFaxNmbr | |||
| _BPRelshpCntctPersnWbsteURL | _BPRelshpCntctPersnWbsteURL | |||
| _BPRelshpCntctPersnAddrVers | _BPRelshpCntctPersnAddrVers | |||
| _BPRelStandardTelNumber | _BPRelStandardTelNumber | |||
| _BPRelStandardMblNumber | _BPRelStandardMblNumber | |||
| _BPRelStandardFaxNmbr | _BPRelStandardFaxNmbr | |||
| _BPRelStandardEmlAddr | _BPRelStandardEmlAddr |
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_BPRelshpCntctPersnAddressTP.
-- 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_BPRelshpCntctPersnAddressTP 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,
P_BPContactToAddress.BPRelshpCatIsInFwdDirection AS BPRelshpCatIsInFwdDirection,
P_BPContactToAddress.AddressID AS AddressIDForEdit,
P_BPContactToAddress.RelationshipNumber AS RelationshipNumber,
P_BPContactToAddress.IsDefaultAddress AS IsDefaultAddress,
P_BPContactToAddress.ContactRelationshipFunction AS ContactRelationshipFunction,
P_BPContactToAddress.ContactRelationshipDepartment AS ContactRelationshipDepartment,
P_BPContactToAddress.Floor AS Floor,
P_BPContactToAddress.Building AS Building,
P_BPContactToAddress.RoomNumber AS RoomNumber,
P_BPContactToAddress.PrfrdCommMediumType AS PrfrdCommMediumType,
P_BPContactToAddress.CorrespondenceShortName AS CorrespondenceShortName,
P_BPContactToAddress.InhouseMail AS InhouseMail,
concat_with_space(P_BPContactToAddress._BPCompanyPostalAddress.HouseNumber, concat_with_space(P_BPContactToAddress._BPCompanyPostalAddress.StreetName, concat_with_space(P_BPContactToAddress._BPCompanyPostalAddress.CityName, concat_with_space(P_BPContactToAddress._BPCompanyPostalAddress.PostalCode,P_BPContactToAddress._BPCompanyPostalAddress.Country,1),1),1),1) as FormattedAddress AS Country1111asFormattedAddress,
P_BPContactToAddress._BPCompanyPostalAddress.FormOfAddress AS FormOfAddress,
P_BPContactToAddress._BPCompanyPostalAddress.FullName AS FullName,
P_BPContactToAddress._BPCompanyPostalAddress.HouseNumber AS HouseNumber,
P_BPContactToAddress._BPCompanyPostalAddress.StreetName AS StreetName,
P_BPContactToAddress._BPCompanyPostalAddress.CityName AS CityName,
P_BPContactToAddress._BPCompanyPostalAddress.PostalCode AS PostalCode,
P_BPContactToAddress._BPCompanyPostalAddress.Region AS Region,
P_BPContactToAddress._BPCompanyPostalAddress.Country AS Country,
P_BPContactToAddress._BPCompanyPostalAddress.AddressTimeZone AS AddressTimeZone,
P_BPContactToAddress.RelValidityEndDate AS RelValidityEndDate,
P_BPContactToAddress._BusinessPartnerCompany AS _BusinessPartner1,
P_BPContactToAddress._BusinessPartnerPerson AS _BusinessPartner2
FROM P_BPContactToAddress
LEFT OUTER JOIN I_BPRelshpContactPersonTP AS _BPRelshpContactPerson ON BusinessPartner1 = _BPRelshpContactPerson.BusinessPartner1 AND BusinessPartner2 = _BPRelshpContactPerson.BusinessPartner2 AND ValidityEndDate = _BPRelshpContactPerson.ValidityEndDate AND RelationshipCategory = _BPRelshpContactPerson.RelationshipCategory AND BPRelshpCatIsInFwdDirection = _BPRelshpContactPerson.BPRelshpCatIsInFwdDirection -- association [1]
LEFT OUTER JOIN I_BPRelshpCntctPersnTelNmbrTP AS _BPRelStandardTelNumber ON BusinessPartner1 = _BPRelStandardTelNumber.BusinessPartner1 AND BusinessPartner2 = _BPRelStandardTelNumber.BusinessPartner2 AND ValidityEndDate = _BPRelStandardTelNumber.ValidityEndDate AND RelationshipCategory = _BPRelStandardTelNumber.RelationshipCategory AND AddressID = _BPRelStandardTelNumber.AddressID AND BPRelshpCatIsInFwdDirection = _BPRelStandardTelNumber.BPRelshpCatIsInFwdDirection AND _BPRelStandardTelNumber.PhoneNumberType = '1' AND _BPRelStandardTelNumber.IsDefaultPhoneNumber = 'X' -- association [0..1]
LEFT OUTER JOIN I_BPRelshpCntctPersnMblNmbrTP AS _BPRelStandardMblNumber ON BusinessPartner1 = _BPRelStandardMblNumber.BusinessPartner1 AND BusinessPartner2 = _BPRelStandardMblNumber.BusinessPartner2 AND ValidityEndDate = _BPRelStandardMblNumber.ValidityEndDate AND RelationshipCategory = _BPRelStandardMblNumber.RelationshipCategory AND AddressID = _BPRelStandardMblNumber.AddressID AND BPRelshpCatIsInFwdDirection = _BPRelStandardMblNumber.BPRelshpCatIsInFwdDirection AND _BPRelStandardMblNumber.PhoneNumberType = '3' AND _BPRelStandardMblNumber.IsDefaultPhoneNumber = 'X' -- association [0..1]
LEFT OUTER JOIN I_BPRelshpCntctPersnFaxNmbrTP AS _BPRelStandardFaxNmbr ON BusinessPartner1 = _BPRelStandardFaxNmbr.BusinessPartner1 AND BusinessPartner2 = _BPRelStandardFaxNmbr.BusinessPartner2 AND ValidityEndDate = _BPRelStandardFaxNmbr.ValidityEndDate AND RelationshipCategory = _BPRelStandardFaxNmbr.RelationshipCategory AND AddressID = _BPRelStandardFaxNmbr.AddressID AND BPRelshpCatIsInFwdDirection = _BPRelStandardFaxNmbr.BPRelshpCatIsInFwdDirection AND _BPRelStandardFaxNmbr.IsDefaultFaxNumber = 'X' -- association [0..1]
LEFT OUTER JOIN I_BPRelshpCntctPersnEmlAddrTP AS _BPRelStandardEmlAddr ON BusinessPartner1 = _BPRelStandardEmlAddr.BusinessPartner1 AND BusinessPartner2 = _BPRelStandardEmlAddr.BusinessPartner2 AND ValidityEndDate = _BPRelStandardEmlAddr.ValidityEndDate AND RelationshipCategory = _BPRelStandardEmlAddr.RelationshipCategory AND AddressID = _BPRelStandardEmlAddr.AddressID AND BPRelshpCatIsInFwdDirection = _BPRelStandardEmlAddr.BPRelshpCatIsInFwdDirection AND _BPRelStandardEmlAddr.IsDefaultEmailAddress = 'X' -- association [0..1]
LEFT OUTER JOIN I_BPRelshpCntctPersnAddrVersTP AS _BPRelshpCntctPersnAddrVers ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_BPRelshpCntctPersnEmlAddrTP AS _BPRelshpCntctPersnEmlAddr ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_BPRelshpCntctPersnTelNmbrTP AS _BPRelshpCntctPersnTelNmbr ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_BPRelshpCntctPersnMblNmbrTP AS _BPRelshpCntctPersnMblNmbr ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_BPRelshpCntctPersnFaxNmbrTP AS _BPRelshpCntctPersnFaxNmbr ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_BPRelshpCntctPersnWbsteURLTP AS _BPRelshpCntctPersnWbsteURL ON /* condition not available in parsed metadata */ -- 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