---
id: object/codeunit/1221
type: object
title: Codeunit 1221 "SEPA CT-Fill Export Buffer"
summary: Codeunit 1221 "SEPA CT-Fill Export Buffer" in Base Application (Microsoft.Bank.DirectDebit). 2 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: e7a91b3824b2d11094786c06e41af15d0ad0d077a59d8515191e344c7baefd76
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/DirectDebit/SEPACTFillExportBuffer.Codeunit.al
    title: src/Layers/W1/BaseApp/Bank/DirectDebit/SEPACTFillExportBuffer.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ch
    - localization/it
    - localization/nl
    - localization/no
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1221
name: SEPA CT-Fill Export Buffer
namespace: Microsoft.Bank.DirectDebit
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries:
  - ch
  - it
  - nl
  - "no"
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 11
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 3
  implements: 0
---

# Codeunit 1221 "SEPA CT-Fill Export Buffer"

> Codeunit 1221 "SEPA CT-Fill Export Buffer" in Base Application (Microsoft.Bank.DirectDebit). 2 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Payment Export Data |
| Permissions | TableData "Payment Export Data" = rimd |

## Events published

- `OnAfterCreateNewCreditTransferEntry(var PaymentExportData: Record "Payment Export Data"; var CreditTransferEntry: Record "Credit Transfer Entry"; var TempGenJnlLine: Record "Gen. Journal Line" temporary)` (integration): Integration event raised after creating new credit transfer entry during export buffer processing. Enables custom processing or field updates after credit transfer entry creation.
- `OnAfterFillExportBuffer(var PaymentExportData: Record "Payment Export Data"; BankExportImportSetup: Record "Bank Export/Import Setup")` (integration): Integration event raised after completing export buffer processing for SEPA credit transfer. Enables final custom processing or validation after all export data has been populated.
- `OnFillExportBufferOnAfterGetMessageID(var TempGenJnlLine: Record "Gen. Journal Line" temporary; var MessageID: code[20])` (integration): Integration event raised after generating message ID during export buffer processing. Enables custom message ID generation or modification.
- `OnFillExportBufferOnAfterCreateNewRegister(var CreditTransferRegister: Record "Credit Transfer Register"; var BankExportImportSetup: Record "Bank Export/Import Setup")` (integration): Integration event raised after creating new credit transfer register during export processing. Enables custom processing or field updates after register creation.
- `OnFillExportBufferOnAfterSetCustomerAsRecipient(var PaymentExportData: Record "Payment Export Data"; var TempGenJnlLine: Record "Gen. Journal Line" temporary; Customer: Record Customer; CustomerBankAccount: Record "Customer Bank Account")` (integration)
- `OnFillExportBufferOnAfterSetVendorAsRecipient(var PaymentExportData: Record "Payment Export Data"; var TempGenJnlLine: Record "Gen. Journal Line" temporary; Vendor: Record Vendor; VendorBankAccount: Record "Vendor Bank Account")` (integration)
- `OnFillExportBufferOnAfterSetBankAsRecipient(var PaymentExportData: Record "Payment Export Data"; var TempGenJnlLine: Record "Gen. Journal Line" temporary; BankAccount: Record "Bank Account")` (integration)
- `OnFillExportBufferOnAfterInsertPaymentExportData(var PaymentExportData: Record "Payment Export Data"; var TempGenJnlLine: Record "Gen. Journal Line" temporary; BankExportImportSetup: Record "Bank Export/Import Setup")` (integration)
- `OnFillExportBufferOnBeforeInsertPaymentExportData(var PaymentExportData: Record "Payment Export Data"; var TempGenJnlLine: Record "Gen. Journal Line" temporary)` (integration)
- `OnFillExportBufferOnSetAsRecipient(var GenJnlLine: Record "Gen. Journal Line"; var PaymentExportData: Record "Payment Export Data"; var TempGenJnlLine: Record "Gen. Journal Line" temporary; var CreditTransferRegister: Record "Credit Transfer Register")` (integration)
- `OnGetAppliesToDocEntryNumbersCaseElse(var GenJournalLine: Record "Gen. Journal Line"; var TempInteger: Record Integer temporary; AccNo: Code[20])` (integration)

## Procedures

- `FillExportBuffer(var GenJnlLine: Record "Gen. Journal Line"; var PaymentExportData: Record "Payment Export Data")`: Fills the payment export data buffer with information from general journal lines for SEPA credit transfer. Validates journal lines, retrieves bank account and recipient information, and formats data according to SEPA credit transfer standards for XML export processing.
- `GetAppliesToDocEntryNumbers(GenJournalLine: Record "Gen. Journal Line"; var TempInteger: Record "Integer" temporary)` (internal)

Plus 7 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 1226 "Payment Export Data"](../table/1226.md)

## 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 1222 "SEPA CT-Prepare Source"](../codeunit/1222.md) (1 call: `FillExportBuffer → (object)`)

## Called by

- [Codeunit 1275 "Exp. Post-Mapping Gen. Jnl."](../codeunit/1275.md) (1 call: `OnRun → GetAppliesToDocEntryNumbers`)
- [XMLport 1000 "SEPA CT pain.001.001.03"](../xmlport/1000.md) (1 call: `InitData → FillExportBuffer`)
- [XMLport 1001 "SEPA CT pain.001.001.09"](../xmlport/1001.md) (1 call: `InitData → FillExportBuffer`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24

## Countries that replace it

[CH](../../localizations/ch.md), [IT](../../localizations/it.md), [NL](../../localizations/nl.md), [NO](../../localizations/no.md)

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: "SEPA CT-Fill Export Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
