P_BankAccountCount
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)
| Source | Alias | Join Type |
|---|---|---|
| I_BankAccount | I_BankAccount | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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