I_Bank_2
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
| Category | CDS Views for Cash and Liquidity Management |
|---|---|
| Data Category | Dimension |
| Status | Released |
| Corresponding DataSource | BNKA |
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
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
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Financial Operations |
| Application Component | CA-BK-BNK |
| Capabilities | Data Source for Defining CDS Entities, Data Source for Data Extraction |
| Package | Financial Operations for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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