---
id: object/codeunit/1373
type: object
title: Codeunit 1373 "Batch Posting Print Mgt."
summary: Codeunit 1373 "Batch Posting Print Mgt." in Base Application (Microsoft.Foundation.BatchProcessing). 5 public procedures, 7 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: e024e892b18e0e48461a591af50f9abf6c320a8f3fb79cdbf630036cc7e3f09e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/BatchProcessing/BatchPostingPrintMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Foundation/BatchProcessing/BatchPostingPrintMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/au
    - localization/nz
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1373
name: Batch Posting Print Mgt.
namespace: Microsoft.Foundation.BatchProcessing
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
source_major: "29"
obsolete: null
countries:
  - au
  - nz
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 16
  events: 7
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 6
  implements: 0
---

# Codeunit 1373 "Batch Posting Print Mgt."

> Codeunit 1373 "Batch Posting Print Mgt." in Base Application (Microsoft.Foundation.BatchProcessing). 5 public procedures, 7 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC27.

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

## Events published

- `OnAfterPrintSalesDocument(RecRef: RecordRef)` (integration)
- `OnAfterPrintPurchaseDocument(RecRef: RecordRef)` (integration)
- `OnBeforeGLRegPostingReportPrint(var ReportID: Integer; ReqWindow: Boolean; SystemPrinter: Boolean; var GLRegister: Record "G/L Register"; var Handled: Boolean)` (integration)
- `OnBeforePrintDocument(ReportUsage: Option; RecVar: Variant; var IsHandled: Boolean)` (integration)
- `OnBeforePrintDocumentOnAfterBatchPosting(var RecRef: RecordRef; PostingResult: Boolean)` (integration)
- `OnBeforePrintCustReceiptReport(GLReg: Record "G/L Register"; GenJnlTemplate: Record "Gen. Journal Template"; GeneralLedgerSetup: Record "General Ledger Setup"; var IsHandled: Boolean)` (integration)
- `OnBeforePrintVendorReceiptReport(GLReg: Record "G/L Register"; GenJnlTemplate: Record "Gen. Journal Template"; GeneralLedgerSetup: Record "General Ledger Setup"; var IsHandled: Boolean)` (integration)

## Event subscriptions

- PrintDocumentOnAfterBatchPosting subscribes to Codeunit "Batch Processing Mgt." OnAfterBatchProcessing

## Procedures

- `PrintSalesDocument(RecRef: RecordRef)`
- `PrintPurchaseDocument(RecRef: RecordRef)`
- `PrintJournal(RecRef: RecordRef)`
- `PrintDocument(ReportUsage: Enum "Report Selection Usage"; RecVariant: Variant; PrintViaJobQueue: Boolean; ReportOutputType: Enum "Job Queue Report Output Type")`
- `SchedulePrintJobQueueEntry(RecVar: Variant; ReportId: Integer; ReportOutputType: Option)`

Plus 3 local procedures.

## Triggers

OnRun

## 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 1380 "Batch Processing Mgt."](../codeunit/1380.md) (1 call: `PrintDocumentOnAfterBatchPosting → GetBooleanParameter`)
- [Codeunit 453 "Job Queue - Enqueue"](../codeunit/453.md) (1 call: `SchedulePrintJobQueueEntry → (object)`)

## Called by

- [Codeunit 232 "Gen. Jnl.-Post+Print"](../codeunit/232.md) (1 call: `PrintJournal → PrintJournal`)
- [Codeunit 234 "Gen. Jnl.-B.Post+Print"](../codeunit/234.md) (1 call: `Code → PrintJournal`)
- [Codeunit 250 "Gen. Jnl.-Post via Job Queue"](../codeunit/250.md) (1 call: `OnRun → PrintJournal`)
- [Codeunit 6785 "Withholding Tax Mgmt."](../codeunit/6785.md) (1 call: `PrintWHTSlips → SchedulePrintJobQueueEntry`)
- [Codeunit 88 "Sales Post via Job Queue"](../codeunit/88.md) (1 call: `OnRun → PrintSalesDocument`)
- [Codeunit 98 "Purchase Post via Job Queue"](../codeunit/98.md) (1 call: `OnRun → PrintPurchaseDocument`)

## Across versions

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

## Countries that replace it

[AU](../../localizations/au.md), [NZ](../../localizations/nz.md)

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: "Batch Posting Print Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
