---
id: object/codeunit/1711
type: object
title: Codeunit 1711 "Positive Pay Export Mgt"
summary: Codeunit 1711 "Positive Pay Export Mgt" in Base Application (Microsoft.Bank.PositivePay). 4 public procedures, 1 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: b3425a65528118393816d3c882d76be9722cf0ebe6f1e609ac13ad22b2d0b0fd
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/PositivePay/PositivePayExportMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Bank/PositivePay/PositivePayExportMgt.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: 1711
name: Positive Pay Export Mgt
namespace: Microsoft.Bank.PositivePay
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: 12
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 4
  implements: 0
---

# Codeunit 1711 "Positive Pay Export Mgt"

> Codeunit 1711 "Positive Pay Export Mgt" in Base Application (Microsoft.Bank.PositivePay). 4 public procedures, 1 events. Present since at least BC23, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Data Exch." = rimd, TableData "Data Exch. Field" = rimd, TableData "Positive Pay Header" = rimd, TableData "Positive Pay Footer" = rimd |

## Events published

- `OnBeforeCastToDestinationType(var DestinationValue: Variant; SourceValue: Variant; DataExchColumnDef: Record "Data Exch. Column Def"; Multiplier: Decimal; var IsHandled: Boolean)` (integration): Integration event that allows customization of data type casting during export processing.

## Procedures

- `ExportDataExchToFlatFile(DataExchNo: Integer; Filename: Text; LineFileType: Integer; HeaderCount: Integer)`: Exports data exchange records to a flat file format with proper formatting and line structure.
- `InsertDataExchLineForFlatFile(var DataExch: Record "Data Exch."; LineNo: Integer; RecRef: RecordRef)`: Creates data exchange field records for flat file export based on record data and mapping configuration.
- `PreparePosPayHeader(DataExch: Record "Data Exch."; BankAccountNo: Text[30])`: Prepares positive pay header record with basic account and company information for export.
- `PreparePosPayFooter(DataExch: Record "Data Exch."; DataExchDetalEntryNo: Integer; BankAccountNo: Text[30])`: Prepares positive pay footer record with summary information for the export file.

Plus 7 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 47 "StringConversionManagement"](../codeunit/47.md) (1 call: `ProcessColumnMapping → GetPaddedString`)

## Called by

- [Codeunit 1700 "Exp. Launcher Pos. Pay"](../codeunit/1700.md) (5 calls: `ProcessDetails → ExportDataExchToFlatFile`, `ProcessFooters → ExportDataExchToFlatFile`, `ProcessFooters → PreparePosPayFooter`, …)
- [Codeunit 1703 "Exp. Mapping Head Pos. Pay"](../codeunit/1703.md) (1 call: `OnRun → InsertDataExchLineForFlatFile`)
- [Codeunit 1705 "Exp. Mapping Det Pos. Pay"](../codeunit/1705.md) (1 call: `OnRun → InsertDataExchLineForFlatFile`)
- [Codeunit 1707 "Exp. Mapping Foot Pos. Pay"](../codeunit/1707.md) (1 call: `OnRun → InsertDataExchLineForFlatFile`)

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