FCLM_BAM_DISTINCT_HBA
distinct house bank accounts for T012K
FCLM_BAM_DISTINCT_HBA is a CDS View that provides data about "distinct house bank accounts for T012K" in SAP S/4HANA. It reads from 2 data sources (fclm_bam_amd, fclm_bam_aclink2) and exposes 6 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| fclm_bam_amd | acc | inner |
| fclm_bam_aclink2 | hba | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_DISNT_HBA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | C | view | |
| ObjectModel.usageType.sizeCategory | M | view | |
| ObjectModel.usageType.dataClass | MASTER | view | |
| EndUserText.label | distinct house bank accounts for T012K | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| mandt | fclm_bam_aclink2 | mandt | ||
| bukrs | fclm_bam_aclink2 | bukrs | ||
| hbkid | fclm_bam_aclink2 | hbkid | ||
| hktid | fclm_bam_aclink2 | hktid | ||
| acc_id | fclm_bam_aclink2 | acc_id | ||
| valid_to |
@AbapCatalog.sqlViewName: 'V_DISNT_HBA'
@AbapCatalog.compiler.compareFilter: true
@ObjectModel.usageType.serviceQuality: 'C'
@ObjectModel.usageType.sizeCategory: 'M'
@ObjectModel.usageType.dataClass: 'MASTER'
@EndUserText.label: 'distinct house bank accounts for T012K'
define view FCLM_BAM_DISTINCT_HBA
as select from fclm_bam_aclink2 as hba
inner join fclm_bam_amd as acc on acc.acc_id = hba.acc_id
and hba.revision = acc.revision
{
hba.mandt,
hba.bukrs,
hba.hbkid,
hba.hktid,
hba.acc_id,
max(hba.valid_to) as valid_to
}
where
hba.herku = ''
and hba.hbkid <> ''
and hba.hktid <> ''
and hba.is_reused = ''
and hba.revision = '0000'
and hba.valid_from <= $session.system_date
and(
acc.status = '15' //Closed in System
or(
(
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
)
and hba.valid_to >= $session.system_date
)
)
group by
hba.bukrs,
hba.hbkid,
hba.hktid,
hba.acc_id
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FCLM_BAM_ACLINK2",
"FCLM_BAM_AMD"
],
"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