I_BPContactTelNmbrTP
TP View for BP Contact Person Telephone
I_BPContactTelNmbrTP is a Transactional CDS View that provides data about "TP View for BP Contact Person Telephone" in SAP S/4HANA. It reads from 2 data sources (I_BpContactToAddress, I_AddressPhoneNumber_2) and exposes 25 fields with key fields BusinessPartner1, BusinessPartner2, RelationshipNumber, ValidityEndDate, AddressID. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BpContactToAddress | ContactPerson | from |
| I_AddressPhoneNumber_2 | TelephoneNumber | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessPartnerTP | _BusinessPartner | $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner |
| [1..1] | I_BPContactAddressTP | _BPContactAddress | $projection.BusinessPartner1 = _BPContactAddress.BusinessPartner1 and $projection.BusinessPartner2 = _BPContactAddress.BusinessPartner2 and $projection.RelationshipNumber = _BPContactAddress.RelationshipNumber and $projection.ValidityEndDate = _BPContactAddress.ValidityEndDate and $projection.AddressID = _BPContactAddress.AddressID |
| [0..1] | I_BusPartTelCountryPrefix | _CountryPrefix | $projection.DestinationLocationCountry = _CountryPrefix.Country |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBPCPTELNOTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | TP View for BP Contact Person Telephone | view | |
| ObjectModel.writeDraftPersistence | BPCP_TEL_D | view | |
| ObjectModel.writeEnabled | true | 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 (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner1 | I_BpContactToAddress | BusinessPartnerCompany | Busn. Partner |
| KEY | BusinessPartner2 | I_BpContactToAddress | BusinessPartnerPerson | Busn. Partner |
| KEY | RelationshipNumber | I_BpContactToAddress | RelationshipNumber | BP Rel. Number |
| KEY | ValidityEndDate | I_BpContactToAddress | ValidityEndDate | ValidTo |
| KEY | AddressID | I_BpContactToAddress | AddressID | Ship-to address |
| KEY | OrdinalNumber | I_AddressPhoneNumber_2 | CommMediumSequenceNumber | Sequence Number |
| BusinessPartner1ForEdit | I_BpContactToAddress | BusinessPartnerCompany | Busn. Partner | |
| BusinessPartner2ForEdit | I_BpContactToAddress | BusinessPartnerPerson | Busn. Partner | |
| ValidityEndDateForEdit | I_BpContactToAddress | ValidityEndDate | ValidTo | |
| AddressIDForEdit | I_BpContactToAddress | AddressID | Ship-to address | |
| OrdinalNumberForEdit | I_AddressPhoneNumber_2 | CommMediumSequenceNumber | Sequence Number | |
| RelationshipNumberForEdit | I_BpContactToAddress | RelationshipNumber | BP Rel. Number | |
| DestinationLocationCountry | I_AddressPhoneNumber_2 | PhoneNumberCountry | Venue: Ctry/Reg | |
| CountryDialingCode | _CountryPrefix | TelephoneCountryPrefix | Tel. to | |
| CommNumberIsNotUsed | I_AddressPhoneNumber_2 | CommLineNotForUnsolicitedCntct | ||
| PhoneNumber | I_AddressPhoneNumber_2 | PhoneAreaCodeSubscriberNumber | Telephone | |
| PhoneNumberExtension | I_AddressPhoneNumber_2 | PhoneExtensionNumber | Extension | |
| PhoneIsSMSEnabled | I_AddressPhoneNumber_2 | PhoneIsSMSEnabled | SMS-Enab. | |
| PhoneNumberType | I_AddressPhoneNumber_2 | PhoneNumberType | Phone number type | |
| AddressCommunicationRemarkText | ||||
| _BusinessPartner1 | _BusinessPartnerCompany | |||
| _BusinessPartner2 | _BusinessPartnerPerson | |||
| _BusinessPartner | _BusinessPartner | |||
| _BPContactAddress | _BPContactAddress | |||
| _CountryPrefix | _CountryPrefix |
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_BPContactTelNmbrTP.
-- 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: IBPCPTELNOTP
CREATE VIEW I_BPContactTelNmbrTP AS
SELECT
ContactPerson.BusinessPartnerCompany AS BusinessPartner1,
ContactPerson.BusinessPartnerPerson AS BusinessPartner2,
ContactPerson.RelationshipNumber AS RelationshipNumber,
ContactPerson.ValidityEndDate AS ValidityEndDate,
ContactPerson.AddressID AS AddressID,
TelephoneNumber.CommMediumSequenceNumber AS OrdinalNumber,
ContactPerson.BusinessPartnerCompany AS BusinessPartner1ForEdit,
ContactPerson.BusinessPartnerPerson AS BusinessPartner2ForEdit,
ContactPerson.ValidityEndDate AS ValidityEndDateForEdit,
ContactPerson.AddressID AS AddressIDForEdit,
TelephoneNumber.CommMediumSequenceNumber AS OrdinalNumberForEdit,
ContactPerson.RelationshipNumber AS RelationshipNumberForEdit,
TelephoneNumber.PhoneNumberCountry AS DestinationLocationCountry,
_CountryPrefix.TelephoneCountryPrefix AS CountryDialingCode,
TelephoneNumber.CommLineNotForUnsolicitedCntct AS CommNumberIsNotUsed,
TelephoneNumber.PhoneAreaCodeSubscriberNumber AS PhoneNumber,
TelephoneNumber.PhoneExtensionNumber AS PhoneNumberExtension,
TelephoneNumber.PhoneIsSMSEnabled AS PhoneIsSMSEnabled,
TelephoneNumber.PhoneNumberType AS PhoneNumberType,
TelephoneNumber._AddressCommunicationRemark.CommunicationRemarkText AS AddressCommunicationRemarkText
FROM I_BpContactToAddress AS ContactPerson
INNER JOIN I_AddressPhoneNumber_2 AS TelephoneNumber ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BusinessPartnerTP AS _BusinessPartner ON BusinessPartner1 = _BusinessPartner.BusinessPartner -- association [1..1]
LEFT OUTER JOIN I_BPContactAddressTP AS _BPContactAddress ON BusinessPartner1 = _BPContactAddress.BusinessPartner1 AND BusinessPartner2 = _BPContactAddress.BusinessPartner2 AND RelationshipNumber = _BPContactAddress.RelationshipNumber AND ValidityEndDate = _BPContactAddress.ValidityEndDate AND AddressID = _BPContactAddress.AddressID -- association [1..1]
LEFT OUTER JOIN I_BusPartTelCountryPrefix AS _CountryPrefix ON DestinationLocationCountry = _CountryPrefix.Country -- association [0..1]
;
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