Workspace / Technical guides
Technical guidesBAI2 file structure
Follow a cash report from its file header to its final control trailer.
Interpret the record
Record 01 opens the transmission. Each 02 group owns one or more accounts starting at 03. Transaction details begin with 16 and remain in that account until 49.
Control procedure
A 98 trailer closes the group. Compare its account count to the number of account sections before evaluating the file-level 99 record.
Worked example
01,021000021,TREASURY,260604,1130,1,,,2/
02,,REPORTING,1,260604,1130,USD,2/
03,OPERATING-001,USD,010,100000,,,/
88,015,123000,,,/
16,195,25000,V,260604,1200,BK-21,INV-1042,Customer settlement/
88,ORIG CO NAME=NORTH SUPPLY, LTD YOUR REF=INV-1042
88,TRN=SET-21 ID=1042 ENTRY DESCR=PAYMENT ORIG BANK=DEMO/
16,495,2000,S,1000,500,500,BK-22,FEE-01,Service charge/
49,250000,7/| Excel column | First transaction |
|---|---|
| Account | OPERATING-001 |
| Currency | USD |
| Signed_Amount | 250.00 |
| Reference | INV-1042 |
| Remittance_Info | Customer settlement ORIG CO NAME=NORTH SUPPLY, LTD YOUR REF=INV-1042 TRN=SET-21 ID=1042 ENTRY DESCR=PAYMENT ORIG BANK=DEMO |