R_CashBankRelatedBranchTP
Bank Related Branch TP
R_CashBankRelatedBranchTP is a Transactional CDS View that provides data about "Bank Related Branch TP" in SAP S/4HANA. It reads from 2 data sources (I_RiskBusinessPartner, I_RiskBusinessPartner) and exposes 14 fields with key fields BankCountry, BankInternalID, RiskPartnerNo, RelatedBankCountry, RelatedBank. It has 5 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RiskBusinessPartner | _relatedBranch | left_outer |
| I_RiskBusinessPartner | bankWithBP | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_NumberOfCashBankUsage | _BankUsage | $projection.RelatedBankCountry = _BankUsage.BankCountry and $projection.RelatedBank = _BankUsage.BankInternalID |
| [0..1] | I_Bank_2 | _BankDetails | $projection.BankCountry = _BankDetails.BankCountry and $projection.BankInternalID = _BankDetails.BankInternalID |
| [0..1] | R_BankTP | _RelatedBank | $projection.RelatedBankCountry = _RelatedBank.BankCountry and $projection.RelatedBank = _RelatedBank.BankInternalID |
| [0..1] | I_CountryText | _Country | $projection.BankCountry = _Country.Country and _Country.Language = $session.system_language |
| [0..1] | I_CountryText | _CountryName | $projection.RelatedBankCountry = _CountryName.Country and _CountryName.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Bank Related Branch TP | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BankCountry | I_RiskBusinessPartner | BankCountry | Bank Ctry/Rgn. Key |
| KEY | BankInternalID | I_RiskBusinessPartner | BankInternalID | Bank Key |
| KEY | RiskPartnerNo | I_RiskBusinessPartner | BusinessPartnerNumber | With Partner |
| KEY | RelatedBankCountry | I_RiskBusinessPartner | BankCountry | Bank Ctry/Rgn. Key |
| KEY | RelatedBank | I_RiskBusinessPartner | BankInternalID | Bank Key |
| RiskPartnerValidToDate | I_RiskBusinessPartner | ValidTo | Vers.Valid To | |
| RiskPartnerValidFromDate | I_RiskBusinessPartner | ValidFrom | Vers.Valid From | |
| _BusinessPartner | I_RiskBusinessPartner | _BusinessPartner | ||
| _Bank | _Bank | |||
| _BankDetails | _BankDetails | |||
| _RelatedBank | _RelatedBank | |||
| _Country | _Country | |||
| _CountryName | _CountryName | |||
| _BankUsage | _BankUsage |
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 R_CashBankRelatedBranchTP.
-- 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 R_CashBankRelatedBranchTP AS
SELECT
bankWithBP.BankCountry AS BankCountry,
bankWithBP.BankInternalID AS BankInternalID,
bankWithBP.BusinessPartnerNumber AS RiskPartnerNo,
_relatedBranch.BankCountry AS RelatedBankCountry,
_relatedBranch.BankInternalID AS RelatedBank,
_relatedBranch.ValidTo AS RiskPartnerValidToDate,
_relatedBranch.ValidFrom AS RiskPartnerValidFromDate,
bankWithBP._BusinessPartner AS _BusinessPartner
FROM I_RiskBusinessPartner AS bankWithBP
LEFT OUTER JOIN I_RiskBusinessPartner AS _relatedBranch ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_NumberOfCashBankUsage AS _BankUsage ON RelatedBankCountry = _BankUsage.BankCountry AND RelatedBank = _BankUsage.BankInternalID -- association [0..1]
LEFT OUTER JOIN I_Bank_2 AS _BankDetails ON BankCountry = _BankDetails.BankCountry AND BankInternalID = _BankDetails.BankInternalID -- association [0..1]
LEFT OUTER JOIN R_BankTP AS _RelatedBank ON RelatedBankCountry = _RelatedBank.BankCountry AND RelatedBank = _RelatedBank.BankInternalID -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _Country ON BankCountry = _Country.Country AND _Country.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _CountryName ON RelatedBankCountry = _CountryName.Country AND _CountryName.Language = $session.system_language -- 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