Codeunit "SEPA DD-Export File"
Handles the export of SEPA direct debit collections to XML files in compliance with SEPA standards. Validates bank account information, generates XML files using appropriate XMLPorts, and manages the collection status throughout the export process.
Properties
| Name | Value |
|---|---|
| TableNo | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
Methods
EnableExportToServerFile
Enables server-side file export mode instead of client download.
procedure EnableExportToServerFile()
Events
OnBeforeGetDirectDebitCollection
Integration event that allows customization of direct debit collection retrieval logic.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDirectDebitCollection(var DirectDebitCollectionEntry: Record "Direct Debit Collection Entry", var DirectDebitCollection: Record "Direct Debit Collection", var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DirectDebitCollectionEntry | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
The collection entry being processed |
| DirectDebitCollection | Table Microsoft.Bank.DirectDebit."Direct Debit Collection" |
The collection being retrieved |
| IsHandled | Boolean |
Whether the event has been handled by subscribers |
OnBeforeExport
Integration event that allows customization of the export process before XML generation.
[IntegrationEvent(False,False)]
local procedure OnBeforeExport(var DirectDebitCollectionEntry: Record "Direct Debit Collection Entry", XMLPortID: Integer, FileName: Text, var Result: Boolean, var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DirectDebitCollectionEntry | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
The collection entry being exported |
| XMLPortID | Integer |
ID of the XMLPort used for export |
| FileName | Text |
Name of the file being generated |
| Result | Boolean |
Result of the export operation |
| IsHandled | Boolean |
Whether the event has been handled by subscribers |
OnExportOnAfterXMLPortExport
Integration event triggered after XML export is completed, allowing post-processing of the generated content.
[IntegrationEvent(False,False)]
local procedure OnExportOnAfterXMLPortExport(var TempBlob: Codeunit "Temp Blob", var Result: Boolean, var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| TempBlob | Codeunit System.Utilities."Temp Blob" |
Temporary blob containing the exported XML data |
| Result | Boolean |
Result of the export operation |
| IsHandled | Boolean |
Whether the event has been handled by subscribers |