StmtRecon
MT940 fields and statement controls

Reassemble MT940 :86: remittance from ?20–?29

In a numbered German reporting profile, ?20 through ?29 carry successive parts of the purpose text. Joining them in source order restores identifiers that cash application would otherwise split.

Open this sample in Air-Gapped Converter

Worked bank sample

Synthetic bank data for local reconciliation.

:20:REPORT-1
:25:EUR-OPERATING
:28C:007/1
:60F:C261130EUR100,00
:61:2611301130C25,00NTRFINV-0042//BANK-841
:86:166?00SEPA CREDIT?20SVWZ+INVOICE-?210042?22/LOT-8?29/FINAL
:62F:C261130EUR125,00

Field anatomy

Field or pathMeaning in this fileType or formatERP or Excel import risk
?20Start of purposeNumbered textDropping SVWZ+ loses the purpose boundary.
?21–?29Continuation in delivery orderOptional text segmentsA separator inside INVOICE-0042 breaks the match.

Root cause and ERP fix

  1. A reference spans ?20 and ?21. Append their payloads before attempting an invoice lookup.
  2. A missing ?23 shifted an array index. Read each explicit subfield number and allow gaps.
  3. A downstream rule appended the name to the invoice key. Stop purpose extraction outside the purpose range.

Inspect with the MIT parser

Save the sample as mt940-remittance-20-29.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-remittance-20-29.sta.

import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text, { transactions: true });
const fields = report.transactions[0].subfields;
const purpose = fields.filter(f => /^2[0-9]$/.test(f.code));
console.log(purpose.map(f => f.text).join(''));
Open this sample in Air-Gapped Converter

Export a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.

npm package · SDK source · Format reference

Related MT940 fields and statement controls

Export your full workbook

Purchases are currently unavailable. Existing licenses can be activated offline.