cancel
Showing results for 
Search instead for 
Did you mean: 

how to read MT940 file

Former Member
0 Kudos

Hi Experts,

I am trying to create a source data type in XI. I am receiving a file which is a bank statement MT940 format.

As there is no common separator in this format, how to slip the different contents in to fields and subfields.

I need to send this file to sap system but before that i need to do a simple lookup which will give me the destination.So please let me know how to create a structure in Xi which can read the MT 940 file, even if we use FCC there should be a common separator based on which we can split in to different fields.

Please help me in creating a DT which can receive the MT940 file .

I am giving the sample MT940 file here :

your inputs will be very helpful

Regards,,

Sri

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member192295
Active Contributor
0 Kudos

Hi,

We can read easily with below statement. At source end take one string variable and write below statement at source end meanwhile receiver also.

At source end:

source.fieldNames a

source.endSeparator nl

ignoreRecordsetName true

At Target end:

Target.fieldNames b

target.endSeparator nl

ignoreRecordsetName true

In MT 940 we can't recognized columns, each row is taken as string and read it and target side make same logic and past it. This format can understand SAP and we can upload data through standard transaction code FEBP.

or

Through bypass scenario also we can transfer data from source to SAP system specified folder, for bypass scenario find below link for configuration

without IR

bypass with IR

Former Member
0 Kudos
Former Member
0 Kudos
prateek
Active Contributor
0 Kudos

U may transer the complete content as a single field in FCC. Now this way you will have a single field with complete data. Then use java mapping to break the structure into required target format based on specifications provided here

http://martin.hinner.info/bankconvert/swift_mt940_942.pdf

Regards,

Prateek

Former Member
0 Kudos

As Mentioned in the comments above can we read entire content of the input txt file in a single element (Feild) in our source structure .

I tried doing this but i am geting only the first line.

Can anybody guide me regarding the appropritate steps to be written in FCC , so that entire file can be read in one feild.

Regards,

Sri