I_Bank_2

DDL: I_BANK_2 Type: view_entity BASIC

Bank

I_Bank_2 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Financial Operations

I_Bank_2 is a Basic CDS View (Dimension) that provides data about "Bank" in SAP S/4HANA. It reads from 2 data sources (bnkain, bnka) and exposes 26 fields with key fields BankCountry, BankInternalID. It has 4 associations to related views.

SAP Help Documentation

CategoryCDS Views for Cash and Liquidity Management
Data CategoryDimension
StatusReleased
Corresponding DataSourceBNKA
Purpose
This CDS view allows you to read information about bank master data from your SAP S/4HANA system. This CDS view provides the prerequisites for answering the following business question: What is the name of the bank with its specific bank internal ID, bank number, or bank identifier code? Note CDS view I_Bank_2 is the successor to CDS view I_Bank . This new CDS view also returns bank records that are marked for deletion. If you're using I_Bank , please consider switching to I_Bank_2 to benefit from the enhanced functions.

Structure
Object types This view relates to the following SAP object type: Bank

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessFinancial Operations
Application ComponentCA-BK-BNK
CapabilitiesData Source for Defining CDS Entities, Data Source for Data Extraction
PackageFinancial Operations for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
bnkain ad left_outer
bnka bk from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_Address _Address $projection.AddressID = _Address.AddressID
[0..*] I_OrganizationAddress _BankAddress $projection.AddressID = _BankAddress.AddressID
[0..1] I_Region _Region $projection.Region = _Region.Region and $projection.BankCountry = _Region.Country
[0..1] I_Country _Country $projection.BankCountry = _Country.Country

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Bank view
VDM.viewType #BASIC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
Metadata.allowExtensions true view
Search.searchable true view
ObjectModel.representativeKey BankInternalID view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY BankCountry bnka banks Bank Country/Region Key
KEY BankInternalID bnka bankl House Bank
CreationDate bnka erdat Record Created On
CreatedByUser bnka ernam Name of person who created the object
BankName bnka banka Name of Financial Institution
Region bnka provz Region (State, Province, County)
StreetName bnka stras Street and House Number
ShortStreetName bnka stras Street and House Number
CityName bnka ort01 Province
ShortCityName bnka ort01 Province
SWIFTCode bnka swift SWIFT/BIC for International Payments
BankNetworkGrouping bnka bgrup Bank group (bank network)
IsPostBankAccount bnka xpgro Post Office Bank Current Account
IsMarkedForDeletion bnka loevm Deletion Indicator
Bank bnka bnklz Bank Number
PostOfficeBankAccount bnka pskto Post office bank current account number
Branch bnka brnch Business Place
BankBranch bnka brnch Business Place
CheckDigitCalculationMethod bnka chkme Check digit calculation method
BankDataFileFormat bnka vers Format of File with Bank Data
AddressID bnka adrnr Sold-To Address
BankCategory bnkain bintk Internal Bank Category
_Address _Address
_BankAddress _BankAddress
_Region _Region
_Country _Country

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_Bank_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.

CREATE VIEW I_Bank_2 AS
SELECT
  bk.banks AS BankCountry,
  bk.bankl AS BankInternalID,
  bk.erdat AS CreationDate,
  bk.ernam AS CreatedByUser,
  bk.banka AS BankName,
  bk.provz AS Region,
  bk.stras AS StreetName,
  bk.stras AS ShortStreetName,
  bk.ort01 AS CityName,
  bk.ort01 AS ShortCityName,
  bk.swift AS SWIFTCode,
  bk.bgrup AS BankNetworkGrouping,
  bk.xpgro AS IsPostBankAccount,
  bk.loevm AS IsMarkedForDeletion,
  bk.bnklz AS Bank,
  bk.pskto AS PostOfficeBankAccount,
  bk.brnch AS Branch,
  bk.brnch AS BankBranch,
  bk.chkme AS CheckDigitCalculationMethod,
  bk.vers AS BankDataFileFormat,
  bk.adrnr AS AddressID,
  ad.bintk AS BankCategory
FROM bnka AS bk
LEFT OUTER JOIN bnkain AS ad ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Address AS _Address ON AddressID = _Address.AddressID  -- association [0..1]
LEFT OUTER JOIN I_OrganizationAddress AS _BankAddress ON AddressID = _BankAddress.AddressID  -- association [0..*]
LEFT OUTER JOIN I_Region AS _Region ON Region = _Region.Region AND BankCountry = _Region.Country  -- association [0..1]
LEFT OUTER JOIN I_Country AS _Country ON BankCountry = _Country.Country  -- association [0..1]
;