Bank import type codes

Use this function to define type codes in BAI2 bank import files as credit or debit so that files can be imported and automatically matched to open items. This function is one of several that are required to complete the advanced bank statement import setup process.

When importing bank transactions using the BAI2 file format, the import process cannot identify whether a transaction code is a credit or a debit. The type codes are included in the Account identifier record (Record type 03) and Transaction detail (Record type 16) of the BAI2 file. If a code is not defined with the appropriate sign, the bank statement file is not imported and is listed as an error in the import log file. Note that only type codes related to a transaction detail record are blocked while importing the file, if not defined.

You can create multiple sets of Bank type codes, either one for all banks or one per bank. The list below shows which type codes can be defined for the advanced bank statement import process. However, always check with the bank to ensure you are using the correct type codes.

101-399: Credit summary and detail type codes

401-699: Debit summary and detail type codes

700-799: Loan summary and detail type codes

See Understanding the BAI2 file format for more information.

(missing or bad snippet)

Understanding the BAI2 file format

The BAI2 file is a standard bank statement format developed by the Bank Administration Institute (BAI) and used for electronic cash management balance reporting. It is mostly used in the United Kingdom and the United States.

A BAI2 file contains multiple record types in a specific structure. Each file contains one File header (type 01) and one File trailer (type 99), but can contain multiple groups. Each group has a Group header (type 02) and a Group trailer (type 98). Within each group pair, there can be multiple Accounts (types 03 and 49) that contain the Transaction detail (type 16) followed by single or multiple Continuation lines (type 88).

The image below highlights the nesting structure of a BAI2 file that contains one group and two accounts.

The first two digits of each line followed by a comma identify the Record type.

On the lines for Transaction detail (highlighted in purple), the type code follows the Record type 16, separated by a comma. In this example, one Transaction detail line has a 195 type code and the second Transaction detail line has a 495 type code.

Example how how the XML file is structured for BAI2 file types

Prerequisites

Refer to the documentation on Implementation.

Actions

Select Create to define bank type codes when importing BAI2 bank transaction files or click the Edit icon to modify an existing bank type code.

Error messages

In addition to the generic error messages, the following messages can appear during the entry:

Format and segment definition have to be of the same file type

The file types defined in the bank import segment definition and the linked bank import format must be the same.

Mandatory field '$1$' in segment '$2$' does not exist. Please check the according format and segment definition.

Review and update the segment definition.

Tables used

The following tables are implemented by the function :

Table

Table description

BSIIMPTC [BSITC]

Bank import type codes