I_BPContactTelNmbrTP

DDL: I_BPCONTACTTELNMBRTP SQL: IBPCPTELNOTP Type: view TRANSACTIONAL

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)

SourceAliasJoin Type
I_BpContactToAddress ContactPerson from
I_AddressPhoneNumber_2 TelephoneNumber inner

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;