I_CustomerAddress

DDL: I_CUSTOMERADDRESS SQL: ICUSTOMERADDR Type: view COMPOSITE

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)

SourceAliasJoin Type
kna1 kna1 from

Associations (8)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;