---
id: object/codeunit/179
type: object
title: Codeunit 179 "Reversal-Post"
summary: Codeunit 179 "Reversal-Post" in Base Application (Microsoft.Finance.GeneralLedger.Reversal). 2 public procedures, 6 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 246e6a1bbe729860a6c8243de7778f17bef46a2e91630025ca378b1bd394eddc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/GeneralLedger/Reversal/ReversalPost.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/GeneralLedger/Reversal/ReversalPost.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 179
name: Reversal-Post
namespace: Microsoft.Finance.GeneralLedger.Reversal
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 8
  events: 6
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 2
  implements: 0
---

# Codeunit 179 "Reversal-Post"

> Codeunit 179 "Reversal-Post" in Base Application (Microsoft.Finance.GeneralLedger.Reversal). 2 public procedures, 6 events. Present since at least BC23, still in BC30.

Base Application · Microsoft.Finance.GeneralLedger.Reversal · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/GeneralLedger/Reversal/ReversalPost.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Reversal Entry |

## Events published

- `OnBeforeGLRegPostingReportPrint(var ReportID: Integer; ReqWindow: Boolean; SystemPrinter: Boolean; var GLRegister: Record "G/L Register"; var Handled: Boolean)` (integration): Integration event raised before printing the G/L register posting report, allowing customization of report settings.
- `OnBeforeOnRun(var ReversalEntry: Record "Reversal Entry")` (integration): Integration event raised before starting the reversal posting process, allowing preprocessing of reversal entries.
- `OnRunOnBeforeDeleteAll(var ReversalEntry: Record "Reversal Entry"; Number: Integer)` (integration): Integration event raised before deleting reversal entries after successful posting.
- `OnRunOnAfterConfirm(var ReversalEntry: Record "Reversal Entry"; var Handled: Boolean; PrintRegister: Boolean; HideDialog: Boolean)` (integration): Integration event raised after user confirmation, allowing custom handling of the reversal process.
- `OnRunOnAfterCreateTxt(PrintRegister: Boolean; var Txt: Text[1024]; WarningText: Text[250])` (integration): Integration event raised after creating confirmation text, allowing customization of user messages.
- `OnRunOnBeforeCheckEntries(var ReversalEntry: Record "Reversal Entry")` (integration): Integration event raised before validating reversal entries, allowing custom pre-validation logic.

## Procedures

- `SetPrint(NewPrintRegister: Boolean)`: Sets whether to print the G/L register after posting reversal entries.
- `SetHideDialog(NewHideDialog: Boolean)`: Sets whether to hide confirmation dialogs during reversal posting.

## Triggers

OnRun

## Relations

- runs on [Table 179 "Reversal Entry"](../table/179.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 17 "Gen. Jnl.-Post Reverse"](../codeunit/17.md) (1 call: `OnRun → Reverse`)

## Called by

- [Table 179 "Reversal Entry"](../table/179.md) (3 calls: `ReverseEntries → (object)`, `ReverseEntries → SetHideDialog`, `ReverseEntries → SetPrint`)
- [Page 183 "Reverse Transaction Entries"](../page/183.md) (2 calls: `Post → (object)`, `Post → SetPrint`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Reversal-Post")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
