A_BPContactPersonWbsteURL

DDL: A_BPCONTACTPERSONWBSTEURL Type: view_entity BASIC Package: ODATA_MASTER_DATA_BP

Contact Person Website URL

A_BPContactPersonWbsteURL is a Basic CDS View that provides data about "Contact Person Website URL" in SAP S/4HANA. It reads from 2 data sources (I_BpContactToAddress, I_AddressHomepageURL) and exposes 14 fields with key fields RelationshipNumber, BusinessPartnerCompany, BusinessPartnerPerson, ValidityEndDate, AddressID. It has 3 associations to related views. Part of development package ODATA_MASTER_DATA_BP.

Data Sources (2)

SourceAliasJoin Type
I_BpContactToAddress ContactPerson from
I_AddressHomepageURL URLAddress inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] A_BusinessPartner _BusinessPartnerCompany $projection.BusinessPartnerCompany = _BusinessPartnerCompany.BusinessPartner
[1..1] A_BusinessPartner _BusinessPartnerPerson $projection.BusinessPartnerPerson = _BusinessPartnerPerson.BusinessPartner
[1..1] A_BPContactToAddress _BPContactAddress $projection.RelationshipNumber = _BPContactAddress.RelationshipNumber and $projection.BusinessPartnerCompany = _BPContactAddress.BusinessPartnerCompany and $projection.BusinessPartnerPerson = _BPContactAddress.BusinessPartnerPerson and $projection.ValidityEndDate = _BPContactAddress.ValidityEndDate and $projection.AddressID = _BPContactAddress.AddressID

Annotations (13)

NameValueLevelField
EndUserText.label Contact Person Website URL view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #BASIC view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
Feature API_BP_CNTCT_PERSN_ADDR view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY RelationshipNumber I_BpContactToAddress RelationshipNumber BP Rel. Number
KEY BusinessPartnerCompany I_BpContactToAddress BusinessPartnerCompany Busn. Partner
KEY BusinessPartnerPerson I_BpContactToAddress BusinessPartnerPerson Busn. Partner
KEY ValidityEndDate I_BpContactToAddress ValidityEndDate ValidTo
KEY AddressID I_BpContactToAddress AddressID Ship-to address
KEY OrdinalNumber I_AddressHomepageURL OrdinalNumber Sequence Number
IsDefaultURLAddress I_AddressHomepageURL IsDefaultURLAddress Standard addr.
SearchURLAddress I_AddressHomepageURL SearchURLAddress URI address
CommNumberIsNotUsed I_AddressHomepageURL CommNumberIsNotUsed Do not use
URLFieldLength I_AddressHomepageURL URLFieldLength URI length
WebsiteURL I_AddressHomepageURL WebsiteURL URI
_BusinessPartnerCompany _BusinessPartnerCompany
_BusinessPartnerPerson _BusinessPartnerPerson
_BPContactAddress _BPContactAddress

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 A_BPContactPersonWbsteURL.
-- 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 A_BPContactPersonWbsteURL AS
SELECT
  ContactPerson.RelationshipNumber AS RelationshipNumber,
  ContactPerson.BusinessPartnerCompany AS BusinessPartnerCompany,
  ContactPerson.BusinessPartnerPerson AS BusinessPartnerPerson,
  ContactPerson.ValidityEndDate AS ValidityEndDate,
  ContactPerson.AddressID AS AddressID,
  URLAddress.OrdinalNumber AS OrdinalNumber,
  URLAddress.IsDefaultURLAddress AS IsDefaultURLAddress,
  URLAddress.SearchURLAddress AS SearchURLAddress,
  URLAddress.CommNumberIsNotUsed AS CommNumberIsNotUsed,
  URLAddress.URLFieldLength AS URLFieldLength,
  URLAddress.WebsiteURL AS WebsiteURL
FROM I_BpContactToAddress AS ContactPerson
INNER JOIN I_AddressHomepageURL AS URLAddress ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN A_BusinessPartner AS _BusinessPartnerCompany ON BusinessPartnerCompany = _BusinessPartnerCompany.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN A_BusinessPartner AS _BusinessPartnerPerson ON BusinessPartnerPerson = _BusinessPartnerPerson.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN A_BPContactToAddress AS _BPContactAddress ON RelationshipNumber = _BPContactAddress.RelationshipNumber AND BusinessPartnerCompany = _BPContactAddress.BusinessPartnerCompany AND BusinessPartnerPerson = _BPContactAddress.BusinessPartnerPerson AND ValidityEndDate = _BPContactAddress.ValidityEndDate AND AddressID = _BPContactAddress.AddressID  -- association [1..1]
;