I_BPCurrentDefaultAddress
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
| Category | CDS Views for Business Partner |
|---|
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.
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Database & Data Management |
| Application Component | AP-MD-BP |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Database and Data Management for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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