I_BankAccountTP

DDL: I_BANKACCOUNTTP Type: view TRANSACTIONAL Package: FCLM_BAM

Bank Account BO active and draft

I_BankAccountTP is a Transactional CDS View that provides data about "Bank Account BO active and draft" in SAP S/4HANA. It reads from 1 data source (fclm_bam_amd) and exposes 188 fields with key fields BankAccountInternalID, BankAccountRevision. It has 50 associations to related views. Part of development package FCLM_BAM.

Data Sources (1)

SourceAliasJoin Type
fclm_bam_amd Account from

Associations (50)

CardinalityTargetAliasCondition
[0..*] I_BankAccHouseBankAccTP _AccountConnectivePath $projection.BankAccountInternalID = _AccountConnectivePath.BankAccountInternalID and $projection.BankAccountRevision = _AccountConnectivePath.BankAccountRevision
[0..*] I_BankAccLimitTP _AccountOverDraftLimit $projection.BankAccountInternalID = _AccountOverDraftLimit.BankAccountInternalID and $projection.BankAccountRevision = _AccountOverDraftLimit.BankAccountRevision
[0..*] I_BankAccSignatureTP _AccountSignature $projection.BankAccountInternalID = _AccountSignature.BankAccountInternalID and $projection.BankAccountRevision = _AccountSignature.BankAccountRevision
[0..*] I_BankAccTextTP _AccountText $projection.BankAccountInternalID = _AccountText.BankAccountInternalID and $projection.BankAccountRevision = _AccountText.BankAccountRevision
[0..*] I_BkAcctSpcfcCorrespncFldrTP _CorrespondenceFolder $projection.BankAccountInternalID = _CorrespondenceFolder.BankAccountInternalID and $projection.BankAccountRevision = _CorrespondenceFolder.BankAccountRevision -- :0..1
[0..1] I_SingleHouseBankAccount _SingleHouseBankAccount $projection.BankAccountInternalID = _SingleHouseBankAccount.BankAccountInternalID and $projection.BankAccountRevision = _SingleHouseBankAccount.BankAccountRevision
[0..1] I_Bank_2 _Bank $projection.BankCountry = _Bank.BankCountry and $projection.Bank = _Bank.BankInternalID
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..*] I_ProfitCenterText _ProfitCenterText $projection.ProfitCenter = _ProfitCenterText.ProfitCenter and $projection.ControllingArea = _ProfitCenterText.ControllingArea and _ProfitCenterText.ValidityStartDate <= $session.system_date and _ProfitCenterText.ValidityEndDate >= $session.system_date and _ProfitCenterText.Language = $session.system_language
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_BusinessAreaText _BusinessAreaText $projection.BusinessArea = _BusinessAreaText.BusinessArea and _BusinessAreaText.Language = $session.system_language
[0..1] I_SegmentText _SegmentText $projection.Segment = _SegmentText.Segment and _SegmentText.Language = $session.system_language
[0..1] I_CountryText _BankCountryText $projection.BankCountry = _BankCountryText.Country and _BankCountryText.Language = $session.system_language
[0..*] I_CountryText _CompanyCountryText $projection.CompanyCodeCountry = _CompanyCountryText.Country
[0..*] I_BankAccountTypeText _BankAccountType $projection.BankAccountType = _BankAccountType.BankAccountType
[0..1] I_BankAccountTextRev _AccountTextInCurrentLang $projection.BankAccountInternalID = _AccountTextInCurrentLang.BankAccountInternalID and $projection.BankAccountRevision = _AccountTextInCurrentLang.BankAccountRevision and _AccountTextInCurrentLang.Language = $session.system_language
[0..1] I_BankAccountStatusStdVH _BankAccountStatus $projection.BankAccountStatus = _BankAccountStatus.BankAccountStatus
[0..1] I_BankAccRevision _BankAccountRevision $projection.BankAccountInternalID = _BankAccountRevision.BankAccountInternalID and $projection.BankAccountRevision = _BankAccountRevision.BankAccountRevision -- [Revision status = 02] >= 1
[0..1] I_BankAccHasRev _RevisionForActivating $projection.BankAccountInternalID = _RevisionForActivating.BankAccountInternalID
[0..1] I_BankAccountWithVerification _RevisionForVerify $projection.BankAccountInternalID = _RevisionForVerify.BankAccountInternalID
[0..1] I_BankAccInWorkFlow _BankAccInWorkFlow $projection.BankAccountInternalID = _BankAccInWorkFlow.BankAccountInternalID
[0..1] I_BankAccountRequested _BankAccRequested $projection.BankAccountInternalID = _BankAccRequested.BankAccountInternalID
[0..1] I_BankAccHasRevText _RevisionForActivatingText $projection.WithToBeActivatedRevision = _RevisionForActivatingText.WithToBeActivatedRevision and _RevisionForActivatingText.Language = $session.system_language
[0..1] I_BankAccHasRevText _RevisionForVerifyText $projection.WithToBeVerifiedRevision = _RevisionForVerifyText.WithToBeActivatedRevision and _RevisionForVerifyText.Language = $session.system_language
[0..1] I_BankAccInWorkflowText _BankAccInWorkFlowText $projection.InWorkflowProcess = _BankAccInWorkFlowText.InWorkflowProcess and _BankAccInWorkFlowText.Language = $session.system_language
[1..1] E_BankAccount _E_BankAccount $projection.BankAccountInternalID = _E_BankAccount.BankAccountInternalID and $projection.BankAccountRevision = _E_BankAccount.BankAccountRevision
[0..1] I_UserContactCard _BankAccountSupervisor $projection.BankAccountSupervisor = _BankAccountSupervisor.ContactCardID
[0..1] I_UserContactCard _CompanyContactPerson $projection.CompanyContactPerson = _CompanyContactPerson.ContactCardID
[0..1] I_UserContactCard _CreatedBy $projection.CreatedByUser = _CreatedBy.ContactCardID
[0..1] I_UserContactCard _OpenedBy $projection.OpenedByUser = _OpenedBy.ContactCardID
[0..1] I_UserContactCard _ClosedBy $projection.ClosedByUser = _ClosedBy.ContactCardID
[0..1] I_UserContactCard _ReviewedBy $projection.ReviewedByUser = _ReviewedBy.ContactCardID
[0..1] I_UserContactCard _LastChangedBy $projection.LastChangedByUser = _LastChangedBy.ContactCardID
[0..1] I_BusinessPartner _GeneralContact $projection.BankContactPerson = _GeneralContact.BusinessPartner
[0..1] I_BusinessPartner _BankRelationshipManager $projection.BankRelationshipManager = _BankRelationshipManager.BusinessPartner
[0..1] I_BusinessPartner _IHBAccountHolder $projection.IHBAccountHolder = _IHBAccountHolder.BusinessPartner
[0..1] I_CashPoolMgmt _LeadingCashPoolMgmt $projection.LeadingCashPoolID = _LeadingCashPoolMgmt.CashPoolName and _LeadingCashPoolMgmt.CashPoolIsDeleted <> 'X'
[0..1] I_CashPoolMgmt _ParticipantCashPoolMgmt $projection.ParticipantCashPoolID = _ParticipantCashPoolMgmt.CashPoolName and _ParticipantCashPoolMgmt.CashPoolIsDeleted <> 'X'
[0..1] I_PaymentMethod _ParticipantPaymentMethod $projection.ParticipantPaymentMethod = _ParticipantPaymentMethod.PaymentMethod and $projection.BankCountry = _ParticipantPaymentMethod.Country
[0..1] I_PaymentMethod _LeadingPaymentMethod $projection.LeadingPaymentMethod = _LeadingPaymentMethod.PaymentMethod and $projection.BankCountry = _LeadingPaymentMethod.Country
[0..1] I_BkAcctPaytSrvcPrvdr _BkAcctPaytSrvcPrvdr $projection.PaymentServiceProvider = _BkAcctPaytSrvcPrvdr.PaymentServiceProvider
[0..1] I_BankAccountLatestReview _SingleAccountReviewLog $projection.BankAccountInternalID = _SingleAccountReviewLog.BankAccountInternalID
[0..1] I_RegionText _RegionText $projection.BankCountry = _RegionText.Country and $projection.region = _RegionText.Region and _RegionText.Language = $session.system_language
[0..1] I_BankStmntRecnclnGrpText _BankStmntRecnclnGrpText $projection.BankStmntReconciliationGrp = _BankStmntRecnclnGrpText.BankStmntReconciliationGrp and _BankStmntRecnclnGrpText.Language = $session.system_language
[0..1] I_BankAccountSetting _BankAccountSetting $projection.BankAccountInternalID = _BankAccountSetting.BankAccountInternalID
[0..1] I_BankAcctContrTypeVH _ContractType $projection.BankAccountType = _ContractType.BankAccountType
[0..1] I_BankAccountOpeningRequest _BankAccountApplication $projection.OpenNewBankAccountRequest = _BankAccountApplication.BankAccountChangeRequest and _BankAccountApplication.BankAccountOpeningRequestUUID is not null
[0..1] I_HouseBankCount _HouseBankCount _HouseBankCount.CompanyCode = $projection.CompanyCode and _HouseBankCount.BankCountry = $projection.BankCountry and _HouseBankCount.BankInternalID = $projection.Bank
[0..1] I_SglHsBkAcctInBankAccount _minHouseBankAccount $projection.BankAccountInternalID = _minHouseBankAccount.BankAccountInternalID and $projection.CompanyCode = _minHouseBankAccount.CompanyCode and $projection.BankAccountRevision = _minHouseBankAccount.BankAccountRevision
[0..1] I_BankIntraStaRule _BankIntraStaRule $projection.BankCountry = _BankIntraStaRule.BankCountry and $projection.Bank = _BankIntraStaRule.BankInternalID

