---
id: object/codeunit/10090-ca
type: object
title: Codeunit 10090 "Export Payments (ACH)" (CA)
summary: Codeunit 10090 "Export Payments (ACH)" (CA) in the CA country layer (Microsoft.Bank.Payment). 11 public procedures, 12 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - ca layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 867735b0b4d549f8c56cb804d9c4c7f4d747c665ad461a085e1ae3be064be888
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Bank/Payment/ExportPaymentsACH.Codeunit.al
    title: src/Layers/NA/BaseApp/Local/Bank/Payment/ExportPaymentsACH.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ca
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 10090
name: Export Payments (ACH)
namespace: Microsoft.Bank.Payment
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: CA
counts:
  fields: 0
  procedures: 36
  events: 12
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 10090 "Export Payments (ACH)" (CA)

> Codeunit 10090 "Export Payments (ACH)" (CA) in the CA country layer (Microsoft.Bank.Payment). 11 public procedures, 12 events. Introduced in BC29, still in BC30.

CA country layer · Microsoft.Bank.Payment · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/NA/BaseApp/Local/Bank/Payment/ExportPaymentsACH.Codeunit.al) · facts from BC29

An object of the [CA localization](../../localizations/ca.md), not part of W1.

## Events published

- `OnBeforeCreateFileHeader(var BankAccount: Record "Bank Account"; Justification: Option; FileDate: Date; FileTime: Time; RecordLength: Integer; BlockingFactor: Integer; ReferenceCode: Code[10]; var FileHeaderRec: Text[250]; var IsHandled: Boolean)` (integration)
- `OnBeforeAddFedIDToPrnString(var PrnString: Text[250]; FedID: Text[30]; StartPos: Integer; Length: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeAddToPrnString(var PrnString: Text[251]; SubString: Text[250]; StartPos: Integer; Length: Integer; Justification: Option Left,Right; Filler: Text[1]; var IsHandled: Boolean)` (integration)
- `OnBeforeAddTransactionCodeToDetailRec(CustomerBankAccount: Record "Customer Bank Account"; VendorBankAccount: Record "Vendor Bank Account"; AcctType: Text[1]; DemandCredit: Boolean; var DetailRec: Text[250]; var IsHandled: Boolean)` (integration)
- `OnBeforeExportOffSettingDebit(var TraceNo: Integer; var Result: Code[30]; var IsHandled: Boolean)` (integration)
- `OnBeforeEndExportBatch(ServiceClassCode: Code[10]; var IsHandled: Boolean)` (integration)
- `OnBeforeStartExportBatch(ServiceClassCode: Code[10]; EntryClassCode: Code[10]; SourceCode: Code[10]; SettleDate: Date; var IsHandled: Boolean)` (integration)
- `OnExportElectronicPaymentOnAfterExportPrnString(VendorBankAccount: Record "Vendor Bank Account"; var DetailRec: Text[250]; var ExportFile: File; var NoOfRec: Integer; RecordLength: Integer)` (integration)
- `OnExportElectronicPaymentOnAfterSetAccountTypeAndNo(GenJournalLine: Record "Gen. Journal Line"; var AcctType: Text[1]; var AcctNo: Code[20])` (integration)
- `OnExportElectronicPaymentOnAfterSetTransitAndBankAccountNo(GenJournalLine: Record "Gen. Journal Line"; AcctType: Text[1]; var TransitNo: Text[20]; var BankAcctNo: Text[30])` (integration)
- `OnStartExportFileOnBeforeBankAccountModify(var BankAccount: Record "Bank Account")` (integration)
- `OnBeforeStartExportBatchOnBeforeAddDataToPrnString(var BatchHeaderRec: Text[250]; ServiceClassCode: Code[10]; EntryClassCode: Code[10]; SourceCode: Code[10]; SettleDate: Date; var IsHandled: Boolean)` (integration)

## Procedures

- `StartExportFile(BankAccountNo: Code[20]; ReferenceCode: Code[10])`
- `StartExportBatch(ServiceClassCode: Code[10]; EntryClassCode: Code[10]; SourceCode: Code[10]; SettleDate: Date)`
- `ExportOffSettingDebit(): Code[30]`
- `ExportElectronicPayment(GenJnlLine: Record "Gen. Journal Line"; PaymentAmount: Decimal): Code[30]`
- `EndExportBatch(ServiceClassCode: Code[10])`
- `EndExportFile(): Boolean`
- `AddFedIDToPrnString(var PrnString: Text[250]; FedID: Text[30]; StartPos: Integer; Length: Integer)`
- `CheckDigit(DigitString: Code[20]): Boolean`
- `TransmitExportedFile(BankAccountNo: Code[20]; FName: Text)`
- `CheckVendorTransitNum(GenJnlLine: Record "Gen. Journal Line"; AccountNo: Code[20]; var Vendor: Record Vendor; var VendorBankAccount: Record "Vendor Bank Account"; CheckTheCheckDigit: Boolean)`
- `CheckVendorTransitNum(var TempEFTExportWorkset: Record "EFT Export Workset" temporary; AccountNo: Code[20]; var Vendor: Record Vendor; var VendorBankAccount: Record "Vendor Bank Account"; CheckTheCheckDigit: Boolean)`

Plus 13 local procedures.

## Triggers

OnRun

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Export Payments (ACH)")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A CA country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
