---
id: object/codeunit/1210
type: object
title: Codeunit 1210 "Payment Export Mgt"
summary: Codeunit 1210 "Payment Export Mgt" in Base Application (Microsoft.Bank.Payment). 8 public procedures, 5 events. Present since at least BC23, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 94ac68aec7b899b320b01a48c0c2fc17be8245a7fa541660a3ed9337b50cb2b1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/Payment/PaymentExportMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Bank/Payment/PaymentExportMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9073
object_type: codeunit
object_id: 1210
name: Payment Export Mgt
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:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 21
  events: 5
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 7
  implements: 0
---

# Codeunit 1210 "Payment Export Mgt"

> Codeunit 1210 "Payment Export Mgt" in Base Application (Microsoft.Bank.Payment). 8 public procedures, 5 events. Present since at least BC23, still in BC30, changed in BC28.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Gen. Journal Line" = rm, TableData "Data Exch." = rimd, TableData "Data Exch. Field" = rimd, TableData "Payment Export Data" = rimd |

## Events published

- `OnProcessColumnMappingOnBeforeCheckLength(var ValueAsString: Text[250]; DataExchFieldMapping: Record "Data Exch. Field Mapping"; DataExchColumnDef: Record "Data Exch. Column Def")` (integration): Integration event raised before checking the length of a mapped value during payment export processing. Enables custom length validation logic for export field values.
- `OnOnProcessColumnMappingOnBeforeFormatToText(var ValueAsString: Text[250]; ValueAsDestType: Variant; DataExchDef: Record "Data Exch. Def"; DataExchColumnDef: Record "Data Exch. Column Def"; var IsHandled: Boolean)` (integration): Integration event raised before formatting a value to text during column mapping in payment export. Enables custom text formatting logic for export values.
- `OnBeforeCheckLength(Value: Text; FieldRef: FieldRef; DataExchDef: Record "Data Exch. Def"; DataExchColumnDef: Record "Data Exch. Column Def"; var IsHandled: Boolean)` (integration): Integration event raised before checking the length of an export value against column definition limits. Enables custom length validation for payment export fields.
- `OnBeforeFormatToText(ValueToFormat: Variant; DataExchDef: Record "Data Exch. Def"; DataExchColumnDef: Record "Data Exch. Column Def"; var ResultText: Text[250]; var IsHandled: Boolean)` (integration): Integration event raised before formatting a value to text for payment export. Enables custom formatting logic for export field values.
- `OnBeforeCastToDestinationType(var DestinationValue: Variant; SourceValue: Variant; DataExchColumnDef: Record "Data Exch. Column Def"; Multiplier: Decimal; var IsHandled: Boolean)` (integration): Integration event raised before casting a value to its destination data type during payment export. Enables custom type conversion logic for export values.

## Procedures

- `CreateDataExch(var DataExch: Record "Data Exch."; BankAccountCode: Code[20])`: Creates a new data exchange record for payment export.
- `CreatePaymentLines(var PaymentExportData: Record "Payment Export Data")`: Creates payment lines in the data exchange from payment export data.
- `ProcessColumnMapping(DataExch: Record "Data Exch."; RecRef: RecordRef; LineNo: Integer; DataExchLineDefCode: Code[20]; TableID: Integer)`: Processes column mapping for payment export data exchange.
- `ProcessColumnMapping(var DataExch: Record "Data Exch."; RecRef: RecordRef; var DataExchFlowFieldGrBuff: Record "Data Exch. FlowField Gr. Buff."; LineNo: Integer; DataExchLineDefCode: Code[20]; TableID: Integer)`: Processes column mapping for payment export data exchange with FlowField grouping support.
- `ProcessColumnMapping(var DataExch: Record "Data Exch."; RecRef: RecordRef; var DataExchFlowFieldGrBuff: Record "Data Exch. FlowField Gr. Buff."; LineNo: Integer; DataExchLineDefCode: Code[20]; TableID: Integer; var TempDataExchField: Record "Data Exch. Field" temporary)`: Processes column mapping for payment export data exchange.
- `ExportToFile(EntryNo: Integer)`: Exports payment data to a file using the specified data exchange entry.
- `EnableExportToServerTempFile(NewMode: Boolean; NewExtension: Text[3])`: Enables export to server temporary file mode instead of client download.
- `GetServerTempFileName(): Text[1024]`: Returns the temporary file name created on the server during export operations.

Plus 8 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 419 "File Management"](../codeunit/419.md) (1 call: `ExportToServerTempFile → ServerTempFileName`)
- [Codeunit 47 "StringConversionManagement"](../codeunit/47.md) (1 call: `ProcessColumnMapping → GetPaddedString`)

## Called by

- [Codeunit 1206 "Pmt Export Mgt Gen. Jnl Line"](../codeunit/1206.md) (5 calls: `CreateGenJnlDataExchLine → CreatePaymentLines`, `EnableExportToServerTempFile → EnableExportToServerTempFile`, `ExportGenJnlLine → CreateDataExch`, …)
- [Codeunit 1207 "Pmt Export Mgt Vend Ledg Entry"](../codeunit/1207.md) (5 calls: `CreateVendLedgerDataExchLine → CreatePaymentLines`, `EnableExportToServerTempFile → EnableExportToServerTempFile`, `ExportVendLedgerEntry → CreateDataExch`, …)
- [Codeunit 1208 "Pmt Export Mgt Cust Ledg Entry"](../codeunit/1208.md) (5 calls: `CreateCustLedgerDataExchLine → CreatePaymentLines`, `EnableExportToServerTempFile → EnableExportToServerTempFile`, `ExportCustLedgerEntry → CreateDataExch`, …)
- [Codeunit 1269 "Export Mapping"](../codeunit/1269.md) (1 call: `OnRun → ProcessColumnMapping`)
- [Codeunit 1270 "Exp. Launcher Gen. Jnl."](../codeunit/1270.md) (1 call: `OnRun → CreateDataExch`)
- [Codeunit 1274 "Exp. Mapping Gen. Jnl."](../codeunit/1274.md) (1 call: `OnRun → ProcessColumnMapping`)
- [Codeunit 20106 "AMC Bank Exp. CT Launcher"](../codeunit/20106.md) (1 call: `OnRun → CreateDataExch`)

## Recent changes

- 2026-07-13 [#9073 Data Exchange Definition export performance improvement](../../changes/bcapps/9073.md) (main, BC30, performance)

## Across versions

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

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