P_HouseBankAccountText
P_HouseBankAccountText is a Basic CDS View in SAP S/4HANA. It reads from 4 data sources (fclm_bam_amd, fclm_bam_amd_t, I_BankAccountValidLinkage, fclm_bam_aclink2) and exposes 6 fields.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| fclm_bam_amd | acc | inner |
| fclm_bam_amd_t | acctxt | inner |
| I_BankAccountValidLinkage | distinct_hba | from |
| fclm_bam_aclink2 | hba | inner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PHOUSEBANKACCTT | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| mandt | fclm_bam_aclink2 | mandt | ||
| spras | fclm_bam_amd_t | langu | ||
| bukrs | I_BankAccountValidLinkage | CompanyCode | ||
| hbkid | I_BankAccountValidLinkage | HouseBank | ||
| hktid | I_BankAccountValidLinkage | HouseBankAccount | ||
| text1 |
@AbapCatalog.sqlViewName: 'PHOUSEBANKACCTT'
@VDM.private: true
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view P_HouseBankAccountText
as select from I_BankAccountValidLinkage as distinct_hba
inner join fclm_bam_aclink2 as hba on hba.acc_id = distinct_hba.BankAccountInternalID
and hba.valid_to = distinct_hba.ValidityEndDate
and hba.bukrs = distinct_hba.CompanyCode
and hba.hbkid = distinct_hba.HouseBank
and hba.hktid = distinct_hba.HouseBankAccount
and hba.is_reused = ''
and hba.herku = ''
and hba.revision = '0000'
inner join fclm_bam_amd_t as acctxt on acctxt.acc_id = hba.acc_id and acctxt.revision = '0000'
inner join fclm_bam_amd as acc on acc.acc_id = hba.acc_id and acc.revision = '0000'
{
hba.mandt,
acctxt.langu as spras,
distinct_hba.CompanyCode as bukrs,
distinct_hba.HouseBank as hbkid,
distinct_hba.HouseBankAccount as hktid,
cast(substring (acctxt.description, 1, 50) as fclm_bam_description ) as text1
}
where
hba.herku = ''
and acctxt.deleted_flag = ''
and hba.hbkid <> ''
and hba.hktid <> ''
and(
acc.status = '02' //Active
or acc.status = '09' //Marked for Closing
or acc.status = '10' //To Be Closed
or acc.status = '11' //Closed at Bank
or acc.status = '15' //Closed in System
) //Closed
and hba.revision = '0000'
and hba.is_reused != 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BANKACCOUNTVALIDLINKAGE",
"FCLM_BAM_ACLINK2",
"FCLM_BAM_AMD",
"FCLM_BAM_AMD_T"
],
"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