I_BPRelationship
Business Partner Relationship
I_BPRelationship (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Database & Data Management
I_BPRelationship is a Basic CDS View that provides data about "Business Partner Relationship" in SAP S/4HANA. It reads from 1 data source (but050) and exposes 19 fields with key fields RelationshipNumber, BusinessPartnerCompany, BusinessPartnerPerson, ValidityEndDate. It has 2 associations to related views.
SAP Help Documentation
| Category | CDS Views for Business Partner |
|---|---|
| Data Category | Dimension |
| Status | Released |
This CDS view retrieves business partner and its relationship data such as relationship type and validity of the relationship.
Structure
Object types This view relates to the SAP object type Business Partner. Measures and attributes Some important measures and attributes are: Relationship Number Business Partner Company Business Partner Person Validity End Date Validity Start Date
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Database & Data Management |
| Application Component | AP-MD-BP |
| Package | Database & Data Management for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view retrieves business partner and its relationship data such as relationship type and validity of the relationship.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| but050 | but050 | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessPartner | _BusinessPartnerCompany | _BusinessPartnerCompany.BusinessPartner = $projection.BusinessPartnerCompany |
| [1..1] | I_BusinessPartner | _BusinessPartnerPerson | _BusinessPartnerPerson.BusinessPartner = $projection.BusinessPartnerPerson |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBUPAREL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Business Partner Relationship | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_BPRelationship_2 | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RelationshipNumber | relnr | BP Relationship Number | |
| KEY | BusinessPartnerCompany | partner1 | Business Partner Number | |
| KEY | BusinessPartnerPerson | partner2 | Business Partner Number | |
| KEY | ValidityEndDate | date_to | Validity Date (Valid To) | |
| BusinessPartner1 | partner1 | Business Partner Number | ||
| BusinessPartner2 | partner2 | Business Partner Number | ||
| ValidityStartDate | date_from | Validity Date (Valid From) | ||
| IsStandardRelationship | xdfrel | Standard Relationship | ||
| RelationshipCategory | reltyp | Business Partner Relationship Category | ||
| BPRelationshipType | relkind | Business partner relationship type | ||
| BusPartRelshpIsRoleDefinition | xrf | Business partner role definition instead of BP relationship | ||
| CreatedByUser | crusr | User who created the object | ||
| CreationDate | crdat | Date on which the object was created | ||
| CreationTime | crtim | Time at which the object was created | ||
| LastChangedByUser | chusr | Last user to change object | ||
| LastChangeDate | chdat | Date when object was last changed | ||
| LastChangeTime | chtim | Time at which object was last changed | ||
| _BusinessPartnerCompany | _BusinessPartnerCompany | |||
| _BusinessPartnerPerson | _BusinessPartnerPerson |
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_BPRelationship.
-- 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: IBUPAREL
CREATE VIEW I_BPRelationship AS
SELECT
relnr AS RelationshipNumber,
partner1 AS BusinessPartnerCompany,
partner2 AS BusinessPartnerPerson,
date_to AS ValidityEndDate,
partner1 AS BusinessPartner1,
partner2 AS BusinessPartner2,
date_from AS ValidityStartDate,
xdfrel AS IsStandardRelationship,
reltyp AS RelationshipCategory,
relkind AS BPRelationshipType,
xrf AS BusPartRelshpIsRoleDefinition,
crusr AS CreatedByUser,
crdat AS CreationDate,
crtim AS CreationTime,
chusr AS LastChangedByUser,
chdat AS LastChangeDate,
chtim AS LastChangeTime
FROM but050
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartnerCompany ON _BusinessPartnerCompany.BusinessPartner = BusinessPartnerCompany -- association [1..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartnerPerson ON _BusinessPartnerPerson.BusinessPartner = BusinessPartnerPerson -- association [1..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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