Codeunit "SEPA CT-Export File"

ID 1220
Namespace: Microsoft.Bank.DirectDebit

Handles the export of SEPA credit transfer payments to XML files in compliance with SEPA standards. Processes general journal lines for credit transfers, validates payment information, and generates XML files using appropriate XMLPorts for bank submission.

Properties

Name Value
Permissions TableData "Data Exch. Field" = rimd
TableNo Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Methods

Export

Exports SEPA credit transfer data from general journal lines to XML format. Creates credit transfer register entry and manages file output to server or client.

procedure Export(var GenJnlLine: Record "Gen. Journal Line", XMLPortID: Integer): Boolean

Parameters

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

General journal lines containing payment data to export

XMLPortID Integer

XML port ID to use for export processing

Returns

Type Description
Boolean

True if export completed successfully

EnableExportToServerFile

Enables export to server file instead of client download.

procedure EnableExportToServerFile()

Events

OnBeforeBLOBExport

Integration event raised before BLOB export operation during credit transfer file creation. Enables custom file handling or modification of export parameters.

[IntegrationEvent(False,False)]
local procedure OnBeforeBLOBExport(var TempBlob: Codeunit "Temp Blob", CreditTransferRegister: Record "Credit Transfer Register", UseComonDialog: Boolean, var FieldCreated: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempBlob Codeunit System.Utilities."Temp Blob"

Temporary BLOB containing the export data

CreditTransferRegister Table Microsoft.Bank.Payment."Credit Transfer Register"

Credit transfer register record being processed

UseComonDialog Boolean

Whether to use common dialog for file operations

FieldCreated Boolean

Set to true if file was created by subscriber

IsHandled Boolean

Set to true to skip standard BLOB export processing

Remarks

Raised from Export procedure before writing BLOB data to file.

OnBeforeExtport

Integration event raised before starting SEPA credit transfer export process. Enables custom export handling or validation before standard processing.

[IntegrationEvent(False,False)]
local procedure OnBeforeExtport(var GenJnlLine: Record "Gen. Journal Line", XMLPortID: Integer, var Result: Boolean, var IsHandled: Boolean)

Parameters

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

General journal lines to be exported

XMLPortID Integer

XML port ID for export processing

Result Boolean

Set to true if export was successful

IsHandled Boolean

Set to true to skip standard export processing

Remarks

Raised from Export procedure before starting standard SEPA export operations.

See also