I_SUPPLIERBANKDETAILS

CDS View

SupplierBankDetails

I_SUPPLIERBANKDETAILS is a CDS View in S/4HANA. SupplierBankDetails. It contains 16 fields. 15 CDS views read from this table.

CDS Views using this table (15)

ViewTypeJoinVDMDescription
/CEECV/SHSM_ROFI_BVTY view from BASIC CDS View replacing /CEECV/ROFI_BVTY in search help
C_BG_SAFTSupplierBankAccount view_entity from CONSUMPTION BG SAFT Supplier Bank Account Details
C_MngJrnlEntrCustSuplrBkDetVH view_entity union CONSUMPTION Customer and Supplier Bank Detail
C_NO_SAFTGenLedgerSuplrBkAcct view from CONSUMPTION SAF-T Norway GL Supplier Bank Accounts
C_PaytReqSupplierBankDetailVH view_entity from CONSUMPTION Supplier Bnk Details for Payt Request VH
C_RO_SAFTSupplierBankAccount view from CONSUMPTION RO SAFT Supplier Bank Account Details
C_Supplierbankdetails view from CONSUMPTION SupplierBankDetails
FAC_Audit_Z3_Vendor_Bank view left_outer Vendor Bank Data
FI_F4_BVTYP_LFBK view from Only for usage in function module FI_F4_BVTYP
I_SAFTBankAccountDetails view union COMPOSITE SAFT Bank Account Details
I_SupplierBankDetailsVH view from COMPOSITE Supplier bank details
P_AU_TPARSuplrFirstBankDetail view_entity from COMPOSITE AU TPAR Supplier first bank detail
P_AU_TPARSupplierBankDetails view inner COMPOSITE AU TPAR Bank Details
P_CustomerSupplierBankDetail view_entity union COMPOSITE Bank Detail for Customer and Supplier
P_SuplrWthSameBkAcctDta view inner COMPOSITE Supplier Invoice Documents

Fields (16)

KeyField CDS FieldsUsed in Views
KEY Bank Bank 9
KEY BankAccount BankAccount 7
KEY BankCountry BankCountry 8
KEY BPBankAccountInternalID BPBankAccountInternalID 3
KEY BusinessPartner BusinessPartner 2
KEY Supplier BusinessPartnerNumber,Creditor,Supplier,SupplierWithSameBank 5
_BankAccount _BankAccount 1
_BusinessPartnerBank _BusinessPartnerBank 1
_Country _Country 1
_Supplier _Supplier 3
AuthorizationGroup AuthorizationGroup 1
BankAccountHolderName BankAccountHolderName 4
BankControlKey BankControlKey 4
BankDetailReference BankDetailReference 3
BPBankUUID BPBankUUID 1
IBAN IBAN 3
@EndUserText.label: 'SupplierBankDetails' //same as DDL description

@Analytics.dataCategory: #DIMENSION //or #CUBE or #FACT

@VDM.viewType: #BASIC
@ClientHandling.algorithm : #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.sqlViewName: 'ISUPPLIERBANK' //must start with "I"

@ObjectModel.representativeKey: 'Bank'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MASTER
@AccessControl.personalData.blocking: #REQUIRED
@Metadata.allowExtensions:true
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
 
define view I_SupplierBankDetails //must start with "I_"; same as DDL source name in upper-camelcase notation

  as select from lfbk
  //---> Decomment if you want to join further data sources

  //left outer to one join DatabaseTableOrBasicCdsView2 //recommendation: use addition "to one" or "to many"

  //   on LFBK.FieldName = DatabaseTableOrBasicCdsView2.FieldName2

  association [1..1] to I_Bank as _Bank on  $projection.BankCountry = _Bank.BankCountry
                                        and $projection.Bank        = _Bank.BankInternalID
  association [1..1] to I_BusinessPartnerBank as _BusinessPartnerBank on $projection.businesspartner = _BusinessPartnerBank.BusinessPartner
                                                                      and $projection.BankCountry = _BusinessPartnerBank.BankCountryKey
                                                                      and $projection.Bank = _BusinessPartnerBank.BankNumber
                                                                      and _BusinessPartnerBank.BPIsActualDate = 'X'
                                                                      //and $projection.BankAccount = _BusinessPartnerBank.BankAccount

                                                                      and ($projection.BankAccount = _BusinessPartnerBank.BankAccount or 
                                                                      $projection.IBAN = _BusinessPartnerBank.IBAN)
                                                                      and $projection.BPBankAccountInternalID = _BusinessPartnerBank.BankIdentification
  association [1..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
  
  association [1..1] to I_Country as _Country on $projection.BankCountry = _Country.Country
  
  association [1..1] to I_BankAccount as _BankAccount on $projection.BankAccount = _BankAccount.BankAccountInternalID //Added to remove representative key ATC, DO NOT USE

  
  association [0..1] to I_Iban as _IBAN on $projection.BankAccount = _IBAN.BankAccount
                                       and $projection.Bank = _IBAN.Bank
                                       and $projection.BankCountry = _IBAN.BankCountry
                                       and $projection.BankControlKey = _IBAN.BankControlKey
  association [1..1] to I_BusinessPartnerBankAlias as _BusinessPartnerBankAlias on $projection.BPBankUUID = _BusinessPartnerBankAlias.BPBankUUID
  
{
      //   key cast (lifnr as bu_partner) as Supplier,

      //--[ GENERATED:012:GlBfhyJl7kY4i6}7dD1KRG

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_Supplier_VH',
                     element: 'Supplier' }
        }]
      // ]--GENERATED

  @ObjectModel.foreignKey.association: '_Supplier'
  key lifnr           as Supplier,
  @ObjectModel.foreignKey.association: '_Country'
  key banks           as BankCountry,
//  @ObjectModel.text.element: '_Bank.BankName'

  key bankl           as Bank,
      //--[ GENERATED:012:GlBfhyJl7kY4i6}7dD1KRG

      @Consumption.valueHelpDefinition: [ 
        { entity:  { name:    'I_BankAccountStdVH',
                     element: 'BankAccountInternalID' }
        }]
      // ]--GENERATED

  @ObjectModel.foreignKey.association: '_BankAccount'
  key bankn           as BankAccount,

// deactivated  -  performance. Use _Bank associatoin and then the corresponding fields

//      _Bank.CityName  as CityName,

//      _Bank.BankName  as BankName,

//      _Bank.SWIFTCode as SWIFTCode,

  _Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartner,
      //    bkont as BankControlKey,

      bvtyp           as BPBankAccountInternalID,
      //xezer as ,

      //bkref,

      
      koinh           as BankAccountHolderName,
      //ebpp_accname,

      //ebpp_bvstatus,

      
      bkont          as BankControlKey,
      bkref          as BankDetailReference,
      
      bank_guid      as BPBankUUID,
       _IBAN.IBAN as IBAN,
    //  _BusinessPartnerBankAlias._BusinessPartnerBank._IBAN.IBAN,

//      _BusinessPartnerBankAlias.BPBankUUID as BPBankUUID,

     // _BusinessPartnerBank.BPBankIsProtected as ProtectFlag,


      //_TargetPublicBasicViewNameWithoutPrefix //expose the association for use by consumers

      _Bank,
      _Country,
      _Supplier.AuthorizationGroup,
      _Supplier,
      @API.element.releaseState: #DEPRECATED
      _BankAccount,
      _IBAN,
      _BusinessPartnerBank,
     // _BusinessPartnerBankAlias._BusinessPartnerBank,

      _BusinessPartnerBankAlias
}