Map MT940 :86: evidence to camt.053 transaction paths
A structured MT940 narrative combines identifiers and purpose text that camt.053 can deliver in separate TxDtls elements. Reconcile entry totals before testing detail-level reference coverage during a parallel run.
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?00TRANSFER?20EREF+MIG-0042?21SVWZ+INV-042?32EXAMPLE SUPPLY
:62F:C261130EUR125,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| EREF+ → TxDtls/Refs/EndToEndId | Original payment reference | Identifier string | Using NtryRef joins at the wrong level. |
| SVWZ+ → TxDtls/RmtInf/Ustrd | Unstructured remittance | Repeatable text | Taking one line drops invoice allocations. |
| ?32 → TxDtls/RltdPties | Name under the applicable party role | Version-dependent party element | A fixed debtor mapping swaps parties on debits. |
Root cause and ERP fix
- The XML groups payments under one Ntry. Compare the entry amount before expanding children.
- A migration searches across the whole document. Resolve identifiers within each TxDtls.
- ERP match rates fell despite equal totals. Compare remittance, parties and references on the same booked movements.
Inspect with the MIT parser
Save the sample as mt940-structured-narrative-to-camt053-paths.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-structured-narrative-to-camt053-paths.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\d$/.test(f.code)).map(f => f.text).join('');
console.log({ endToEndId: purpose.match(/EREF\+(.+?)SVWZ\+/)[1], ustrd: purpose.split('SVWZ+')[1] });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