I_AddressEmailAddress_2

DDL: I_ADDRESSEMAILADDRESS_2 Type: view_entity BASIC

Email Address

I_AddressEmailAddress_2 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Cross Applications

I_AddressEmailAddress_2 is a Basic CDS View (Dimension) that provides data about "Email Address" in SAP S/4HANA. It reads from 1 data source (adr6) and exposes 12 fields with key fields AddressID, AddressPersonID, CommMediumSequenceNumber. It has 4 associations to related views.

SAP Help Documentation

CategoryCDS Views for Business Address Service
Data CategoryDimension
Purpose
This CDS view returns the email address information that is linked to an address. This CDS view provides the data to answer the following business questions: What is the email address of an addressee? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view need to access it via another CDS view (privileged mode).

Structure
Important Fields Important fields in this view include the following: Field Name Description AddressID Address Number AddressPersonID Person Number CommMediumSequenceNumber Sequence Number EmailAddress Email Address EmailAddressIsCurrentDefault Indicator: Email Address is Current Default CommLineNotForUnsolicitedCntct Communication line is not to be used for unsolicited contact

Data Extraction
Data Extraction Type This CDS view is enabled for data extraction in full mode.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentBC-SRV-ADR
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Data Extraction, Data Source in SQL Select
PackageCross Applications for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
adr6 adr6 from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_AddrOrgNamePostalAddress _OrgNamePostalAddress _OrgNamePostalAddress.AddressID = $projection.AddressID and _OrgNamePostalAddress.AddressRepresentationCode = ''
[0..1] I_AddressPersonName _AddressPersonName $projection.AddressPersonID = _AddressPersonName.AddressPersonID and _AddressPersonName.AddressRepresentationCode = ''
[0..*] I_AddressCommunicationRemark_2 _AddressCommunicationRemark $projection.AddressID = _AddressCommunicationRemark.AddressID and $projection.AddressPersonID = _AddressCommunicationRemark.AddressPersonID and $projection.CommMediumSequenceNumber = _AddressCommunicationRemark.CommMediumSequenceNumber and _AddressCommunicationRemark.CommunicationMediumType = 'INT'
[0..*] I_AddressCommunicationUsage _AddressCommunicationUsage $projection.AddressID = _AddressCommunicationUsage.AddressID and $projection.AddressPersonID = _AddressCommunicationUsage.AddressPersonID and $projection.CommMediumSequenceNumber = _AddressCommunicationUsage.CommMediumSequenceNumber and _AddressCommunicationUsage.CommunicationMediumType = 'INT'

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
EndUserText.label Email Address view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey CommMediumSequenceNumber view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY AddressID addrnumber Address Number
KEY AddressPersonID persnumber Person Number
KEY CommMediumSequenceNumber consnumber Sequence Number
EmailAddress smtp_addr E-Mail Address
EmailAddressIsCurrentDefault Indicator : Current Default Email Address
CommLineNotForUnsolicitedCntct Communication line is not to be used for unsolicited contact
datsendasValidityStartDate
datsendasValidityEndDate
_AddressCommunicationRemark _AddressCommunicationRemark
_AddressCommunicationUsage _AddressCommunicationUsage
_OrgNamePostalAddress _OrgNamePostalAddress
_AddressPersonName _AddressPersonName

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_AddressEmailAddress_2.
-- 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_AddressEmailAddress_2 AS
SELECT
  addrnumber AS AddressID,
  persnumber AS AddressPersonID,
  consnumber AS CommMediumSequenceNumber,
  smtp_addr AS EmailAddress,
  cast (flgdefault as ad_emailcurdflt preserving type) AS EmailAddressIsCurrentDefault,
  cast (flg_nouse as ad_commlinenotforunslctdcntct preserving type) AS CommLineNotForUnsolicitedCntct,
  case valid_from when '' then '00010101' else cast( substring( valid_from,1,8) as abap.dats) end as ValidityStartDate AS datsendasValidityStartDate,
  case valid_to when '' then '99991231' else cast( substring( valid_to,1,8) as abap.dats) end as ValidityEndDate AS datsendasValidityEndDate
FROM adr6
LEFT OUTER JOIN I_AddrOrgNamePostalAddress AS _OrgNamePostalAddress ON _OrgNamePostalAddress.AddressID = AddressID AND _OrgNamePostalAddress.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_AddressPersonName AS _AddressPersonName ON AddressPersonID = _AddressPersonName.AddressPersonID AND _AddressPersonName.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_AddressCommunicationRemark_2 AS _AddressCommunicationRemark ON AddressID = _AddressCommunicationRemark.AddressID AND AddressPersonID = _AddressCommunicationRemark.AddressPersonID AND CommMediumSequenceNumber = _AddressCommunicationRemark.CommMediumSequenceNumber AND _AddressCommunicationRemark.CommunicationMediumType = 'INT'  -- association [0..*]
LEFT OUTER JOIN I_AddressCommunicationUsage AS _AddressCommunicationUsage ON AddressID = _AddressCommunicationUsage.AddressID AND AddressPersonID = _AddressCommunicationUsage.AddressPersonID AND CommMediumSequenceNumber = _AddressCommunicationUsage.CommMediumSequenceNumber AND _AddressCommunicationUsage.CommunicationMediumType = 'INT'  -- association [0..*]
;