BAI File Structure
The BAI file is a text file with a .bai file extension.
The fields in the individual BAI transaction codes will be mapped to the appropriate tables and columns in your environment. The file is then loaded into a buffer file in Business Central.
You will normally obtain a document version (e.g. pdf) of the bank statement which will be used for manual reconciliation as you can read the contents of the BAI more easily in the pdf version of the bank statement.
The BAI file can contain statement information for multiple bank accounts.
The BAI file follows a specific structure:
Record Code | BAI Type Code | Description |
---|---|---|
01 | The File Header, which includes the following:
|
|
02 | The Group Header, which includes the following:
|
|
03 | Header for one particular bank account. The record contains summary information, which can include the following
|
|
16 | Contains the detailed transaction information. There are hundreds of type codes as defined by the Banking Administration Institute. These codes and descriptions may vary from bank to bank. Examples are as follows:
|
|
16 | 49 | Trailer record. |
16 | 98 | Trailer record. |
16 | 99 | Trailer record. |