Map MT940 NTRF, NCHK, NCHG, NMSC and NDDT
The four-character identifier after the amount in :61: describes the transaction type. Use the separate debit or credit mark for direction and the bank’s code table to choose the clearing workflow.
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:261130C5,00NTRFTYPE-0//B-0
:86:Transfer
:61:261130D5,00NCHKTYPE-1//B-1
:86:Check
:61:261130D5,00NCHGTYPE-2//B-2
:86:Charges
:61:261130D5,00NMSCTYPE-3//B-3
:86:Miscellaneous
:61:261130D5,00NDDTTYPE-4//B-4
:86:Direct debit
:62F:C261130EUR85,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| NTRF / NCHK | Transfer / cheque | Four characters | Using type to infer sign misstates outgoing transfers. |
| NCHG / NMSC / NDDT | Charges / miscellaneous / direct debit | Four characters | A broad NMSC default can expense principal. |
Root cause and ERP fix
- A transfer rule assumes every NTRF is a credit. Read the sign independently.
- Charges and miscellaneous entries share one expense rule. Separate NCHG and investigate NMSC using the advice.
- The direct debit reporting option changed. Confirm the bank’s NDDT mapping before assigning mandates.
Inspect with the MIT parser
Save the sample as mt940-transaction-type-identifiers.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-transaction-type-identifiers.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 lines = text.split(/\r?\n/).filter(line => line.startsWith(':61:'));
const types = lines.map(line => line.match(/\d,[0-9]*(N[A-Z]{3})/)[1]);
console.table(types.map((type, i) => [type, report.transactions[i].amount]));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