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 ConverterWorked 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,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| ?20 | Start of purpose | Numbered text | Dropping SVWZ+ loses the purpose boundary. |
| ?21–?29 | Continuation in delivery order | Optional text segments | A separator inside INVOICE-0042 breaks the match. |
Root cause and ERP fix
- A reference spans ?20 and ?21. Append their payloads before attempting an invoice lookup.
- A missing ?23 shifted an array index. Read each explicit subfield number and allow gaps.
- 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 ConverterExport 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