StmtRecon
MT940 fields and statement controls

Extract counterparty bank, account and name from MT940 :86:

In the illustrated profile, ?30 carries the bank identifier, ?31 carries the account and ?32–?33 carry the name. The bank profile determines whether the account value is an IBAN or a domestic number.

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?30DEMODEFF?31DE89370400440532013000?32EXAMPLE ?33SUPPLY
:62F:C261130EUR125,00

Field anatomy

Field or pathMeaning in this fileType or formatERP or Excel import risk
?30 / ?31Bank / account identifiersProfile-defined textTreating ?30 as the IBAN assigns the wrong party.
?32 / ?33Two name segmentsOrdered textTrimming internal spaces fuses two words.

Root cause and ERP fix

  1. A BIC appears in the account column. Trace ?30 and ?31 to distinct ERP fields.
  2. A domestic account lost its leading zeros. Preserve the raw identifier before validating its scheme.
  3. A vendor match failed on a shortened name. Reassemble both segments and confirm the account independently.

Inspect with the MIT parser

Save the sample as mt940-counterparty-30-33.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-counterparty-30-33.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 part = code => fields.filter(f => f.code === code).map(f => f.text).join('');
console.log(part('30'), part('31'), part('32') + part('33'));
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.