Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

MT940 without block / Curly brackets

Help
MZI
2014-06-05
2014-06-05
  • MZI
    MZI
    2014-06-05

    Hi ,
    i have MT940 message in .sta file from my bank.
    there are no curly brackets used to define blocks as in examples used here.

    message :

    :20:9812011110001284
    :21:232
    :25:5500/1110001284
    :28:188/00001
    :60F:C981201CZK3247613,27
    :61:981202C71393,00NMSCI 000686//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1585?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?31000027-1937680257?32TEST?60-?61-?62-?6
    3-
    :61:981202C281631,00NMSCI 000757//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1098?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?310146646381?32TEST?60-?61-?62-?63-
    :61:981202C2629,00NMSCI 000784//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1502?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?316596710237?32EURO PRIM, SPOL. S R?60-?
    61-?62-?63-
    :61:981202C7425,00NMSCI 000785//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1511?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?316596710237?32TEST?60-?61-?62-?63-
    :61:981202C3713,00NMSCI 000787//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1518?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?316596710237?32TEST?60-?61-?62-?63-
    :61:981202C54656,00NMSCI 000792//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1169?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?310030740771?32TEST?60-?61-?62-?63-
    :61:981202C904180,00NMSCI 000795//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1142?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?310030740771?32TEST?60-?61-?62-?63-
    :61:981202C6196,00NMSCI 000983//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1521?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?310167044101?32TEST?60-?61-?62-?63-
    :61:981202C133132,40NMSCI 001225//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000308?22VS000009
    8035?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?310001505211?32TEST?60-?61-?62-?63-
    :61:981202C47317,00NMSCI 001524//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1227?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?300100?311108545621?32TEST?60-?61-?62-?63-
    :61:981202C5386,00NMSCI 002293//I-GE-CC
    :86:020?20DOMACI PLATBA?00HLADKA PLATBA?21KS0000000008?22VS000980
    1499?23SS0000000000?24BANKOVNI VYPIS 232?25-?26-?27-?28-?29DEBETN
    I VALUTA 30.11.98?303400?310090404163?32TEST?60-?61-?62-?63-
    :62F:C981201CZK4765271,67
    :64:C981201CZK3247613,27
    :65:C981202CZK4765271,67
    :20:0509292000061194
    :21:009
    :25:5500/2000061194
    :28:000/00001
    :60F:C050929EUR348614,14
    :61:050929D26,79NMSCP0509290021OP08//G-FT-CHAR
    :86:010?20 POPLATEK ZAHR. PLATBY?21P0509290021OP08?22KURZ 1
    ,00000000?23PUV EUR 11478,69?24BANKOVNI VYPIS 009?25?26?27
    10026986?28?30NDEANOKK?31/60070237649?32NORSKE SKOG BRUCK?33FABRI
    KSGASSE 10?38/60070447641?60-?61-?62-?63-
    :61:050929D11478,69NMSCP0509290021OP08// GE-FT
    :86:010?20 ZAHRANICNI PLATBA?21P0509290021OP08?22KURZ 1,000
    00000?23PUV EUR 11478,69?24BANKOVNI VYPIS 009?25POPL. EUR
    0,00?26POPL.UCET 2000061194?2710026986?28?30NDEANOKK
    ?31/60070447641?32NORSKE SKOG BRUCK?33FABRIKSGASSE 10?38/60070237
    649?60-?61-?62-?63-
    :62F:C050929EUR337108,66
    :64:C050929EUR337108,66
    :65:C050929EUR337108,66

     
  • MZI
    MZI
    2014-06-05

    and the question is should I use parser to read this message.

    Thank you
    Michal

     
  • Hi Michal,

    That's not a full message, it's just the text block (block 4). You should complete that with dummy headers and block boundaries to be able to parse it. We'll consider adding API for such scenarios in the future.

    Regards

     
  • MZI
    MZI
    2014-06-05

    Hi Sebastian,

    thank you , that really helped me a lot. I didnt realize this is just block 4. As you suggested I added "dummy header" from example I found here and now I am able to parse message an transform it to my model.

    Thank you !