---
title: "Codeunit 386 Reverse Payment Rec. Journal"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/386-reverse-payment-rec-journal/
type: codeunit
id: 386
name: "Reverse Payment Rec. Journal"
app: "Base Application"
namespace: Microsoft.Bank.Reconciliation
versions: "21-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/386-reverse-payment-rec-journal/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 386 Reverse Payment Rec. Journal

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/386-reverse-payment-rec-journal/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Bank.Reconciliation |
| Versions | 21-28 |
| Source file | Bank/Reconciliation/ReversePaymentRecJournal.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetGLRegisterNo | (Record Bank Acc. Reconciliation) | - | public | 21-28 | - | - |
| RunReversalWizard | (var Record Posted Payment Recon. Hdr) | - | public | 21-28 | - | - |
| UnapplyEntry | (var Record Payment Rec. Related Entry, Boolean) | - | public | 21-28 | - | - |
| ReverseEntry | (var Record Payment Rec. Related Entry, Boolean) | - | public | 21-28 | - | - |
| ErrorIfEntryIsNotReversable | (Record Cust. Ledger Entry) | - | public | 21-28 | - | - |
| ErrorIfEntryIsNotReversable | (Record Vendor Ledger Entry) | - | public | 21-28 | - | - |
| ErrorIfEntryIsNotReversable | (Record Employee Ledger Entry) | - | public | 21-28 | - | - |
| ErrorIfEntryIsNotReversable | (Boolean, Text, Integer, Integer, Code[10], Enum Gen. Journal Document Type, Decimal, Code[20], Code[50], Code[10]) | - | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterReverseEntry | () | 22-28 | - | - |
| Integration event | OnBeforeReverseEntry | (var Record Payment Rec. Related Entry) | 22-28 | - | - |
| Integration event | OnErrorIfEntryIsNotReversableOnBeforeEntryIsReversable | (var Boolean) | 22-28 | - | - |
| Integration event | OnCopyPaymentRecJournalFromPostedPaymentReconLinesOnAfterInsertBankAccReconciliationLine | (var Record Posted Payment Recon. Line, var Record Bank Acc. Reconciliation Line) | 22-28 | - | - |
| Integration event | OnAfterCreateCopyPaymentRecJournal | (var Record Posted Payment Recon. Hdr, var Record Bank Acc. Reconciliation) | 23-28 | - | - |
| Integration event | OnBeforeEntryIsReversable | (Code[10], Enum Gen. Journal Document Type, Decimal, Code[20], Code[50], Code[10], var Boolean, var Boolean) | 27-28 | - | - |
| Integration event | OnInsertRelatedAndAppliedEntriesOnAfterFilterCustLedgerEntry | (var Record Cust. Ledger Entry, var Record Bank Account Ledger Entry) | 28 | - | - |
| Integration event | OnInsertRelatedAndAppliedEntriesOnAfterFilterVendorLedgerEntry | (var Record Vendor Ledger Entry, var Record Bank Account Ledger Entry) | 28 | - | - |
| Integration event | OnInsertRelatedAndAppliedEntriesOnAfterFilterEmployeeLedgerEntry | (var Record Employee Ledger Entry, var Record Bank Account Ledger Entry) | 28 | - | - |
| Integration event | OnAfterInsertRelatedAndAppliedEntriesOfGLRegister | (var Record G/L Register, var Record Posted Payment Recon. Hdr, var Integer) | 28 | - | - |
| Integration event | OnAfterInsertRelatedAndAppliedEntries | (Code[20], Code[20], Integer, Enum Gen. Journal Account Type, var Record Bank Account Ledger Entry) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
