MT940 import: swift header

Damien Perritaz damien.perritaz at bluewin.ch
Tue Apr 8 10:28:02 EDT 2008


hello,

i am a new user of gnucash (version 2.2.4 on windows xp) for personal 
accounting. i import my banking data using MT940 files with two 
different banks. one file (A) is well imported and the other (B) not. i 
have noticed the difference between the two files. file A has no swift 
header and begins directly with ":20:". file B has a swift header in the 
same format as described in different places 
(http://srd.tcg-net.com/Documentation/MT940/MT940_sample.htm, 
martin.hinner.info/bankconvert/swift_mt940_942.pdf). the swift header 
consists in one line with up to four fields; the last field (preceded by 
"{4:") begins on the following line with the usual ":20" label. note 
that this header (and closing footer "-}") generally appear multiple times.

is this problem already known? (someone already posted on similar 
subject some month ago, but without acceptable solution: 
http://lists.gnucash.org/pipermail/gnucash-devel/2006-September/018601.html).

is it possible to modify the source to take this swift header into account?

for information, it is possible to modify file B by hand by removing 
headers (and footers) to make the import possible. however this solution 
is not satisfactory...

regards


d


More information about the gnucash-devel mailing list