MT940 import: swift header

Christian Bjerre Nielsen christian at bjerrenielsen.dk
Wed Apr 9 00:19:43 EDT 2008


Hi,

The SWIFT message standard defines header information in block 1 (the basic
header block), 2 (the application header block) and the optional block 3
(User header block). The message content is in block 4 (the text block),
which starts with the following sequence:

{1:...}{2:...}{4:
:xx:...
-}
{5:...}

Block 5 the trailer block. 

The message content is enclosed from the second line until the "-}". So for
normal import operations you only this, i.e. skip the first line in the text
file with the SWIFT message.

Many banks and other SWIFT users only supply the text block to their users.

As long as  you do not need any information regarding routing, MAC, ... Then
you can safely skip the first line and any lines after the "-}".

So it's more a question of import only or verication of sender and then
import in GNUCASH.

Regards, 
  Christian 

-----Original Message-----
From: gnucash-devel-bounces at gnucash.org
[mailto:gnucash-devel-bounces at gnucash.org] On Behalf Of Martin Preuss
Sent: 8. april 2008 22:18
To: gnucash-devel at gnucash.org
Subject: Re: MT940 import: swift header

Hi,

On Dienstag, 8. April 2008, Damien Perritaz wrote:
[...]
> 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
[...]

Normally AqBanking accepts the SWIFT header (since YellowNet uses them,
too).

Could you maybe send me one of your files in question?


Regards
Martin
--
"Things are only impossible until they're not"

Martin Preuss - http://www.aquamaniac.de/ AqBanking -
http://www.aqbanking.de/ LibChipcard - http://www.libchipcard.de/
_______________________________________________
gnucash-devel mailing list
gnucash-devel at gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list