I_CustomerBankDetails

DDL: I_CUSTOMERBANKDETAILS SQL: ICUSTOMERBANK Type: view BASIC Package: VDM_MD_COMMON

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)

SourceAliasJoin Type
knbk knbk from

Associations (6)

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

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

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