I_CustomerBankDetails
Customer Bank Details Core
I_CustomerBankDetails is a Basic CDS View that provides data about "Customer Bank Details Core" in SAP S/4HANA. It reads from 1 data source (knbk) and exposes 18 fields with key fields Customer, BankCountry, Bank, BankAccount. It has 6 associations to related views. Part of development package VDM_MD_COMMON.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| knbk | knbk | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Bank | _Bank | $projection.BankCountry = _Bank.BankCountry and $projection.Bank = _Bank.BankInternalID |
| [1..1] | I_BusinessPartnerBank | _BusinessPartnerBank | $projection.BusinessPartner = _BusinessPartnerBank.BusinessPartner and $projection.BankCountry = _BusinessPartnerBank.BankCountryKey and $projection.Bank = _BusinessPartnerBank.BankNumber and $projection.BankAccount = _BusinessPartnerBank.BankAccount |
| [1..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [1..1] | I_Country | _Country | $projection.BankCountry = _Country.Country |
| [1..1] | I_BankAccount | _BankAccount | $projection.BankAccount = _BankAccount.BankAccountInternalID |
| [1..1] | I_BusinessPartnerBankAlias | _BusinessPartnerBankAlias | $projection.BPBankUUID = _BusinessPartnerBankAlias.BPBankUUID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICUSTOMERBANK | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Customer Bank Details Core | view | |
| ObjectModel.representativeKey | Bank | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| AccessControl.personalData.blockingIndicator | _Customer.IsBusinessPurposeCompleted | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | kunnr | Stock customer | |
| KEY | BankCountry | banks | Bank Ctry/Rgn. Key | |
| KEY | Bank | bankl | House Bank | |
| KEY | BankAccount | bankn | Bank acct | |
| BankAccountHolderName | koinh | Sold-To Party | ||
| BankControlKey | bkont | To Account | ||
| BPBankAccountInternalID | bvtyp | Part.bank type | ||
| BankDetailReference | bkref | Reference | ||
| CollectionAuthInd | xezer | Collection Auth. | ||
| BusinessPartner | ||||
| BPBankUUID | bank_guid | BP Bank GUID | ||
| _Bank | _Bank | |||
| _Country | _Country | |||
| AuthorizationGroup | _Customer | AuthorizationGroup | AuthorizGroup | |
| _Customer | _Customer | |||
| _BankAccount | _BankAccount | |||
| _BusinessPartnerBank | _BusinessPartnerBank | |||
| _BusinessPartnerBankAlias | _BusinessPartnerBankAlias |
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_CustomerBankDetails.
-- 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.
-- SQL view name: ICUSTOMERBANK
CREATE VIEW I_CustomerBankDetails AS
SELECT
kunnr AS Customer,
banks AS BankCountry,
bankl AS Bank,
bankn AS BankAccount,
koinh AS BankAccountHolderName,
bkont AS BankControlKey,
bvtyp AS BPBankAccountInternalID,
bkref AS BankDetailReference,
xezer AS CollectionAuthInd,
_Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
bank_guid AS BPBankUUID,
_Customer.AuthorizationGroup AS AuthorizationGroup
FROM knbk
LEFT OUTER JOIN I_Bank AS _Bank ON BankCountry = _Bank.BankCountry AND Bank = _Bank.BankInternalID -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerBank AS _BusinessPartnerBank ON BusinessPartner = _BusinessPartnerBank.BusinessPartner AND BankCountry = _BusinessPartnerBank.BankCountryKey AND Bank = _BusinessPartnerBank.BankNumber AND BankAccount = _BusinessPartnerBank.BankAccount -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON BankCountry = _Country.Country -- association [1..1]
LEFT OUTER JOIN I_BankAccount AS _BankAccount ON BankAccount = _BankAccount.BankAccountInternalID -- association [1..1]
LEFT OUTER JOIN I_BusinessPartnerBankAlias AS _BusinessPartnerBankAlias ON BPBankUUID = _BusinessPartnerBankAlias.BPBankUUID -- association [1..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