I_BusinessPartnerRating
Rating of Business Partner
I_BusinessPartnerRating (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
BusinessPartnerRating · Cross Applications
I_BusinessPartnerRating is a Basic CDS View (Dimension) that provides data about "Rating of Business Partner" in SAP S/4HANA. It reads from 1 data source (bp1012) and exposes 16 fields with key fields BusinessPartner, BusinessPartnerRatingProcedure, BPRatingValidityEndDate. It has 5 associations to related views. It is exposed through 1 OData service (BPFINANCIALSERVICES). Part of development package FS_BP_CDS_BP1012.
SAP Help Documentation
| Category | Master Data |
|---|---|
| Data Category | Dimension |
| Status | Released |
Ratings of a business partner are used for various businesses received from external agencies or company-specific internal procedures. For example a rating can provide information about a business partner's creditworthiness. This CDS view provides the prerequisites for answering the following business questions: What is the current financial scoring of an account holder? What was the creditworthiness of the business partner during credit approval process? Providing information about the financial solvency of a business partner.
Prerequisites
Users who want to run reports using this CDS view must have a role based on the business role template listed in the table above. In this role, the following restriction types must be set to read access: Bank Country Key Authorization Groups for Business Partners Business Partner Relationships: Relationship Categories BP Role Sensitivity These restriction types are edited in the Maintain Business Roles app. Note Rating procedures and the corresponding rating grades have to be customized.
Structure
Object types Rating data is stored within the business object Business Partner . Measures and attributes The rating of a Business Partner is represented by the Rating Procedure and the current grade which has been determined. A stored rating has a business validity defined by the dates in the fields BPRatingValidityStartDate and BPRatingValidityEndDate . Some important measures and attributes are: Business partner Busines partner rating procedure Validity end date Rating grade Rating trend Validity start date Rating creation date
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | FS-BP |
| Capabilities | Data Source for Data Extraction,Analytical Dimension,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Data Source in SQL Select |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
| Description | <p>Ratings of a business partner are used for various businesses received from external agencies or company-specific internal procedures. For example a rating can provide information about a business partner's creditworthiness.</p> <p>This CDS view provides the prerequisites for answering the following business questions:</p> <ul> <li><p>What is the current financial scoring of an account holder? </p></li> <li><p>What was the creditworthiness of the business partner during credit approval process? </p></li> <li><p>Providing information about the financial solvency of a business partner. </p></li> </ul> |
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
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| bp1012 | bp1012 | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [0..1] | I_BPFinancialServicesExtn | _BPFinancialServicesExtn | $projection.BusinessPartner = _BPFinancialServicesExtn.BusinessPartner |
| [0..1] | I_BPRatingTrend | _BPRatingTrend | $projection.BusinessPartnerRatingTrend = _BPRatingTrend.BusinessPartnerRatingTrend |
| [0..1] | I_BPRatingProcedure | _BPRatingProcedure | $projection.BusinessPartnerRatingProcedure = _BPRatingProcedure.BusinessPartnerRatingProcedure |
| [0..1] | I_BPRatingProcedureGrade | _BPRatingProcedureGrade | $projection.BusinessPartnerRatingProcedure = _BPRatingProcedureGrade.BusinessPartnerRatingProcedure and $projection.BusinessPartnerRatingGrade = _BPRatingProcedureGrade.BusinessPartnerRatingGrade |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBPRATING | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.representativeKey | BusinessPartner | view | |
| ObjectModel.sapObjectNodeType.name | BusinessPartnerRating | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Rating of Business Partner | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| BPFINANCIALSERVICES | UI_BPFINANCIALSERVICES_02 | V2 | C1 | NOT_RELEASED |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | bp1012 | partner | Business Partner Number |
| KEY | BusinessPartnerRatingProcedure | bp1012 | grade_method | Valuation Procedure |
| KEY | BPRatingValidityEndDate | bp1012 | date_to | Valid-to Date for Rating |
| BusinessPartnerRatingGrade | bp1012 | grade | Standard Value | |
| BusinessPartnerRatingTrend | bp1012 | tendency | Trend | |
| BPRatingValidityStartDate | bp1012 | date_from | Valid-from Date for Rating | |
| BPRatingCreationDate | bp1012 | date_when | Entered-on Date for Rating | |
| BusinessPartnerRatingComment | bp1012 | text | Text for Ratings | |
| BusinessPartnerRatingIsAllowed | bp1012 | flg_permit | Rating Allowed | |
| BPRatingLongComment | bp1012 | longtext | Long Text for Rating | |
| BusinessPartnerRatingKeyDate | Key Date of Accessing Business Partner Rating Data | |||
| _BPRatingProcedure | _BPRatingProcedure | |||
| _BPRatingProcedureGrade | _BPRatingProcedureGrade | |||
| _BPRatingTrend | _BPRatingTrend | |||
| _BusinessPartner | _BusinessPartner | |||
| _BPFinancialServicesExtn | _BPFinancialServicesExtn |
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_BusinessPartnerRating.
-- 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.
CREATE VIEW I_BusinessPartnerRating AS
SELECT
bp1012.partner AS BusinessPartner,
bp1012.grade_method AS BusinessPartnerRatingProcedure,
bp1012.date_to AS BPRatingValidityEndDate,
bp1012.grade AS BusinessPartnerRatingGrade,
bp1012.tendency AS BusinessPartnerRatingTrend,
bp1012.date_from AS BPRatingValidityStartDate,
bp1012.date_when AS BPRatingCreationDate,
bp1012.text AS BusinessPartnerRatingComment,
bp1012.flg_permit AS BusinessPartnerRatingIsAllowed,
bp1012.longtext AS BPRatingLongComment,
cast ( tstmp_to_dats( tstmp_current_utctimestamp(), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL') as bp_rat_key_date preserving type) AS BusinessPartnerRatingKeyDate
FROM bp1012
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [1]
LEFT OUTER JOIN I_BPFinancialServicesExtn AS _BPFinancialServicesExtn ON BusinessPartner = _BPFinancialServicesExtn.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_BPRatingTrend AS _BPRatingTrend ON BusinessPartnerRatingTrend = _BPRatingTrend.BusinessPartnerRatingTrend -- association [0..1]
LEFT OUTER JOIN I_BPRatingProcedure AS _BPRatingProcedure ON BusinessPartnerRatingProcedure = _BPRatingProcedure.BusinessPartnerRatingProcedure -- association [0..1]
LEFT OUTER JOIN I_BPRatingProcedureGrade AS _BPRatingProcedureGrade ON BusinessPartnerRatingProcedure = _BPRatingProcedureGrade.BusinessPartnerRatingProcedure AND BusinessPartnerRatingGrade = _BPRatingProcedureGrade.BusinessPartnerRatingGrade -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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