I_CustAddrDepdntExtIdentifier

DDL: I_CUSTADDRDEPDNTEXTIDENTIFIER SQL: ICUSTADDREXTID Type: view BASIC Package: VDM_MD_BP

Customer External Identifier for Address

I_CustAddrDepdntExtIdentifier (Basic)

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

Database & Data Management

I_CustAddrDepdntExtIdentifier is a Basic CDS View that provides data about "Customer External Identifier for Address" in SAP S/4HANA. It reads from 1 data source (knaddr_ext) and exposes 6 fields with key fields Customer, AddressID. It has 3 associations to related views. Part of development package VDM_MD_BP.

SAP Help Documentation

CategoryCDS Views for Business Partner
StatusReleased
Purpose
This CDS view returns the customer external identifier for address. 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 must have a role with the following restriction types set to read access: BEGRU_KNA1 Authorization Group for Customers KTOKD Customer Account Group B_BUP_DCPD Business Partner Processing These restriction types are edited in the Maintain Business Roles app.

Structure
Important Fields Important fields in this view include the following: Field Name Data Element Label Customer KUNNR Customer AddressID BU_ADDRNUM Address Number CustomerExternalRefID KUNNR_EXT_REF_ID Seller-Defined Customer Address ID for EDI

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageDatabase and Data Management for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view returns the customer external identifier for address.</p> <p>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.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
knaddr_ext knaddr_ext from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_Address_2 _AddressDefaultRepresentation $projection.AddressID = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode = ' '
[1..1] I_BusinessPartnerCustomer _BusinessPartnerCustomer $projection.Customer = _BusinessPartnerCustomer.Customer

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ICUSTADDREXTID view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey AddressID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
EndUserText.label Customer External Identifier for Address view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Customer knaddr_ext kunnr Customer Number
KEY AddressID knaddr_ext adrnr Business Partner Address Number (from BUT020)
CustomerExternalRefID knaddr_ext ext_ref_id Seller-Defined Customer Address ID for EDI
_BusinessPartnerCustomer _BusinessPartnerCustomer
_Customer _Customer
_AddressDefaultRepresentation _AddressDefaultRepresentation

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_CustAddrDepdntExtIdentifier.
-- 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: ICUSTADDREXTID

CREATE VIEW I_CustAddrDepdntExtIdentifier AS
SELECT
  knaddr_ext.kunnr AS Customer,
  knaddr_ext.adrnr AS AddressID,
  knaddr_ext.ext_ref_id AS CustomerExternalRefID
FROM knaddr_ext
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_Address_2 AS _AddressDefaultRepresentation ON AddressID = _AddressDefaultRepresentation.AddressID AND _AddressDefaultRepresentation.AddressRepresentationCode = ' '  -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerCustomer AS _BusinessPartnerCustomer ON Customer = _BusinessPartnerCustomer.Customer  -- association [1..1]
;