I_BankAccountMultipleLinkage
Bank Account Multi Linkages
I_BankAccountMultipleLinkage is a Basic CDS View that provides data about "Bank Account Multi Linkages" in SAP S/4HANA. It reads from 2 data sources (fclm_bam_amd, fclm_bam_aclink2) and exposes 15 fields with key fields CompanyCode, HouseBank, HouseBankAccount, ValidityStartDate. It has 3 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| fclm_bam_amd | account | inner |
| fclm_bam_aclink2 | hba | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Housebank | _HouseBank | $projection.HouseBank = _HouseBank.HouseBank and $projection.CompanyCode = _HouseBank.CompanyCode |
| [0..1] | I_HouseBankAccount | _HouseBankAccount | $projection.CompanyCode = _HouseBankAccount.CompanyCode and $projection.HouseBank = _HouseBankAccount.HouseBank and $projection.HouseBankAccount = _HouseBankAccount.HouseBankAccount |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Bank Account Multi Linkages | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | IFIBAMMLINKAGE | view | |
| ObjectModel.representativeKey | HouseBankAccount | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | fclm_bam_aclink2 | bukrs | |
| KEY | HouseBank | fclm_bam_aclink2 | hbkid | |
| KEY | HouseBankAccount | fclm_bam_aclink2 | hktid | |
| KEY | ValidityStartDate | fclm_bam_aclink2 | valid_from | |
| BankAccount | fclm_bam_aclink2 | bankn | ||
| BankAccountNumber | fclm_bam_amd | acc_num | ||
| ValidityEndDate | fclm_bam_aclink2 | valid_to | ||
| BankAccountInternalID | fclm_bam_aclink2 | acc_id | ||
| BankAccountAlternative | fclm_bam_aclink2 | bnkn2 | ||
| DataMedExchangeIdentification | fclm_bam_aclink2 | dtaai | ||
| ReferenceInfo | fclm_bam_aclink2 | refzl | ||
| GLAccount | fclm_bam_aclink2 | hkont | ||
| _CompanyCode | _CompanyCode | |||
| _HouseBank | _HouseBank | |||
| _HouseBankAccount | _HouseBankAccount |
@EndUserText.label: 'Bank Account Multi Linkages'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.sqlViewName: 'IFIBAMMLINKAGE'
@ObjectModel.representativeKey: 'HouseBankAccount'
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.serviceQuality: #C
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.allowExtensions:true
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
define view I_BankAccountMultipleLinkage as select from fclm_bam_aclink2 as hba
inner join fclm_bam_amd as account on account.acc_id = hba.acc_id and account.revision = '0000'
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_Housebank as _HouseBank on $projection.HouseBank = _HouseBank.HouseBank and $projection.CompanyCode = _HouseBank.CompanyCode
association [0..1] to I_HouseBankAccount as _HouseBankAccount on $projection.CompanyCode = _HouseBankAccount.CompanyCode
and $projection.HouseBank = _HouseBankAccount.HouseBank
and $projection.HouseBankAccount = _HouseBankAccount.HouseBankAccount
{
//key herku as BankAccountLinkageRemoteSystem,
@ObjectModel.foreignKey.association: '_CompanyCode' //Inserted by VDM CDS Suite Plugin
key hba.bukrs as CompanyCode,
@ObjectModel.foreignKey.association: '_HouseBank' //Inserted by VDM CDS Suite Plugin
key hba.hbkid as HouseBank,
key hba.hktid as HouseBankAccount,
key hba.valid_from as ValidityStartDate,
hba.bankn as BankAccount,
account.acc_num as BankAccountNumber,
hba.valid_to as ValidityEndDate,
//key remoteaccount as BankAcctLinkageRemoteAccount,
hba.acc_id as BankAccountInternalID,
hba.bnkn2 as BankAccountAlternative,
hba.dtaai as DataMedExchangeIdentification,
hba.refzl as ReferenceInfo,
hba.hkont as GLAccount,
_CompanyCode,
_HouseBank,
_HouseBankAccount
}
where hba.revision = '0000' and hba.herku = '' and hba.is_reused <> 'X'
and ( account.status = '02' //Active
or account.status = '09' //Marked for Closing
or account.status = '10' //To Be Closed
or account.status = '11' //Closed at Bank
or account.status = '15' //Closed in System
)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FCLM_BAM_ACLINK2",
"FCLM_BAM_AMD"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_HOUSEBANK",
"I_HOUSEBANKACCOUNT"
],
"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