P_RU_BusinessPartnerEmailAll

DDL: P_RU_BUSINESSPARTNEREMAILALL SQL: PRUBPEMAILALL Type: view COMPOSITE

P_RU_BusinessPartnerEmailAll is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_BPCurrentDefaultAddress, I_BPCurrentDefaultAddress, I_BusinessPartner) and exposes 6 fields with key fields Partner, PartnerEmail, PartnerEmail.

Data Sources (3)

SourceAliasJoin Type
I_BPCurrentDefaultAddress BPAddr from
I_BPCurrentDefaultAddress BPAddr union
I_BusinessPartner BusinessPartner inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PRUBPEMAILALL view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Partner CustEmail Partner With Partner
KEY PartnerEmail CustEmail BusinessPartnerEmailAddress
IsBusinessPurposeCompleted I_BusinessPartner IsBusinessPurposeCompleted Purpose Completed
KEY PartnerEmail
IsBusinessPurposeCompleted _BusinessPartner IsBusinessPurposeCompleted Purpose Completed
EmailAddressIsCurrentDefault

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 P_RU_BusinessPartnerEmailAll.
-- 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: PRUBPEMAILALL

CREATE VIEW P_RU_BusinessPartnerEmailAll AS
SELECT
  CustEmail.Partner AS Partner,
  CustEmail.BusinessPartnerEmailAddress AS PartnerEmail,
  BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  'X' AS EmailAddressIsCurrentDefault
FROM I_BPCurrentDefaultAddress AS BPAddr
INNER JOIN I_BusinessPartner AS BusinessPartner ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_BPCurrentDefaultAddress
;