I_BusinessPartnerToBPRole_2

DDL: I_BUSINESSPARTNERTOBPROLE_2 SQL: IBPTOBPROLE2 Type: view BASIC

Business Partner assignment to BP Role

I_BusinessPartnerToBPRole_2 (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_BusinessPartnerToBPRole_2 is a Basic CDS View (Dimension) that provides data about "Business Partner assignment to BP Role" in SAP S/4HANA. It reads from 1 data source (but100) and exposes 10 fields with key fields BusinessPartner, BusinessPartnerRole, BusinessPartnerDiffTypeValue. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Business Partner
Data CategoryDimension
StatusReleased
Purpose
This CDS view business partner roles assigned to a business partner. 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 the following authorization objects assigned: B_BUPA_GRP : Business Partner: Authorization Groups B_BUPA_RLT : Business Partner: BP Roles B_BUP_DCPD : Business Partner Processing B_BUP_PCPT : Business Partner: Purpose Completed

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentAP-MD-BP
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Analytical Dimension, Data Source for Data Extraction
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view business partner roles assigned to a business partner.</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
but100 but100 from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_BusinessPartnerRole _BusinessPartnerRole $projection.BusinessPartnerRole = _BusinessPartnerRole.BusinessPartnerRole
[0..1] I_BusinessPartner _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner
[0..1] I_BPDifferentiationTypeValue _BusinessPartnerDiffValue $projection.BusinessPartnerDiffTypeValue = _BusinessPartnerDiffValue.BusinessPartnerDiffTypeValue

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName IBPTOBPROLE2 view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AccessControl.personalData.blockingIndicator _BusinessPartner.IsBusinessPurposeCompleted view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Business Partner assignment to BP Role view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.representativeKey BusinessPartnerRole view
VDM.viewType #BASIC view

Fields (10)

KeyFieldSource TableSource FieldDescription
mandt but100 mandt Editing Client
KEY BusinessPartner but100 partner Business Partner Number
KEY BusinessPartnerRole but100 rltyp Return type
KEY BusinessPartnerDiffTypeValue but100 dfval BP: Differentiation type value
ValidFrom but100 valid_from Validity Start of a BP Role
ValidTo but100 valid_to Validity End of a BP Role
_BusinessPartnerRole _BusinessPartnerRole
AuthorizationGroup _BusinessPartner AuthorizationGroup Authorization Group
_BusinessPartner _BusinessPartner
_BusinessPartnerDiffValue _BusinessPartnerDiffValue

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_BusinessPartnerToBPRole_2.
-- 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: IBPTOBPROLE2

CREATE VIEW I_BusinessPartnerToBPRole_2 AS
SELECT
  but100.mandt AS mandt,
  but100.partner AS BusinessPartner,
  but100.rltyp AS BusinessPartnerRole,
  but100.dfval AS BusinessPartnerDiffTypeValue,
  but100.valid_from AS ValidFrom,
  but100.valid_to AS ValidTo,
  _BusinessPartner.AuthorizationGroup AS AuthorizationGroup
FROM but100
LEFT OUTER JOIN I_BusinessPartnerRole AS _BusinessPartnerRole ON BusinessPartnerRole = _BusinessPartnerRole.BusinessPartnerRole  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BPDifferentiationTypeValue AS _BusinessPartnerDiffValue ON BusinessPartnerDiffTypeValue = _BusinessPartnerDiffValue.BusinessPartnerDiffTypeValue  -- association [0..1]
;