Fclm_BankAccountGroupNode

DDL: FCLM_BANKACCOUNTGROUPNODE SQL: BNKACCTGRPNODE Type: view

Nodes of Selected Bank Account Group

Fclm_BankAccountGroupNode is a CDS View that provides data about "Nodes of Selected Bank Account Group" in SAP S/4HANA. It reads from 2 data sources (I_BankAccount, I_BankAccountHierarchyNode) and exposes 5 fields.

Data Sources (2)

SourceAliasJoin Type
I_BankAccount bam union_all
I_BankAccountHierarchyNode nodes from

Annotations (8)

NameValueLevelField
EndUserText.label Nodes of Selected Bank Account Group view
AbapCatalog.sqlViewName BNKACCTGRPNODE view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (5)

KeyFieldSource TableSource FieldDescription
BankAccountInternalID I_BankAccountHierarchyNode BankAccountInternalID
BankAccountHierarchy I_BankAccountHierarchyNode BankAccountHierarchy
BankAccountInternalID
BankAccountHierarchy
standsforallnodes_Text
@EndUserText.label: 'Nodes of Selected Bank Account Group'
@AbapCatalog.sqlViewName: 'BNKACCTGRPNODE' 
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MASTER
define view Fclm_BankAccountGroupNode 
// leaf nodes are selected with bank account IDs and hierarchy names

as select from I_BankAccountHierarchyNode as nodes
association[0..*] to I_BankAccountHierarchyText as _Text on $projection.BankAccountHierarchy = _Text.BankAccountHierarchy
{
  nodes.BankAccountInternalID,
  nodes.BankAccountHierarchy,
  _Text   
  
} where nodes.BankAccountInternalID <> '0000000000' --select all the leaf nodes

union all
// all the accounts are selected with hierarchy name *. The bank account IDs are duplicated, so that all the nodes can be selected without hierarchy name but with *.

select from I_BankAccount as bam
association[0..*] to I_BankAccountHierarchyText as _Text on $projection.BankAccountHierarchy = _Text.BankAccountHierarchy
{
  bam.BankAccountInternalID,
  cast('*' as abap.char( 12 )) as BankAccountHierarchy, -- * stands for all nodes
  _Text
}                
  
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BANKACCOUNT",
"I_BANKACCOUNTHIERARCHYNODE"
],
"ASSOCIATED":
[
"I_BANKACCOUNTHIERARCHYTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/