Annotations (24)

NameValueLevelField
AbapCatalog.sqlViewName IBANKACCOUNTTP view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Bank Account BO active and draft view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.compositionRoot true view
ObjectModel.modelCategory #BUSINESS_OBJECT view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.writeDraftPersistence BANKACCWD view
ObjectModel.draftEnabled true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.representativeKey BankAccountInternalID view
ObjectModel.entityChangeStateId LastChangeDate view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
ObjectModel.sapObjectNodeType.name BankAccount view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
Metadata.allowExtensions true view
Consumption.semanticObject BankAccount view

Fields (188)

KeyFieldSource TableSource FieldDescription
KEY BankAccountInternalID fclm_bam_amd acc_id Technical ID
KEY BankAccountRevision fclm_bam_amd revision Revision Number
BankAccountUniqueID
ArchObjectNumber fclm_bam_amd objnr Val. Obj. No.
CompanyCode fclm_bam_amd bukrs Value
BankAccountCurrency fclm_bam_amd waers Transaction Currency
BankAccountDescription _AccountTextInCurrentLang BankAccountDescription
BankCountry fclm_bam_amd banks Bank Ctry/Rgn. Key
CountryName _BankCountryText CountryName Country
Bank fclm_bam_amd bankl House Bank
BankNumber _Bank Bank Bank Number
BankName _Bank BankName Bank Name
BankGroup _Bank BankNetworkGrouping
BankNetworkGrouping _Bank BankNetworkGrouping
Region _Bank Region Venue Region
Branch _Bank Branch Repository branch
BankBranch _Bank BankBranch
CityName _Bank CityName Name
ShortCityName _Bank ShortCityName
StreetName _Bank StreetName Text
ShortStreetName _Bank ShortStreetName
AddressID _Bank AddressID Ship-to address
PostalCode
POBox
HouseNumber
SWIFTCode _Bank SWIFTCode SWIFT/BIC
BankIntraStatRuleExternalID _BankIntraStaRule IntraBkStaRuleExternalID
BankAccount fclm_bam_amd acc_num Account Number
BankAccountType fclm_bam_amd acc_type_id Account Type
ValidityStartDate fclm_bam_amd valid_from Validity Start Time
ValidityEndDate fclm_bam_amd valid_to Validity End Time
IBAN fclm_bam_amd iban IBAN House Bank
BankAccountStatus fclm_bam_amd status Workflow Status
BankAccountRevisionStatus _BankAccountRevision BankAccountRevisionStatus
CompanyCodeName _CompanyCode CompanyCodeName Company Name
CompanyCodeCountry _CompanyCode Country Venue: Ctry/Reg
CompanyCodeCurrency _CompanyCode Currency Valuation Crcy
ProfitCenter fclm_bam_amd prctr Profit Centers
ControllingArea _CompanyCode ControllingArea Controlling Area
BusinessArea fclm_bam_amd gsber Business Area
Segment fclm_bam_amd segment Segment number
BankAccountHolderName fclm_bam_amd beneficial Account Holder
BankContactPerson fclm_bam_amd bank_contact General Contact
BankRelationshipManager fclm_bam_amd rel_manager Relationship Manager
CompanyContactPerson fclm_bam_amd company_contact Contact Person
BankAccountSupervisor fclm_bam_amd account_supervisor Account Supervisor
CreatedByUser fclm_bam_amd created_by Version Created By
OpenedByUser fclm_bam_amd opened_by Opened By
LastChangedByUser fclm_bam_amd changed_by User Name
ReviewedByUser fclm_bam_amd reviewed_by Reviewed By
ClosedByUser fclm_bam_amd closed_by Closed By
IsMarkedForDeletion fclm_bam_amd deleted_flag TRUE
DomesticCutOffTime fclm_bam_amd cutoff_time_d Cut-Off Domestic
CrossBorderCutOffTime fclm_bam_amd cutoff_time_c Cut-Off Cross Border
PlannedClosingDate fclm_bam_amd planned_closing_date Planned Closing
CreationDate fclm_bam_amd created_at_dat Created On
CreationTime fclm_bam_amd created_at_tim Created At
OpenedDate fclm_bam_amd opened_at_dat Opened On
OpenedTime fclm_bam_amd opened_at_tim Opened At
LastChangeDate fclm_bam_amd changed_at_dat Changed On
LastChangeTime fclm_bam_amd changed_at_tim Changed At
ClosedDate fclm_bam_amd closed_at_dat Closed On
ClosedTime fclm_bam_amd closed_at_tim Closed At
BankAccountLastReviewDate _SingleAccountReviewLog BankAccountLastReviewDate
BankControlKey fclm_bam_amd control_key Control Key
IBANValidityStartDate fclm_bam_amd iban_valid_from IBAN Valid From
BankStatementCheckTime fclm_bam_amd bs_upload_time Check Time
BankStatementImportMethod fclm_bam_amd edbsum EoD
IntraDayBankStateImportMethod fclm_bam_amd idbsum Intraday
BankStatementImportChannel fclm_bam_amd importing_channel Importing Channel
EndOfDayIsReconciled fclm_bam_amd reconcile_endofday Reconcile End-of-Day
IsUploadOfIntraDayStatement fclm_bam_amd upload_bs_flag Intraday Upload
PaymentTransactionTypeGroup fclm_bam_amd vgtyp Trans. Type
ProcessingStatus procstat_act Process Status
DifferenceStatus balstat_act Difference Sts
SerialNumberStatus serstat_act Serial No. Sts
ReconciliationStatus reconstat_act Reconcil. Sts
ExpectedInterval exp_number Interval
ControlFrequency exp_rhyth Interval Unit
FactoryCalendar calendar Workdays only
DisplayItem sort_idx
DifferenceAmount amt_diff Difference Amt
LeadingCashPoolID fclm_bam_amd cash_pool_id Cash Pool Name
LeadingCashPoolType _LeadingCashPoolMgmt CashPoolType Cash Pool Type
LeadingCashPoolSrvcPrvdr _LeadingCashPoolMgmt CashPoolSrvcPrvdr Service Provider
LeadingCashPoolDesc _LeadingCashPoolMgmt CashPoolDesc
ParticipantCashPoolID fclm_bam_amd cash_pool_id_participant Cash Pool Name
MaxTargetAmount fclm_bam_amd cash_pool_target_amt_max Target Balance
MinTargetAmount fclm_bam_amd cash_pool_target_amt_min Min. Target Amount
MinTransferAmount fclm_bam_amd cash_pool_transfer_amt_min Min.Transfer Amount
MaxTransferAmount fclm_bam_amd cash_pool_transfer_amt_max Max.Transfer Amount
Note fclm_bam_amd sgtxt Text
ParticipantCashPoolType _ParticipantCashPoolMgmt CashPoolType Cash Pool Type
ParticipantCashPoolSrvcPrvdr _ParticipantCashPoolMgmt CashPoolSrvcPrvdr Service Provider
ParticipantCashPoolDesc _ParticipantCashPoolMgmt CashPoolDesc
LeadingPaymentMethod fclm_bam_amd payment_method_l Payment Method
ParticipantPaymentMethod fclm_bam_amd payment_method_p Payment Method
PaymentServiceProvider payment_service_provider Paymnt Serv. Provid.
CashToleranceGroup fclm_bam_amd tolerance_group Tolerance Group
IntradayIsReconciled fclm_bam_amd reconcile_intraday Reconcile Intraday
BkStmntEndOfDayIsReconciled fclm_bam_amd reconcile_bs_endofday
IntraBkStaRuleExternalID fclm_bam_amd ext_rule_id Intraday Stmts Rule
BankAccountChangeRequestStatus _BankAccRequested BankAccountChangeRequestStatus
CashPoolCurrency fclm_bam_amd waers Transaction Currency
PlanningLevel fclm_bam_amd planning_level Planning Level
BankStmntReconciliationGrp fclm_bam_amd bsr_group Bank Statement Group
BankAcctWorkflowNote
OpenNewBankAccountRequest open_request_id Request ID
IHBAccountHolder fclm_bam_amd ihb_servicer IHB Servicer
BankAccountCharacteristic fclm_bam_amd acct_charc_id
BankStmntReconciliationGrpName _BankStmntRecnclnGrpText BankStmntReconciliationGrpName
BankAccountAction _BankAccountRevision BankAccountAction
BankStatementPostingType _BankAccountSetting BankStatementPostingType
BankStatementTransferMode _BankAccountSetting BankStatementTransferMode
BankStatementForwardingType _BankAccountSetting BankStatementForwardingType
IntradayBankStatementPosting _BankAccountSetting IntradayBankStatementPosting
InternalAPIBalanceIsEnabled _BankAccountSetting InternalAPIBalanceIsEnabled
ExcelImportBalanceIsEnabled _BankAccountSetting ExcelImportBalanceIsEnabled
ManualInputBalanceIsEnabled _BankAccountSetting ManualInputBalanceIsEnabled
IntraBankStatementTransferMode _BankAccountSetting IntraBankStatementTransferMode
BankAccountActivatedSequence
BankAcctWorkflowNoteFieldCtrl
BankRelationshipSecIsHidden
CashPoolSecIsHidden
OverdraftLimitSecIsHidden
PaymentApproverSecIsHidden
BkCorrespncSecIsHidden
BkCorrespncFldrSecIsHidden
HsBkAcctConnectivitySctnIsHidn
MultiLanguageDescSecIsHidden
AttachmentSecIsHidden
AccountDocumentSecIsHidden
PowerOfAttorneySectionIsHidden
ActnActvtRevisionIsEnbld
BankAcctClosingDateFieldCtrl
ActnRevertClosingInSystIsEnbld
BankAcctPostingBlkDateFldCtrl
ActnRetToPreviousStatusIsEnbld
BkAcctBackActnNoteFldCtrl
BankAccountActionActivation
ActionRestoreIsEnabled
BankAccountIsModifyInRestore
BankAccountRevisionIsNotZero
HouseBank _minHouseBankAccount HouseBank House Bank
HouseBankAccount _minHouseBankAccount HouseBankAccount House Bank Account
GLAccount _minHouseBankAccount GLAccount General Ledger
PostingBlockDate
ChartOfAccounts _CompanyCode ChartOfAccounts Node Class
_Bank _Bank
_Address _Bank _Address
_CompanyCode _CompanyCode
_ProfitCenterText _ProfitCenterText
_BusinessAreaText _BusinessAreaText
_SegmentText _SegmentText
_ControllingArea _ControllingArea
_BankAccountType _BankAccountType
_BankAccountStatus _BankAccountStatus
_RevisionForActivatingText _RevisionForActivatingText
_RevisionForVerifyText _RevisionForVerifyText
_BankAccInWorkFlowText _BankAccInWorkFlowText
_BankAccountRevision _BankAccountRevision
_AccountTextInCurrentLang _AccountTextInCurrentLang
_BankAccountSupervisor _BankAccountSupervisor
_CompanyContactPerson _CompanyContactPerson
_CreatedBy _CreatedBy
_OpenedBy _OpenedBy
_ClosedBy _ClosedBy
_ReviewedBy _ReviewedBy
_LastChangedBy _LastChangedBy
_GeneralContact _GeneralContact
_BankRelationshipManager _BankRelationshipManager
_IHBAccountHolder _IHBAccountHolder
_LeadingCashPoolMgmt _LeadingCashPoolMgmt
_LeadingPaymentMethod _LeadingPaymentMethod
_ParticipantCashPoolMgmt _ParticipantCashPoolMgmt
_ParticipantPaymentMethod _ParticipantPaymentMethod
_BkAcctPaytSrvcPrvdr _BkAcctPaytSrvcPrvdr
_CompanyCountryText _CompanyCountryText
_RegionText _RegionText
_BankAccountSetting _BankAccountSetting
_ContractType _ContractType
_HouseBankCount _HouseBankCount
_BankAccountApplication _BankAccountApplication
_AccountSignature _AccountSignature
_AccountOverDraftLimit _AccountOverDraftLimit
_AccountConnectivePath _AccountConnectivePath
_AccountText _AccountText
_CorrespondenceFolder _CorrespondenceFolder

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 I_BankAccountTP.
-- 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.

