R_CashBankRelatedBranchTP

DDL: R_CASHBANKRELATEDBRANCHTP Type: view_entity TRANSACTIONAL

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)

SourceAliasJoin Type
I_RiskBusinessPartner _relatedBranch left_outer
I_RiskBusinessPartner bankWithBP from

Associations (5)

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

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

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