I_BPCurrentDefaultAddress

DDL: I_BPCURRENTDEFAULTADDRESS SQL: IBPCURRDEFADDR Type: view BASIC Package: VDM_MD_BP_BASE

Business Partner Current Default Address

I_BPCurrentDefaultAddress (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_BPCurrentDefaultAddress is a Basic CDS View that provides data about "Business Partner Current Default Address" in SAP S/4HANA. It reads from 2 data sources (but020, but021_fs) and exposes 11 fields with key field BusinessPartner. It has 6 associations to related views. Part of development package VDM_MD_BP_BASE.

SAP Help Documentation

CategoryCDS Views for Business Partner
Purpose
This CDS view provides access to the current default address information for business partners. It retrieves time-dependent address records that are currently valid, including address identification, and validity periods for business partner addresses. This CDS view provides the data to answer the following business questions: What is the current default address for a specific business partner? Which business partner addresses are currently valid within a given time period? Which business partner addresses have restricted access due to sensitivity or authorization groups? What is the validity period (start and end date/time) for a business partner's current default address? Which addresses are protected or require special authorization requirements? For example, employee private address can be a protected address. How can I identify the address number associated with a business partner's current default 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: RESTRICTION_TYPE_ID RESTRICTION_TYPE B_BUP_DCPD Business Partner Processing BEGRU_BUPA_GRP Authorization Group for Business Partners SENSTVT Sensitivity

Structure
Important Fields Important fields in this view include the following: Field Name Description BUSINESSPARTNER Business Partner ADDRESSID Address Number BPADDRESSISPROTECTED Identifies whether the address is protected. VALIDITYSTARTDATETIME Time on a specific date from when the email address is valid in the system. VALIDITYENDDATETIME Time on a specific date until when the email address is valid in the system.

Data Extraction
Data Extraction Type This CDS view is not enabled for data extraction.

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessDatabase & Data Management
Application ComponentAP-MD-BP
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

Documentation

Data Sources (2)

SourceAliasJoin Type
but020 but020 from
but021_fs but021_fs inner

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_Address _Address $projection.AddressID = _Address.AddressID
[0..1] I_Address _StandardAddress $projection.AddressID = _StandardAddress.AddressID
[1..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_BPProtectedAddress _BPProtectedAddress $projection.BusinessPartner = _BPProtectedAddress.BusinessPartner and $projection.AddressID = _BPProtectedAddress.AddressID
[0..1] I_Address_2 _AddressDefaultRepresentation $projection.AddressID = _AddressDefaultRepresentation.AddressID and _AddressDefaultRepresentation.AddressRepresentationCode = ''
[0..1] I_AddrOrgNamePostalAddress _AddrOrgNamePostalAddress $projection.AddressID = _AddrOrgNamePostalAddress.AddressID and _AddrOrgNamePostalAddress.AddressRepresentationCode = ''

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IBPCURRDEFADDR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
EndUserText.label Business Partner Current Default Address view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.preserveKey true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner but020 partner Business Partner Number
AddressID but020 addrnumber Address Number
ValidityStartDateTime but020 addr_valid_from Validity Start of a Business Partner Address
ValidityEndDateTime but020 addr_valid_to Validity End of a Business Partner Address
BPAddressIsProtected _BPProtectedAddress BPAddressIsProtected BP: Sensitivity Indicator
_Address _Address
_StandardAddress _StandardAddress
AuthorizationGroup _BusinessPartner AuthorizationGroup Authorization Group
_BusinessPartner _BusinessPartner
_AddressDefaultRepresentation _AddressDefaultRepresentation
_AddrOrgNamePostalAddress _AddrOrgNamePostalAddress

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_BPCurrentDefaultAddress.
-- 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: IBPCURRDEFADDR

CREATE VIEW I_BPCurrentDefaultAddress AS
SELECT
  but020.partner AS BusinessPartner,
  but020.addrnumber AS AddressID,
  but020.addr_valid_from AS ValidityStartDateTime,
  but020.addr_valid_to AS ValidityEndDateTime,
  _BPProtectedAddress.BPAddressIsProtected AS BPAddressIsProtected,
  _BusinessPartner.AuthorizationGroup AS AuthorizationGroup
FROM but020
INNER JOIN but021_fs ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Address AS _Address ON AddressID = _Address.AddressID  -- association [1..1]
LEFT OUTER JOIN I_Address AS _StandardAddress ON AddressID = _StandardAddress.AddressID  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [1..1]
LEFT OUTER JOIN I_BPProtectedAddress AS _BPProtectedAddress ON BusinessPartner = _BPProtectedAddress.BusinessPartner AND AddressID = _BPProtectedAddress.AddressID  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _AddressDefaultRepresentation ON AddressID = _AddressDefaultRepresentation.AddressID AND _AddressDefaultRepresentation.AddressRepresentationCode = ''  -- association [0..1]
LEFT OUTER JOIN I_AddrOrgNamePostalAddress AS _AddrOrgNamePostalAddress ON AddressID = _AddrOrgNamePostalAddress.AddressID AND _AddrOrgNamePostalAddress.AddressRepresentationCode = ''  -- association [0..1]
;