C_HouseBankAccount

DDL: C_HOUSEBANKACCOUNT SQL: CHBACCT Type: view CONSUMPTION

House Bank Acct Factsheet

C_HouseBankAccount is a Consumption CDS View that provides data about "House Bank Acct Factsheet" in SAP S/4HANA. It reads from 1 data source (I_Bankaccountlinkage) and exposes 22 fields with key fields CompanyCode, HouseBank, HouseBankAccount. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Bankaccountlinkage HouseBankAcct from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_BankAccount _BankAccount $projection.BankAccountInternalID = _BankAccount.BankAccountInternalID
[0..1] I_HouseBankAccountText _Text $projection.CompanyCode = _Text.CompanyCode and $projection.HouseBank = _Text.HouseBank and $projection.HouseBankAccount = _Text.HouseBankAccount and _Text.Language = $session.system_language association[0..*] to C_HierRuntimeRprstnDplLeafNode as _GLAccountHierLeafNode on $projection.glaccount = _GLAccountHierLeafNode.UnivHierarchyBusinessEntity and $projection.chartofaccounts = _GLAccountHierLeafNode.HierarchyNodeClass and _GLAccountHierLeafNode.ValidityStartDate <= $session.system_date and _GLAccountHierLeafNode.ValidityEndDate >= $session.system_date and _GLAccountHierLeafNode.HierarchyType = 'FSVN'

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CHBACCT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label House Bank Acct Factsheet view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view
UI.headerInfo.typeName House Bank Account view
UI.headerInfo.typeNamePlural House Bank Account view
UI.headerInfo.title.label House Bank Account view
UI.headerInfo.title.value HouseBankAccount view
UI.headerInfo.description.label House Bank view
UI.headerInfo.description.value HouseBankAccountDescription view
AccessControl.personalData.blocking #NOT_REQUIRED view
Consumption.semanticObject HouseBankAccount view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_Bankaccountlinkage CompanyCode Receiver Company Code
KEY HouseBank I_Bankaccountlinkage HouseBank House Bank
KEY HouseBankAccount I_Bankaccountlinkage HouseBankAccount House Bank Account
HouseBankAccountDescription House Bank Account Description
BankAccountInternalID I_Bankaccountlinkage BankAccountInternalID Technical ID
BankAccountCurrency
BankAccount I_Bankaccountlinkage BankAccount Bank acct
BankAccountAlternative I_Bankaccountlinkage BankAccountAlternative Alternative Bank Account Number
GLAccount
GLAccountHierarchy
GLAccountHierarchyNode
ChartOfAccounts
CompanyCodeName
BankCountry
CountryName Bank Country/Region Name
Bank
BankName
IBAN _BankAccount IBAN IBAN House Bank
PaymentTransactionTypeGroup _BankAccount PaymentTransactionTypeGroup Transaction Type
DataMedExchangeIdentification I_Bankaccountlinkage DataMedExchangeIdentification DME Identification
ReferenceInfo I_Bankaccountlinkage ReferenceInfo Reference Information
_GLAccountHierLeafNode _GLAccountHierLeafNode

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view C_HouseBankAccount.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CHBACCT

CREATE VIEW C_HouseBankAccount AS
SELECT
  HouseBankAcct.CompanyCode AS CompanyCode,
  HouseBankAcct.HouseBank AS HouseBank,
  HouseBankAcct.HouseBankAccount AS HouseBankAccount,
  cast ( _Text.HouseBankAccountDescription as fclm_bam_description ) AS HouseBankAccountDescription,
  HouseBankAcct.BankAccountInternalID AS BankAccountInternalID,
  _BankAccount._BankAccountCurrency.BankAccountCurrency AS BankAccountCurrency,
  HouseBankAcct.BankAccount AS BankAccount,
  HouseBankAcct.BankAccountAlternative AS BankAccountAlternative,
  HouseBankAcct._HouseBankAccount.GLAccount AS GLAccount,
  cast('' as fis_glaccthier) AS GLAccountHierarchy,
  cast('' as fis_glacct_hrynid_50) AS GLAccountHierarchyNode,
  HouseBankAcct._CompanyCode.ChartOfAccounts AS ChartOfAccounts,
  HouseBankAcct._CompanyCode.CompanyCodeName AS CompanyCodeName,
  HouseBankAcct._HouseBank.BankCountry AS BankCountry,
  _BankAccount._BankCountry._Text[Language = $session.system_language].CountryName AS CountryName,
  HouseBankAcct._HouseBank.BankInternalID AS Bank,
  HouseBankAcct._HouseBank._Bank.BankName AS BankName,
  _BankAccount.IBAN AS IBAN,
  _BankAccount.PaymentTransactionTypeGroup AS PaymentTransactionTypeGroup,
  HouseBankAcct.DataMedExchangeIdentification AS DataMedExchangeIdentification,
  HouseBankAcct.ReferenceInfo AS ReferenceInfo
FROM I_Bankaccountlinkage AS HouseBankAcct
LEFT OUTER JOIN I_BankAccount AS _BankAccount ON BankAccountInternalID = _BankAccount.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_HouseBankAccountText AS _Text ON CompanyCode = _Text.CompanyCode AND HouseBank = _Text.HouseBank AND HouseBankAccount = _Text.HouseBankAccount AND _Text.Language = $session.system_language association[0..*] to C_HierRuntimeRprstnDplLeafNode as _GLAccountHierLeafNode on glaccount = _GLAccountHierLeafNode.UnivHierarchyBusinessEntity AND chartofaccounts = _GLAccountHierLeafNode.HierarchyNodeClass AND _GLAccountHierLeafNode.ValidityStartDate <= $session.system_date AND _GLAccountHierLeafNode.ValidityEndDate >= $session.system_date AND _GLAccountHierLeafNode.HierarchyType = 'FSVN'  -- association [0..1]
;