---
id: object/codeunit/1206
type: object
title: Codeunit 1206 "Pmt Export Mgt Gen. Jnl Line"
summary: Codeunit 1206 "Pmt Export Mgt Gen. Jnl Line" in Base Application (Microsoft.Bank.Payment). 6 public procedures, 4 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: 5f33a8baeb7c788425fbdd9a771056262775080c0685ca5684c75c7937109fa1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/Payment/PmtExportMgtGenJnlLine.Codeunit.al
    title: src/Layers/W1/BaseApp/Bank/Payment/PmtExportMgtGenJnlLine.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ru
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1206
name: Pmt Export Mgt Gen. Jnl Line
namespace: Microsoft.Bank.Payment
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:
  - ru
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 13
  events: 4
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Codeunit 1206 "Pmt Export Mgt Gen. Jnl Line"

> Codeunit 1206 "Pmt Export Mgt Gen. Jnl Line" in Base Application (Microsoft.Bank.Payment). 6 public procedures, 4 events. Present since at least BC23, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Gen. Journal Line |
| Permissions | TableData "Vendor Ledger Entry" = rm, TableData "Gen. Journal Line" = rm, TableData "Payment Export Data" = rimd |

## Events published

- `OnBeforeInsertPmtExportDataJnlFromGenJnlLine(var PaymentExportData: Record "Payment Export Data"; GenJournalLine: Record "Gen. Journal Line"; GeneralLedgerSetup: Record "General Ledger Setup")` (integration): Integration event raised before inserting payment export data from general journal line. This event allows customization of payment export data before it is processed.
- `OnBeforeCreateGenJnlDataExchLine(DataExch: Record "Data Exch."; GenJournalLine: Record "Gen. Journal Line"; LineNo: Integer; var LineAmount: Decimal; var TotalAmount: Decimal; var TransferDate: Date; var Handled: Boolean)` (integration): Integration event raised before creating general journal data exchange line. This event allows customization of data exchange line creation for payment export.
- `OnBeforePaymentExport(BalAccountNo: Code[20]; DataExchEntryNo: Integer; LineCount: Integer; TotalAmount: Decimal; TransferDate: Date; var Handled: Boolean)` (integration): Integration event raised before payment export operation starts. This event allows customization of the payment export process before file generation.
- `OnCheckGenJnlLine(GenJournalLine: Record "Gen. Journal Line")` (integration): Integration event raised during general journal line validation for payment export. This event allows external extensions to perform additional validation on journal lines.

## Procedures

- `ExportJournalPaymentFileYN(var GenJnlLine: Record "Gen. Journal Line")`: Exports journal payment file with user confirmation if lines were previously exported. This procedure prompts the user if re-exporting already exported journal lines.
- `ExportJournalPaymentFile(var GenJnlLine: Record "Gen. Journal Line")`: Exports journal payment file without user prompts. This procedure validates and exports general journal lines for payment processing.
- `ExportGenJnlLine(var GenJnlLine: Record "Gen. Journal Line"; var CreditTransferRegister: Record "Credit Transfer Register")`: Processes general journal lines for export to payment file format. This procedure creates data exchange entries and credit transfer entries for payment export.
- `PreparePaymentExportDataJnl(var TempPaymentExportData: Record "Payment Export Data" temporary; GenJnlLine: Record "Gen. Journal Line"; DataExchEntryNo: Integer; LineNo: Integer)`: Prepares payment export data from general journal line information. This procedure populates payment export data with vendor, employee, and bank account details for payment processing.
- `EnableExportToServerTempFile(SilentServerMode: Boolean; ServerFileExtension: Text[3])`: Enables export to server temporary file with specified settings. This procedure configures payment export to save files on the server instead of client download.
- `GetServerTempFileName(): Text[1024]`: Retrieves the server temporary file name for payment export. This procedure returns the path of the temporary file created on the server during payment export.

Plus 3 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 81 "Gen. Journal Line"](../table/81.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 1210 "Payment Export Mgt"](../codeunit/1210.md) (5 calls: `CreateGenJnlDataExchLine → CreatePaymentLines`, `EnableExportToServerTempFile → EnableExportToServerTempFile`, `ExportGenJnlLine → CreateDataExch`, …)
- [Codeunit 1211 "Payment Export Gen. Jnl Check"](../codeunit/1211.md) (1 call: `CheckGenJnlLine → (object)`)
- [Codeunit 1278 "Exp. User Feedback Gen. Jnl."](../codeunit/1278.md) (1 call: `ExportGenJnlLine → (object)`)

## Across versions

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

## Countries that replace it

[RU](../../localizations/ru.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: "Pmt Export Mgt Gen. Jnl Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
