I_CustomerAddress
Customer
I_CustomerAddress is a Composite CDS View that provides data about "Customer" in SAP S/4HANA. It reads from 1 data source (kna1) and exposes 14 fields with key field Customer. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| kna1 | kna1 | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CustomerToBusinessPartner | _CustomerToBusinessPartner | $projection.Customer = _CustomerToBusinessPartner.Customer |
| [1..1] | I_Address | _StandardAddress | $projection.CustomerAddressID = _StandardAddress.AddressID |
| [0..1] | I_BPProtectedAddress | _BPProtectedAddress | $projection.BusinessPartner = _BPProtectedAddress.BusinessPartner and $projection.BusinessPartnerAddressID = _BPProtectedAddress.AddressID |
| [0..1] | I_OrganizationAddress | _AddressDefaultRepresentation | $projection.AddressID = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode is initial |
| [0..1] | I_AddrCurDfltLandlinePhoneNmbr | _CurrentDfltLandlinePhoneNmbr | $projection.AddressID = _CurrentDfltLandlinePhoneNmbr.AddressID |
| [0..1] | I_AddrCurDefaultFaxNumber | _CurrentDfltFaxNumber | $projection.AddressID = _CurrentDfltFaxNumber.AddressID |
| [0..1] | I_AddrCurDefaultEmailAddress | _CurrentDfltEmailAddress | $projection.AddressID = _CurrentDfltEmailAddress.AddressID |
| [0..1] | I_AddressMainWebsiteURL | _MainWebsiteURL | $projection.AddressID = _MainWebsiteURL.AddressID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICUSTOMERADDR | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AccessControl.personalData.blockingIndicator | IsBusinessPurposeCompleted | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Customer | view | |
| ObjectModel.representativeKey | Customer | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | |||
| BusinessPartner | ||||
| BusinessPartnerAddressID | ||||
| IsBusinessPurposeCompleted | ||||
| AddressID | Sold-To Address | |||
| CustomerAddressID | kna1 | adrnr | Sold-To Address | |
| _StandardAddress | _StandardAddress | |||
| _CustomerToBusinessPartner | _CustomerToBusinessPartner | |||
| _BPProtectedAddress | _BPProtectedAddress | |||
| _AddressDefaultRepresentation | _AddressDefaultRepresentation | |||
| _CurrentDfltLandlinePhoneNmbr | _CurrentDfltLandlinePhoneNmbr | |||
| _CurrentDfltFaxNumber | _CurrentDfltFaxNumber | |||
| _CurrentDfltEmailAddress | _CurrentDfltEmailAddress | |||
| _MainWebsiteURL | _MainWebsiteURL |
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_CustomerAddress.
-- 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: ICUSTOMERADDR
CREATE VIEW I_CustomerAddress AS
SELECT
cast(kna1.kunnr as kunnr preserving type) AS Customer,
_CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
_CustomerToBusinessPartner._BusinessPartner._CurrentDefaultAddress.AddressID AS BusinessPartnerAddressID,
_CustomerToBusinessPartner._BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
cast(cast(adrnr as abap.char(10)) as contactcardaddress) AS AddressID,
kna1.adrnr AS CustomerAddressID
FROM kna1
LEFT OUTER JOIN I_CustomerToBusinessPartner AS _CustomerToBusinessPartner ON Customer = _CustomerToBusinessPartner.Customer -- association [1..1]
LEFT OUTER JOIN I_Address AS _StandardAddress ON CustomerAddressID = _StandardAddress.AddressID -- association [1..1]
LEFT OUTER JOIN I_BPProtectedAddress AS _BPProtectedAddress ON BusinessPartner = _BPProtectedAddress.BusinessPartner AND BusinessPartnerAddressID = _BPProtectedAddress.AddressID -- association [0..1]
LEFT OUTER JOIN I_OrganizationAddress AS _AddressDefaultRepresentation ON AddressID = _AddressDefaultRepresentation.AddressID AND _AddressDefaultRepresentation.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN I_AddrCurDfltLandlinePhoneNmbr AS _CurrentDfltLandlinePhoneNmbr ON AddressID = _CurrentDfltLandlinePhoneNmbr.AddressID -- association [0..1]
LEFT OUTER JOIN I_AddrCurDefaultFaxNumber AS _CurrentDfltFaxNumber ON AddressID = _CurrentDfltFaxNumber.AddressID -- association [0..1]
LEFT OUTER JOIN I_AddrCurDefaultEmailAddress AS _CurrentDfltEmailAddress ON AddressID = _CurrentDfltEmailAddress.AddressID -- association [0..1]
LEFT OUTER JOIN I_AddressMainWebsiteURL AS _MainWebsiteURL ON AddressID = _MainWebsiteURL.AddressID -- association [0..1]
;
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