CREATE VIEW I_BankAccountTP AS
SELECT
  Account.acc_id AS BankAccountInternalID,
  Account.revision AS BankAccountRevision,
  concat( acc_id , revision ) AS BankAccountUniqueID,
  Account.objnr AS ArchObjectNumber,
  Account.bukrs AS CompanyCode,
  Account.waers AS BankAccountCurrency,
  _AccountTextInCurrentLang.BankAccountDescription AS BankAccountDescription,
  Account.banks AS BankCountry,
  _BankCountryText.CountryName AS CountryName,
  Account.bankl AS Bank,
  _Bank.Bank AS BankNumber,
  _Bank.BankName AS BankName,
  _Bank.BankNetworkGrouping AS BankGroup,
  _Bank.BankNetworkGrouping AS BankNetworkGrouping,
  _Bank.Region AS Region,
  _Bank.Branch AS Branch,
  _Bank.BankBranch AS BankBranch,
  _Bank.CityName AS CityName,
  _Bank.ShortCityName AS ShortCityName,
  _Bank.StreetName AS StreetName,
  _Bank.ShortStreetName AS ShortStreetName,
  _Bank.AddressID AS AddressID,
  _Bank._Address.PostalCode AS PostalCode,
  _Bank._Address.POBox AS POBox,
  _Bank._Address.HouseNumber AS HouseNumber,
  _Bank.SWIFTCode AS SWIFTCode,
  _BankIntraStaRule.IntraBkStaRuleExternalID AS BankIntraStatRuleExternalID,
  Account.acc_num AS BankAccount,
  Account.acc_type_id AS BankAccountType,
  Account.valid_from AS ValidityStartDate,
  Account.valid_to AS ValidityEndDate,
  Account.iban AS IBAN,
  Account.status AS BankAccountStatus,
  _BankAccountRevision.BankAccountRevisionStatus AS BankAccountRevisionStatus,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _CompanyCode.Country AS CompanyCodeCountry,
  _CompanyCode.Currency AS CompanyCodeCurrency,
  Account.prctr AS ProfitCenter,
  _CompanyCode.ControllingArea AS ControllingArea,
  Account.gsber AS BusinessArea,
  Account.segment AS Segment,
  Account.beneficial AS BankAccountHolderName,
  Account.bank_contact AS BankContactPerson,
  Account.rel_manager AS BankRelationshipManager,
  Account.company_contact AS CompanyContactPerson,
  Account.account_supervisor AS BankAccountSupervisor,
  Account.created_by AS CreatedByUser,
  Account.opened_by AS OpenedByUser,
  Account.changed_by AS LastChangedByUser,
  Account.reviewed_by AS ReviewedByUser,
  Account.closed_by AS ClosedByUser,
  Account.deleted_flag AS IsMarkedForDeletion,
  Account.cutoff_time_d AS DomesticCutOffTime,
  Account.cutoff_time_c AS CrossBorderCutOffTime,
  Account.planned_closing_date AS PlannedClosingDate,
  Account.created_at_dat AS CreationDate,
  Account.created_at_tim AS CreationTime,
  Account.opened_at_dat AS OpenedDate,
  Account.opened_at_tim AS OpenedTime,
  Account.changed_at_dat AS LastChangeDate,
  Account.changed_at_tim AS LastChangeTime,
  Account.closed_at_dat AS ClosedDate,
  Account.closed_at_tim AS ClosedTime,
  _SingleAccountReviewLog.BankAccountLastReviewDate AS BankAccountLastReviewDate,
  Account.control_key AS BankControlKey,
  Account.iban_valid_from AS IBANValidityStartDate,
  Account.bs_upload_time AS BankStatementCheckTime,
  Account.edbsum AS BankStatementImportMethod,
  Account.idbsum AS IntraDayBankStateImportMethod,
  Account.importing_channel AS BankStatementImportChannel,
  Account.reconcile_endofday AS EndOfDayIsReconciled,
  Account.upload_bs_flag AS IsUploadOfIntraDayStatement,
  Account.vgtyp AS PaymentTransactionTypeGroup,
  procstat_act AS ProcessingStatus,
  balstat_act AS DifferenceStatus,
  serstat_act AS SerialNumberStatus,
  reconstat_act AS ReconciliationStatus,
  exp_number AS ExpectedInterval,
  exp_rhyth AS ControlFrequency,
  calendar AS FactoryCalendar,
  sort_idx AS DisplayItem,
  amt_diff AS DifferenceAmount,
  Account.cash_pool_id AS LeadingCashPoolID,
  _LeadingCashPoolMgmt.CashPoolType AS LeadingCashPoolType,
  _LeadingCashPoolMgmt.CashPoolSrvcPrvdr AS LeadingCashPoolSrvcPrvdr,
  _LeadingCashPoolMgmt.CashPoolDesc AS LeadingCashPoolDesc,
  Account.cash_pool_id_participant AS ParticipantCashPoolID,
  Account.cash_pool_target_amt_max AS MaxTargetAmount,
  Account.cash_pool_target_amt_min AS MinTargetAmount,
  Account.cash_pool_transfer_amt_min AS MinTransferAmount,
  Account.cash_pool_transfer_amt_max AS MaxTransferAmount,
  Account.sgtxt AS Note,
  _ParticipantCashPoolMgmt.CashPoolType AS ParticipantCashPoolType,
  _ParticipantCashPoolMgmt.CashPoolSrvcPrvdr AS ParticipantCashPoolSrvcPrvdr,
  _ParticipantCashPoolMgmt.CashPoolDesc AS ParticipantCashPoolDesc,
  Account.payment_method_l AS LeadingPaymentMethod,
  Account.payment_method_p AS ParticipantPaymentMethod,
  payment_service_provider AS PaymentServiceProvider,
  Account.tolerance_group AS CashToleranceGroup,
  Account.reconcile_intraday AS IntradayIsReconciled,
  Account.reconcile_bs_endofday AS BkStmntEndOfDayIsReconciled,
  Account.ext_rule_id AS IntraBkStaRuleExternalID,
  _BankAccRequested.BankAccountChangeRequestStatus AS BankAccountChangeRequestStatus,
  Account.waers AS CashPoolCurrency,
  Account.planning_level AS PlanningLevel,
  Account.bsr_group AS BankStmntReconciliationGrp,
  cast('' as fclm_bam_bankacctworkflownote ) AS BankAcctWorkflowNote,
  open_request_id AS OpenNewBankAccountRequest,
  Account.ihb_servicer AS IHBAccountHolder,
  Account.acct_charc_id AS BankAccountCharacteristic,
  _BankStmntRecnclnGrpText.BankStmntReconciliationGrpName AS BankStmntReconciliationGrpName,
  _BankAccountRevision.BankAccountAction AS BankAccountAction,
  _BankAccountSetting.BankStatementPostingType AS BankStatementPostingType,
  _BankAccountSetting.BankStatementTransferMode AS BankStatementTransferMode,
  _BankAccountSetting.BankStatementForwardingType AS BankStatementForwardingType,
  _BankAccountSetting.IntradayBankStatementPosting AS IntradayBankStatementPosting,
  _BankAccountSetting.InternalAPIBalanceIsEnabled AS InternalAPIBalanceIsEnabled,
  _BankAccountSetting.ExcelImportBalanceIsEnabled AS ExcelImportBalanceIsEnabled,
  _BankAccountSetting.ManualInputBalanceIsEnabled AS ManualInputBalanceIsEnabled,
  _BankAccountSetting.IntraBankStatementTransferMode AS IntraBankStatementTransferMode,
  cast( '0000' as fclm_bam_activate_sequence preserving type ) AS BankAccountActivatedSequence,
  cast( 0 as sadl_gw_dynamic_field_property preserving type ) AS BankAcctWorkflowNoteFieldCtrl,
  cast('' as boolean preserving type ) AS BankRelationshipSecIsHidden,
  cast('' as boolean preserving type ) AS CashPoolSecIsHidden,
  cast('' as boolean preserving type ) AS OverdraftLimitSecIsHidden,
  cast('' as boolean preserving type ) AS PaymentApproverSecIsHidden,
  cast('' as boolean preserving type ) AS BkCorrespncSecIsHidden,
  cast('' as boolean preserving type ) AS BkCorrespncFldrSecIsHidden,
  cast('' as boolean preserving type ) AS HsBkAcctConnectivitySctnIsHidn,
  cast('' as boolean preserving type ) AS MultiLanguageDescSecIsHidden,
  cast('' as boolean preserving type ) AS AttachmentSecIsHidden,
  cast('' as boolean preserving type ) AS AccountDocumentSecIsHidden,
  cast( '' as boolean preserving type ) AS PowerOfAttorneySectionIsHidden,
  cast( '' as boolean preserving type ) AS ActnActvtRevisionIsEnbld,
  cast( 0 as sadl_gw_dynamic_field_property preserving type ) AS BankAcctClosingDateFieldCtrl,
  cast( '' as boolean preserving type ) AS ActnRevertClosingInSystIsEnbld,
  cast( 0 as sadl_gw_dynamic_field_property preserving type ) AS BankAcctPostingBlkDateFldCtrl,
  cast( '' as boolean preserving type ) AS ActnRetToPreviousStatusIsEnbld,
  cast( 0 as sadl_gw_dynamic_field_property preserving type ) AS BkAcctBackActnNoteFldCtrl,
  cast( '' as fclm_bam_contype_control) AS BankAccountActionActivation,
  cast( '' as boolean preserving type ) AS ActionRestoreIsEnabled,
  cast( '' as boolean preserving type ) AS BankAccountIsModifyInRestore,
  cast( '' as boolean preserving type ) AS BankAccountRevisionIsNotZero,
  _minHouseBankAccount.HouseBank AS HouseBank,
  _minHouseBankAccount.HouseBankAccount AS HouseBankAccount,
  _minHouseBankAccount.GLAccount AS GLAccount,
  cast( '' as fclm_bam_posting_block_date ) AS PostingBlockDate,
  _CompanyCode.ChartOfAccounts AS ChartOfAccounts,
  _Bank._Address AS _Address
