Working on MT940 importer
martin at aquamaniac.de
Fri Sep 12 12:16:10 CDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
On Friday 12 September 2003 10:46, Best, Jan-Pascal van wrote:
> A problem I'm encountering is that every bank seems to have
> its own ideas about what an MT940 file is supposed to look like.
At least I can confirm this :-)
Having written a SWIFT-MT940 parser myself (for the project OpenHBCI which is
used by GNUCash in Germany) I know how hard it is to get such a parser to
work with "every" bank.
Now my parser has reached a state where it at least works with most banks we
have encountered in Germany so far (which are quite a lot).
The problem is not even the format (which is BTW well described in the HBCI
documentation at http://www.hbci-kernel.de), but some banks do not even
follow the formal guidelines of this SWIFT standard.
E.g. some banks create correct day reports (including opening and closing
balance) as expected, while others create a single report containing
statements for multiple days...
There are even banks which use "@" as a filling character (this was formerly
used as a blank instead of #32 in very old tape archives) :-)
My parser is written in C, but I would like to offer my assistance anyway, at
least I know one or the other thing about SWIFT MT940 which might be of
But since I'm absolutely unfamiliar with yacc/lex I can't provide any code
(except C, that is)
LibChipcard - http://www.libchipcard.de
OpenHBCI - http://www.openhbci.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the gnucash-devel