Codeunit "SEPA DD-Fill Export Buffer"
Populates the payment export data buffer with information from direct debit collection entries for SEPA direct debit processing. Formats and validates data for XML export compliance.
Properties
| Name | Value |
|---|---|
| Permissions | TableData "Payment Export Data" = rimd |
| TableNo | Table Microsoft.Bank.Payment."Payment Export Data" |
Methods
FillExportBuffer
Fills the payment export data buffer with information from direct debit collection entries. Validates entries through the configured check codeunit, retrieves mandate and customer information, and formats data according to SEPA direct debit standards for XML export processing.
procedure FillExportBuffer(var DirectDebitCollectionEntry: Record "Direct Debit Collection Entry", var PaymentExportData: Record "Payment Export Data")
Parameters
| Name | Type | Description |
|---|---|---|
| DirectDebitCollectionEntry | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
The source direct debit collection entries to process for export. |
| PaymentExportData | Table Microsoft.Bank.Payment."Payment Export Data" |
The target payment export data buffer to populate with formatted export data. |
Events
OnBeforeGetDDExportImportSetup
Integration event that allows customization of the direct debit export/import setup retrieval process. Subscribers can provide alternative logic for determining the appropriate setup configuration.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDDExportImportSetup(BankAccount: Record "Bank Account", var BankExportImportSetup: Record "Bank Export/Import Setup", var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| BankAccount | Table Microsoft.Bank.BankAccount."Bank Account" |
The bank account for which to retrieve the export/import setup. |
| BankExportImportSetup | Table Microsoft.Bank.Setup."Bank Export/Import Setup" |
The export/import setup to be populated or customized. |
| IsHandled | Boolean |
Set to true if the subscriber handles the setup retrieval completely. |
OnBeforeInsertPaymentExportData
Integration event that allows customization of payment export data before insertion. Subscribers can modify export data fields or add additional validation logic.
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertPaymentExportData(var PaymentExportData: Record "Payment Export Data", var TempDirectDebitCollectionEntry: Record "Direct Debit Collection Entry" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| PaymentExportData | Table Microsoft.Bank.Payment."Payment Export Data" |
The payment export data record being prepared for insertion. |
| TempDirectDebitCollectionEntry | Table Microsoft.Bank.DirectDebit."Direct Debit Collection Entry" |
The source direct debit collection entry providing the data. |