FROM fclm_bam_amd AS Account
LEFT OUTER JOIN I_BankAccHouseBankAccTP AS _AccountConnectivePath ON BankAccountInternalID = _AccountConnectivePath.BankAccountInternalID AND BankAccountRevision = _AccountConnectivePath.BankAccountRevision  -- association [0..*]
LEFT OUTER JOIN I_BankAccLimitTP AS _AccountOverDraftLimit ON BankAccountInternalID = _AccountOverDraftLimit.BankAccountInternalID AND BankAccountRevision = _AccountOverDraftLimit.BankAccountRevision  -- association [0..*]
LEFT OUTER JOIN I_BankAccSignatureTP AS _AccountSignature ON BankAccountInternalID = _AccountSignature.BankAccountInternalID AND BankAccountRevision = _AccountSignature.BankAccountRevision  -- association [0..*]
LEFT OUTER JOIN I_BankAccTextTP AS _AccountText ON BankAccountInternalID = _AccountText.BankAccountInternalID AND BankAccountRevision = _AccountText.BankAccountRevision  -- association [0..*]
LEFT OUTER JOIN I_BkAcctSpcfcCorrespncFldrTP AS _CorrespondenceFolder ON BankAccountInternalID = _CorrespondenceFolder.BankAccountInternalID AND BankAccountRevision = _CorrespondenceFolder.BankAccountRevision  -- association [0..*]
LEFT OUTER JOIN I_SingleHouseBankAccount AS _SingleHouseBankAccount ON BankAccountInternalID = _SingleHouseBankAccount.BankAccountInternalID AND BankAccountRevision = _SingleHouseBankAccount.BankAccountRevision  -- association [0..1]
LEFT OUTER JOIN I_Bank_2 AS _Bank ON BankCountry = _Bank.BankCountry AND Bank = _Bank.BankInternalID  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ProfitCenter = _ProfitCenterText.ProfitCenter AND ControllingArea = _ProfitCenterText.ControllingArea AND _ProfitCenterText.ValidityStartDate <= $session.system_date AND _ProfitCenterText.ValidityEndDate >= $session.system_date AND _ProfitCenterText.Language = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON BusinessArea = _BusinessAreaText.BusinessArea AND _BusinessAreaText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SegmentText AS _SegmentText ON Segment = _SegmentText.Segment AND _SegmentText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _BankCountryText ON BankCountry = _BankCountryText.Country AND _BankCountryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CountryText AS _CompanyCountryText ON CompanyCodeCountry = _CompanyCountryText.Country  -- association [0..*]
LEFT OUTER JOIN I_BankAccountTypeText AS _BankAccountType ON BankAccountType = _BankAccountType.BankAccountType  -- association [0..*]
LEFT OUTER JOIN I_BankAccountTextRev AS _AccountTextInCurrentLang ON BankAccountInternalID = _AccountTextInCurrentLang.BankAccountInternalID AND BankAccountRevision = _AccountTextInCurrentLang.BankAccountRevision AND _AccountTextInCurrentLang.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BankAccountStatusStdVH AS _BankAccountStatus ON BankAccountStatus = _BankAccountStatus.BankAccountStatus  -- association [0..1]
LEFT OUTER JOIN I_BankAccRevision AS _BankAccountRevision ON BankAccountInternalID = _BankAccountRevision.BankAccountInternalID AND BankAccountRevision = _BankAccountRevision.BankAccountRevision  -- association [0..1]
LEFT OUTER JOIN I_BankAccHasRev AS _RevisionForActivating ON BankAccountInternalID = _RevisionForActivating.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_BankAccountWithVerification AS _RevisionForVerify ON BankAccountInternalID = _RevisionForVerify.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_BankAccInWorkFlow AS _BankAccInWorkFlow ON BankAccountInternalID = _BankAccInWorkFlow.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_BankAccountRequested AS _BankAccRequested ON BankAccountInternalID = _BankAccRequested.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_BankAccHasRevText AS _RevisionForActivatingText ON WithToBeActivatedRevision = _RevisionForActivatingText.WithToBeActivatedRevision AND _RevisionForActivatingText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BankAccHasRevText AS _RevisionForVerifyText ON WithToBeVerifiedRevision = _RevisionForVerifyText.WithToBeActivatedRevision AND _RevisionForVerifyText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BankAccInWorkflowText AS _BankAccInWorkFlowText ON InWorkflowProcess = _BankAccInWorkFlowText.InWorkflowProcess AND _BankAccInWorkFlowText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN E_BankAccount AS _E_BankAccount ON BankAccountInternalID = _E_BankAccount.BankAccountInternalID AND BankAccountRevision = _E_BankAccount.BankAccountRevision  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _BankAccountSupervisor ON BankAccountSupervisor = _BankAccountSupervisor.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CompanyContactPerson ON CompanyContactPerson = _CompanyContactPerson.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _CreatedBy ON CreatedByUser = _CreatedBy.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _OpenedBy ON OpenedByUser = _OpenedBy.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ClosedBy ON ClosedByUser = _ClosedBy.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ReviewedBy ON ReviewedByUser = _ReviewedBy.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _LastChangedBy ON LastChangedByUser = _LastChangedBy.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _GeneralContact ON BankContactPerson = _GeneralContact.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BankRelationshipManager ON BankRelationshipManager = _BankRelationshipManager.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _IHBAccountHolder ON IHBAccountHolder = _IHBAccountHolder.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_CashPoolMgmt AS _LeadingCashPoolMgmt ON LeadingCashPoolID = _LeadingCashPoolMgmt.CashPoolName AND _LeadingCashPoolMgmt.CashPoolIsDeleted <> 'X'  -- association [0..1]
LEFT OUTER JOIN I_CashPoolMgmt AS _ParticipantCashPoolMgmt ON ParticipantCashPoolID = _ParticipantCashPoolMgmt.CashPoolName AND _ParticipantCashPoolMgmt.CashPoolIsDeleted <> 'X'  -- association [0..1]
LEFT OUTER JOIN I_PaymentMethod AS _ParticipantPaymentMethod ON ParticipantPaymentMethod = _ParticipantPaymentMethod.PaymentMethod AND BankCountry = _ParticipantPaymentMethod.Country  -- association [0..1]
LEFT OUTER JOIN I_PaymentMethod AS _LeadingPaymentMethod ON LeadingPaymentMethod = _LeadingPaymentMethod.PaymentMethod AND BankCountry = _LeadingPaymentMethod.Country  -- association [0..1]
LEFT OUTER JOIN I_BkAcctPaytSrvcPrvdr AS _BkAcctPaytSrvcPrvdr ON PaymentServiceProvider = _BkAcctPaytSrvcPrvdr.PaymentServiceProvider  -- association [0..1]
LEFT OUTER JOIN I_BankAccountLatestReview AS _SingleAccountReviewLog ON BankAccountInternalID = _SingleAccountReviewLog.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_RegionText AS _RegionText ON BankCountry = _RegionText.Country AND region = _RegionText.Region AND _RegionText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BankStmntRecnclnGrpText AS _BankStmntRecnclnGrpText ON BankStmntReconciliationGrp = _BankStmntRecnclnGrpText.BankStmntReconciliationGrp AND _BankStmntRecnclnGrpText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BankAccountSetting AS _BankAccountSetting ON BankAccountInternalID = _BankAccountSetting.BankAccountInternalID  -- association [0..1]
LEFT OUTER JOIN I_BankAcctContrTypeVH AS _ContractType ON BankAccountType = _ContractType.BankAccountType  -- association [0..1]
LEFT OUTER JOIN I_BankAccountOpeningRequest AS _BankAccountApplication ON OpenNewBankAccountRequest = _BankAccountApplication.BankAccountChangeRequest AND _BankAccountApplication.BankAccountOpeningRequestUUID is not null  -- association [0..1]
LEFT OUTER JOIN I_HouseBankCount AS _HouseBankCount ON _HouseBankCount.CompanyCode = CompanyCode AND _HouseBankCount.BankCountry = BankCountry AND _HouseBankCount.BankInternalID = Bank  -- association [0..1]
LEFT OUTER JOIN I_SglHsBkAcctInBankAccount AS _minHouseBankAccount ON BankAccountInternalID = _minHouseBankAccount.BankAccountInternalID AND CompanyCode = _minHouseBankAccount.CompanyCode AND BankAccountRevision = _minHouseBankAccount.BankAccountRevision  -- association [0..1]
LEFT OUTER JOIN I_BankIntraStaRule AS _BankIntraStaRule ON BankCountry = _BankIntraStaRule.BankCountry AND Bank = _BankIntraStaRule.BankInternalID  -- association [0..1]
;