Importing MT940 Statements from Millenium Bank

importing a Millenium bank statement

The online accounting program mKsiegowa.pl can import bank statements from the Millenium bank online banking - Business account.


Saving the file in online banking

A bank statement can be saved to a file in the MT940 format in the online banking system for the Business account.


General rules for the MT940 statement file

  • MT940 statements are contained in text files with the STA extension
  • Individual lines in the file are separated by the newline character <CR><LF> (Hex 0D 0A)
  • The code page of the STA file is CP852
  • Each MT940 statement consists of a header with the statement number and the opening balance, blocks containing individual operations, and a footer containing the closing and available balances.
  • Subfields in the :86: field begin with the less-than character <
  • If subfields in the :86: field are empty, the whole subfield, including its tag, may be omitted from the file

Information about MT940 statements

An MT940 statement is generated for current accounts, term deposits and loan accounts.

Depending on frequency, four types of statements may be made available:

  • daily
  • weekly
  • fortnightly
  • monthly

A statement is generated only if, during the period covered by the statement, there was at least one operation changing the account balance. The exception is the monthly statement, which is created regardless of whether there were any operations on the account in the given month.

A change of frequency from shorter to longer (e.g. from daily to weekly) can be made on any day.

A change of frequency from longer to shorter (e.g. from fortnightly to daily):

  • Because weekly (fortnightly) MT 940 reports cover the period from Tuesday to Monday (of the following week, or the one after that in the case of fortnightly reports), to preserve the continuity of information in the reports, the report frequency should be changed from weekly (fortnightly) to daily on a Tuesday, or, if that is a non-working day, on the first working day after the Tuesday holiday.
  • A change of report frequency from monthly to daily or weekly (fortnightly) should be made on the first working day of the month.

If the statement definition is changed to a different frequency, the numbering starts again (from number one.)


Importing the statement into mKsiegowa.pl

The file is imported in the mKsiegowa.pl program in the Accounting -> Import Bank Transactions module.

In the Select bank transactions data source field, select MT940 file (Millenium).


Sample file format

Polish character encoding: Windows-1250.

:20:1720446 :25: PL30116022020000001100000000
:28C:143 :NS:22FIRMA 1 Właściciel rachunku
:NS:23Rachunek bieżący - KORPORACJE :60F:C160619PLN1000,01
:61:1606200620CN100,00NTRFNONREF// PRZELEW PRZYCHODZĄCY
:86:010<00PRZELEW PRZYCHODZĄCY
<100517100001 <20PRZELEW PRZYCHODZĄCY
<21Z R-ku:78101111110000000088888888
<22ZAPŁATA ZA FAK.FV 1/6/2005
<23Kontynuacja tytułu operacji
<24
<25
<26
<27FIRMA 2 kontrahent
<28Ulica Kwiatowa 15
<2900-001 WARSZAWA
<3010111111
<310000000088888888
<32FIRMA 2
<3878101111110000000088880000
<63REF60061111111200517100001
:61:1606200620DN200,00NTRFNONREF// PRZELEW WYCHODZĄCY
:86:012<00PRZELEW WYCHODZĄCY
<100517100004Page 6 of 8
<20PRZELEW WYCHODZĄCY
<21Na R-k:05113011111100000000005555
<22FIRMA 3
<236’05
<24FAKTURA FK/6/05
<25
<26
<27FIRMA 3
<28
<29
<3011301111
<311100000000005555
<32 FIRMA 3
<3805113011111100000000005555
<63REF60061111111200517100002
:62F:C160620PLN1005,01
:64:C160620PLN1005,01
:86:Wyciąg nr: 143 z dnia: 2005-06-30