---
id: object/table/1207
type: object
title: Table 1207 "Direct Debit Collection"
summary: Table 1207 "Direct Debit Collection" in Base Application (Microsoft.Bank.DirectDebit). 10 fields, 6 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: d33632916e1eb5f4effdff92180def9e6971b885c6fc1ea086c6a5c4ac7f2ee5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/DirectDebit/DirectDebitCollection.Table.al
    title: src/Layers/W1/BaseApp/Bank/DirectDebit/DirectDebitCollection.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-collect-payments-with-sepa-direct-debit
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/manage-payables
    - topic/business-central/business-functionality/finance/manage-receivables
    - topic/business-central/business-functionality/general-business-functionality/exchange-data-electronically/collect-payments-with-sepa-direct-debit
    - topic/business-central/business-functionality/general-business-functionality/exchange-data-electronically/exchange-data
  localizations:
    - localization/be
    - localization/ch
    - localization/es
    - localization/fr
    - localization/it
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11036
object_type: table
object_id: 1207
name: Direct Debit Collection
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"
  - "28"
source_major: "29"
obsolete: null
countries:
  - be
  - ch
  - es
  - fr
  - it
ms_search_form_ids: []
counts:
  fields: 10
  procedures: 7
  events: 1
  subscribers: 0
relations:
  out: 5
  referenced_by: 3
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 1207 "Direct Debit Collection"

> Table 1207 "Direct Debit Collection" in Base Application (Microsoft.Bank.DirectDebit). 10 fields, 6 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.

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

Learn documents this table through its pages: [Page 1207 "Direct Debit Collections"](../page/1207.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Direct Debit Collection |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | No. | Integer | Specifies the number of the involved entry or record, according to the specified number series. |  |
| 2 | Identifier | Code[20] | Specifies, together with the number series, which direct debit collection a direct-debit collection entry is related to. |  |
| 3 | Created Date-Time | DateTime | — |  |
| 4 | Created by User | Code[50] | Specifies which user created the direct debit collection. | TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 5 | Status | Option | Specifies the status of the direct debit collection. The following options exist. | OptionCaption: New,Canceled,File Created,Posted,Closed |
| 6 | No. of Transfers | Integer | Specifies how many direct debit transactions have been performed for the direct debit collection. | FlowField: count("Direct Debit Collection Entry" where("Direct Debit Collection No." = field("No."))) |
| 7 | To Bank Account No. | Code[20] | Specifies the number of the bank account that the direct debit collection will be transferred to. | TableRelation [Table 270 "Bank Account"](../table/270.md) (Bank Account) |
| 8 | To Bank Account Name | Text[100] | Specifies the name of the bank account that the direct debit collection will be transferred to. | FlowField: lookup("Bank Account".Name where("No." = field("To Bank Account No."))) |
| 9 | Message ID | Code[35] | — |  |
| 10 | Partner Type | Enum "Partner Type" | — | enum [Enum 134 "Partner Type"](../enum/134.md); not editable |

## Keys

- Key1: No. (clustered)

## Events published

- `OnBeforeHasPaymentFileErrors(DirectDebitCollection: Record "Direct Debit Collection"; var DirectDebit: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)` (integration): Integration event that allows customization of payment file error checking logic.

## Procedures

- `CreateRecord(NewIdentifier: Code[20]; NewBankAccountNo: Code[20]; PartnerType: Enum "Partner Type")`: Creates a new direct debit collection record with the specified parameters.
- `CloseCollection()`: Closes the collection and sets status of pending entries to rejected. Prompts user for confirmation as this action prevents payment registration.
- `Export()`: Initiates SEPA export process for all entries in this collection.
- `HasPaymentFileErrors(): Boolean`: Checks if any payment file errors exist for entries in this collection.
- `SetStatus(NewStatus: Option)`: Updates the collection status with proper locking.
- `DeletePaymentFileErrors()`: Removes all payment file errors associated with entries in this collection.

## Relations

- drill-down page [Page 1207 "Direct Debit Collections"](../page/1207.md)
- lookup page [Page 1207 "Direct Debit Collections"](../page/1207.md)
- No. of Transfers: CalcFormula [Table 1208 "Direct Debit Collection Entry"](../table/1208.md)
- To Bank Account Name: CalcFormula [Table 270 "Bank Account"](../table/270.md)
- To Bank Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md)

## Referenced by

3 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 1208 "Direct Debit Collection Entry"](../table/1208.md): Direct Debit Collection Status, Direct Debit Collection No.
- [Table 1255 "Direct Debit Collection Buffer"](../table/1255.md): Direct Debit Collection No.

## Pages and codeunits on this table

- [Page 1207 "Direct Debit Collections"](../page/1207.md) (source table)

## Recent changes

- 2026-09-07 [#11036 Ruleset hardening: promote four compatibility rules to Error](../../changes/bcapps/11036.md) (main, BC30, other)

## Across versions

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

## Countries that replace it

[BE](../../localizations/be.md), [CH](../../localizations/ch.md), [ES](../../localizations/es.md), [FR](../../localizations/fr.md), [IT](../../localizations/it.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). 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: "table", object_name: "Direct Debit Collection")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
