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.

LineTypeRecord
10Descriptive record
21Detail record
31Detail record
41Detail record
57File total record

The three record types

  1. A Descriptive record (0): who sends the file, their bank, their user ID and the processing date.
  2. One Detail record (1) per payment.
  3. 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
PositionsFieldContent
1Record type0
2-18Blank
19-20Reel sequence number01
21-23User's financial institutionYour bank's three-letter abbreviation, for example WBC, NAB, CBA, ANZ
24-30Blank
31-56Name of user supplying fileYour name as your bank holds it
57-62User identification numberThe six-digit Direct Entry User ID (APCA number) your bank gave you
63-74Description of entriesFor example PAYROLL
75-80Date to be processedDDMMYY
81-120Blank
Type 1: Detail record
PositionsFieldContent
1Record type1
2-8BSBnnn-nnn, with the hyphen
9-17Account numberRight-justified, blank-filled
18IndicatorBlank, or N, T, W, X, Y
19-20Transaction code50 credit, 53 pay, 13 debit, ...
21-30AmountIn cents, zero-filled
31-62Title of accountReceiver's account name
63-80Lodgement referenceWhat the receiver sees on their statement
81-87Trace BSBYour BSB, nnn-nnn
88-96Trace account numberYour account number
97-112Name of remitterYour name as the receiver sees it
113-120Amount of withholding taxIn cents, usually zeros
Type 7: File total record
PositionsFieldContent
1Record type7
2-8BSB format filler999-999
9-20Blank
21-30File net total amountDifference between the credit and debit totals, in cents
31-40File credit total amountIn cents
41-50File debit total amountIn cents
51-74Blank
75-80Count of detail recordsNumber of type 1 records
81-120Blank

Four things to look at first

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.

Check an ABA file

Layouts from the Westpac, NAB, Bank of Queensland and ANZ file guides. Your bank may have rules of its own.