I_BusinessPartnerRating

DDL: I_BUSINESSPARTNERRATING Type: view BASIC Package: FS_BP_CDS_BP1012

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

CategoryMaster Data
Data CategoryDimension
StatusReleased
Purpose
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

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessCross Applications
Application ComponentFS-BP
CapabilitiesData 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
PackageCross 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

Data Sources (1)

SourceAliasJoin Type
bp1012 bp1012 from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
BPFINANCIALSERVICES UI_BPFINANCIALSERVICES_02 V2 C1 NOT_RELEASED

Fields (16)

KeyFieldSource TableSource FieldDescription
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]
;