I_BusinessPartnerBankTP

DDL: I_BUSINESSPARTNERBANKTP SQL: IBUPABANKTP Type: view TRANSACTIONAL

Association View for bank details

I_BusinessPartnerBankTP is a Transactional CDS View that provides data about "Association View for bank details" in SAP S/4HANA. It reads from 1 data source (I_BusinessPartnerBank) and exposes 25 fields with key fields BankIdentification, BusinessPartner. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_BusinessPartnerBank BusinessPartnerBank from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_BusinessPartnerTP _BusinessPartner $projection.BusinessPartner = _BusinessPartner.BusinessPartner

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IBUPABANKTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Association View for bank details view
VDM.viewType #TRANSACTIONAL view
ObjectModel.writeEnabled true view
ObjectModel.writeDraftPersistence BUPA_BANK_D view
ObjectModel.draftEnabled true view
Search.searchable true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY BankIdentification I_BusinessPartnerBank BankIdentification
KEY BusinessPartner I_BusinessPartnerBank BusinessPartner
BankIdentificationForEdit I_BusinessPartnerBank BankIdentification
BusinessPartnerForEdit I_BusinessPartnerBank BusinessPartner
BankCountryKey I_BusinessPartnerBank BankCountryKey
BankName I_BusinessPartnerBank BankName
BankNumber I_BusinessPartnerBank BankNumber
SWIFTCode I_BusinessPartnerBank SWIFTCode
BankControlKey I_BusinessPartnerBank BankControlKey
BankAccountHolderName I_BusinessPartnerBank BankAccountHolderName
BankAccountName I_BusinessPartnerBank BankAccountName
IBAN I_BusinessPartnerBank IBAN
IBANValidityStartDate I_BusinessPartnerBank IBANValidityStartDate
BankAccount I_BusinessPartnerBank BankAccount
BankAccountReferenceText I_BusinessPartnerBank BankAccountReferenceText
CollectionAuthInd I_BusinessPartnerBank CollectionAuthInd
BPBankIsProtected I_BusinessPartnerBank BPBankIsProtected
BankValidityStartDate
BankValidityEndDate
ValidityStartDate I_BusinessPartnerBank ValidityStartDate
ValidityEndDate I_BusinessPartnerBank ValidityEndDate
PaymentSystem
AliasType
BPBankAccountAliasName
_BusinessPartner _BusinessPartner
@AbapCatalog.sqlViewName: 'IBUPABANKTP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'Association View for bank details'
@VDM.viewType: #TRANSACTIONAL
@ObjectModel.writeEnabled: true
@ObjectModel.writeDraftPersistence: 'BUPA_BANK_D' 
@ObjectModel.semanticKey: [ 'BankIdentification', 'BusinessPartner' ]
@ObjectModel.draftEnabled:true
@ObjectModel.createEnabled
@ObjectModel.deleteEnabled
@ObjectModel.updateEnabled
@Search.searchable: true



@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MASTER

define view I_BusinessPartnerBankTP

  as select from I_BusinessPartnerBank as BusinessPartnerBank
  association [1..1] to I_BusinessPartnerTP as _BusinessPartner on $projection.BusinessPartner = _BusinessPartner.BusinessPartner

  ////  association [0..1] to I_DraftAdministrativeData as _DraftAdministrativeData on  _DraftAdministrativeData.DraftUUID = $projection.DraftAdministrativeDataUUID


  ////  association [0..1] to i_businesspartnerbanktp   as _SiblingEntity           on  $projection.IsActiveEntity     <> _SiblingEntity.IsActiveEntity

  ////                                                                              and $projection.BusinessPartner    =  _SiblingEntity.BusinessPartner

  ////                                                                              and $projection.BankIdentification =  _SiblingEntity.BankIdentification



{

      //     @Consumption.hidden: true

      ////  key BusinessPartnerBank.DraftUUID,

      //   @Consumption.hidden: true

  key BusinessPartnerBank.BankIdentification,
      // @Consumption.hidden: true

  key BusinessPartnerBank.BusinessPartner,

      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      @Search.ranking: #HIGH
      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankIdentification                                                              as BankIdentificationForEdit,
      BusinessPartnerBank.BusinessPartner                                                                 as BusinessPartnerForEdit,
      ////      BusinessPartnerBank.ParentDraftUUID,


      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankCountryKey,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankName,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankNumber,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      @ObjectModel.readOnly: true
      BusinessPartnerBank.SWIFTCode,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankControlKey,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankAccountHolderName,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankAccountName,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.IBAN,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.IBANValidityStartDate,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankAccount,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.BankAccountReferenceText,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.CollectionAuthInd,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      cast(
      case
          when BusinessPartnerBank.IBAN is null
          then ''
          else 'X'
      end  as boole_d)                                                                                    as AutoIBAN,
      
      @ObjectModel.readOnly: true
      BusinessPartnerBank.BPBankIsProtected,


      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      //cast(substring (cast(BusinessPartnerBank.ValidityStartDate as abap.char(32)),1,8) as abap.dats)     as BankValidityStartDate,

      tstmp_to_dats(BusinessPartnerBank.ValidityStartDate,'UTC',  $session.client, 'NULL') as BankValidityStartDate,
      
      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      @ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
      //cast(substring (cast(BusinessPartnerBank.ValidityEndDate as abap.char(32)),1,8) as abap.dats)       as BankValidityEndDate,

      tstmp_to_dats(BusinessPartnerBank.ValidityEndDate,'UTC',  $session.client, 'NULL') as BankValidityEndDate,
      
      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.ValidityStartDate,

      @ObjectModel.mandatory: 'EXTERNAL_CALCULATION'
      BusinessPartnerBank.ValidityEndDate,
      
      BusinessPartnerBank._BusinessPartnerBankAlias.PaymentSystem,
      
      BusinessPartnerBank._BusinessPartnerBankAlias.AliasType,
      
      BusinessPartnerBank._BusinessPartnerBankAlias.BPBankAccountAliasName,


      ////      BusinessPartnerBank.IsActiveEntity,

      ////      BusinessPartnerBank.HasActiveEntity,

      ////      BusinessPartnerBank.HasDraftEntity,


      //new

      ////      BusinessPartnerBank.DraftAdministrativeDataUUID,


      @ObjectModel.association.type:  [ #TO_COMPOSITION_ROOT,#TO_COMPOSITION_PARENT ]
      _BusinessPartner
      ////      _DraftAdministrativeData,

      ////      _SiblingEntity

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNERBANK",
"I_BUSINESSPARTNERBANKALIAS"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNERTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/