I_AddressEmailAddress_2
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
| Category | CDS Views for Business Address Service |
|---|---|
| Data Category | Dimension |
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.
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.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | BC-SRV-ADR |
| Capabilities | Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Data Extraction, Data Source in SQL Select |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| adr6 | adr6 | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
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