ABA file format
An ABA file, also called a Cemtex or direct entry file, is how Australian accounting and payroll software hands a batch of payments to a bank. It is plain text with one record per line, and every record is 120 characters long.
An example file, line by line
This is our sample aba-sample-valid.aba: three wage payments. The BSBs and accounts are invented.
0·················01TST·······SAMPLE·COMPANY·PTY·LTD····301500PAYROLL·····131026········································
1000-101·12345678·530000158000SAMPLE·EMPLOYEE·ONE·············WAGES·WK41········000-001123456789SAMPLE·COMPANY··00000000
1000-102987654321·530000204550SAMPLE·EMPLOYEE·TWO·············WAGES·WK41········000-001123456789SAMPLE·COMPANY··00000000
1000-103·00456789·530000099900SAMPLE·EMPLOYEE·THREE···········WAGES·WK41········000-001123456789SAMPLE·COMPANY··00000000
7999-999············000046245000004624500000000000························000003········································Spaces are shown as dots so that they can be counted; the download holds the file as it is.
| Line | Type | Record |
|---|---|---|
| 1 | 0 | Descriptive record |
| 2 | 1 | Detail record |
| 3 | 1 | Detail record |
| 4 | 1 | Detail record |
| 5 | 7 | File total record |
The three record types
- A Descriptive record (0): who sends the file, their bank, their user ID and the processing date.
- One Detail record (1) per payment.
- A File Total record (7): the totals and the number of Detail records.
Some banks' guides ask for a balancing Detail record that takes the total from your own account, so that credits and debits are equal (Bank of Queensland's does); others do not (Westpac's). The ABA file validator says which form your file has.
Field positions
Positions count from 1. Amounts are in cents, zero-filled, with no decimal point. Text is left-justified and space-filled.
Type 0: Descriptive record
| Positions | Field | Content |
|---|---|---|
| 1 | Record type | 0 |
| 2-18 | Blank | |
| 19-20 | Reel sequence number | 01 |
| 21-23 | User's financial institution | Your bank's three-letter abbreviation, for example WBC, NAB, CBA, ANZ |
| 24-30 | Blank | |
| 31-56 | Name of user supplying file | Your name as your bank holds it |
| 57-62 | User identification number | The six-digit Direct Entry User ID (APCA number) your bank gave you |
| 63-74 | Description of entries | For example PAYROLL |
| 75-80 | Date to be processed | DDMMYY |
| 81-120 | Blank |
Type 1: Detail record
| Positions | Field | Content |
|---|---|---|
| 1 | Record type | 1 |
| 2-8 | BSB | nnn-nnn, with the hyphen |
| 9-17 | Account number | Right-justified, blank-filled |
| 18 | Indicator | Blank, or N, T, W, X, Y |
| 19-20 | Transaction code | 50 credit, 53 pay, 13 debit, ... |
| 21-30 | Amount | In cents, zero-filled |
| 31-62 | Title of account | Receiver's account name |
| 63-80 | Lodgement reference | What the receiver sees on their statement |
| 81-87 | Trace BSB | Your BSB, nnn-nnn |
| 88-96 | Trace account number | Your account number |
| 97-112 | Name of remitter | Your name as the receiver sees it |
| 113-120 | Amount of withholding tax | In cents, usually zeros |
Type 7: File total record
| Positions | Field | Content |
|---|---|---|
| 1 | Record type | 7 |
| 2-8 | BSB format filler | 999-999 |
| 9-20 | Blank | |
| 21-30 | File net total amount | Difference between the credit and debit totals, in cents |
| 31-40 | File credit total amount | In cents |
| 41-50 | File debit total amount | In cents |
| 51-74 | Blank | |
| 75-80 | Count of detail records | Number of type 1 records |
| 81-120 | Blank |
Four things to look at first
- BSB: seven characters with the hyphen,
000-101, not000101. See the BSB is not in the format nnn-nnn. - User identification number (positions 57-62 of the first line): the six-digit Direct Entry User ID from your bank, not 000000. See the Direct Entry User ID is 000000.
- Line length: the first and last records end in 40 blanks, which some programs trim. See a record is not 120 characters long.
- Totals: in the sample, 0000158000 + 0000204550 + 0000099900 = 462450 cents, which line 5 holds in positions 31-40 as
0000462450.
Check a file
The ABA file validator checks line lengths, BSBs, characters and totals of your own file and names the line and positions of each problem. To see the payments as a table, use ABA file to Excel. Both only read the file.
Layouts from the Westpac, NAB, Bank of Queensland and ANZ file guides. Your bank may have rules of its own.