Codeunit "Export Payment File (Yes/No)"

ID 1209
Namespace: Microsoft.Bank.Payment

Codeunit 1209 "Export Payment File (Yes/No)" provides user confirmation for payment file export. Validates journal line requirements, checks bank account setup, and prompts user confirmation before proceeding with payment file export operations.

Remarks

Table No: Gen. Journal Line. Validates batch balancing account setup and document numbers. Integrates with bank account payment export codeunits. Provides extensibility through OnBeforeOnRun and OnAfterOnRun events for custom export logic.

Properties

Name Value
TableNo Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Events

OnAfterOnRun

Integration event raised after completing the payment file export process. Enables custom logic to execute after successful export operations.

[IntegrationEvent(False,False)]
local procedure OnAfterOnRun(var GenJournalLine: Record "Gen. Journal Line", GenJnlBatch: Record "Gen. Journal Batch", BankAccount: Record "Bank Account")

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal lines that were exported

GenJnlBatch Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch"

General journal batch used for export

BankAccount Table Microsoft.Bank.BankAccount."Bank Account"

Bank account used for payment export

OnBeforeOnRun

Integration event raised before starting the payment file export process. Enables custom validation or alternative export handling.

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(var GenJournalLine: Record "Gen. Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

General journal lines to be exported

IsHandled Boolean

Set to true to skip standard export processing

See also