---
id: object/table/1248
type: object
title: Table 1248 "Ledger Entry Matching Buffer"
summary: Table 1248 "Ledger Entry Matching Buffer" in Base Application (Microsoft.Bank.Reconciliation). 15 fields, 8 public procedures, 6 events. Present since at least BC23, still in BC30, changed in BC24-25, 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: f8b491470173d817fba9ab772c51429cdf6d39e412534a58023f8968662b8e86
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Bank/Reconciliation/LedgerEntryMatchingBuffer.Table.al
    title: src/Layers/W1/BaseApp/Bank/Reconciliation/LedgerEntryMatchingBuffer.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 1248
name: Ledger Entry Matching Buffer
namespace: Microsoft.Bank.Reconciliation
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 15
  procedures: 17
  events: 6
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 1248 "Ledger Entry Matching Buffer"

> Table 1248 "Ledger Entry Matching Buffer" in Base Application (Microsoft.Bank.Reconciliation). 15 fields, 8 public procedures, 6 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Ledger Entry Matching Buffer |
| TableType | Temporary |
| 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 | Entry No. | Integer | — |  |
| 2 | Account Type | Enum "Matching Ledger Account Type" | — | enum [Enum 1248 "Matching Ledger Account Type"](../enum/1248.md) |
| 3 | Account No. | Code[20] | — |  |
| 4 | Bal. Account Type | enum "Gen. Journal Account Type" | — | enum [Enum 81 "Gen. Journal Account Type"](../enum/81.md) |
| 5 | Bal. Account No. | Code[20] | — |  |
| 7 | Description | Text[100] | — |  |
| 8 | Document Type | Enum "Gen. Journal Document Type" | — | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 9 | Due Date | Date | — |  |
| 10 | Posting Date | Date | — |  |
| 11 | Document No. | Code[20] | — |  |
| 12 | External Document No. | Code[35] | — |  |
| 13 | Payment Reference | Code[50] | — |  |
| 20 | Remaining Amount | Decimal | — |  |
| 21 | Remaining Amt. Incl. Discount | Decimal | — |  |
| 22 | Pmt. Discount Due Date | Date | — |  |

## Keys

- Key1: Entry No., Account Type (clustered)

## Events published

- `OnBeforeInsertFromCustomerLedgerEntry(var LedgerEntryMatchingBuffer: Record "Ledger Entry Matching Buffer"; CustLedgerEntry: Record "Cust. Ledger Entry")` (integration)
- `OnBeforeInsertFromEmployeeLedgerEntry(var LedgerEntryMatchingBuffer: Record "Ledger Entry Matching Buffer"; EmployeeLedgerEntry: Record "Employee Ledger Entry")` (integration)
- `OnBeforeInsertFromVendorLedgerEntry(var LedgerEntryMatchingBuffer: Record "Ledger Entry Matching Buffer"; VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration)
- `OnBeforeInsertFromBankAccountLedgerEntry(var LedgerEntryMatchingBuffer: Record "Ledger Entry Matching Buffer"; BankAccountLedgerEntry: Record "Bank Account Ledger Entry")` (integration)
- `OnBeforeProcedureInsertFromVendorLedgerEntry(var VendorLedgerEntry: Record "Vendor Ledger Entry")` (integration)
- `OnBeforeProcedureInsertFromCustomerLedgerEntry(var CustLedgerEntry: Record "Cust. Ledger Entry")` (integration)

## Procedures

- `InsertFromCustomerLedgerEntry(CustLedgerEntry: Record "Cust. Ledger Entry"; UseLCYAmounts: Boolean; var UsePaymentDiscounts: Boolean)`: Inserts a customer ledger entry into the matching buffer with appropriate field mapping. Transfers relevant fields from customer ledger entry records into the standardized buffer format, handling currency conversions, payment discount calculations, and remaining amount computations.
- `InsertFromVendorLedgerEntry(VendorLedgerEntry: Record "Vendor Ledger Entry"; UseLCYAmounts: Boolean; var UsePaymentDiscounts: Boolean)`
- `InsertFromEmployeeLedgerEntry(EmployeeLedgerEntry: Record "Employee Ledger Entry")`
- `InsertFromEmployeeLedgerEntry(EmployeeLedgerEntry: Record "Employee Ledger Entry"; UseLCYAmounts: Boolean)`
- `InsertFromBankAccLedgerEntry(BankAccountLedgerEntry: Record "Bank Account Ledger Entry")`
- `GetApplicableRemainingAmount(BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line"; UsePaymentDiscounts: Boolean): Decimal`
- `GetNoOfLedgerEntriesWithinRange(MinAmount: Decimal; MaxAmount: Decimal; TransactionDate: Date; UsePaymentDiscounts: Boolean): Integer`
- `GetNoOfLedgerEntriesOutsideRange(MinAmount: Decimal; MaxAmount: Decimal; TransactionDate: Date; UsePaymentDiscounts: Boolean): Integer`

Plus 3 local procedures.

## Across versions

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

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: "Ledger Entry Matching Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
