P_BankAccountCount

DDL: P_BANKACCOUNTCOUNT SQL: PFIBANKACCCOUNT Type: view COMPOSITE

P_BankAccountCount is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BankAccount) and exposes 3 fields with key fields Bank, BankCountry.

Data Sources (1)

SourceAliasJoin Type
I_BankAccount I_BankAccount from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PFIBANKACCCOUNT view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY Bank Bank
KEY BankCountry BankCountry
NumberOfBankAccounts
@AbapCatalog.sqlViewName: 'PFIBANKACCCOUNT'
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.preserveKey:true
define view P_BankAccountCount
  as select from I_BankAccount

{

  key Bank,
  key BankCountry,
      count(*) as NumberOfBankAccounts
}
where
     BankAccountStatus = '02'
  or BankAccountStatus = '10'
  or BankAccountStatus = '09'
group by
  Bank,
  BankCountry;
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BANKACCOUNT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/