---
id: object/table/87
type: object
title: Table 87 "Date Compr. Register"
summary: Table 87 "Date Compr. Register" in Base Application (Microsoft.Foundation.Period). 15 fields, 3 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: 9b20e3de2c89a4bf54591a7e995adb59f705cee17a201d7b03194ad88d82842b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Period/DateComprRegister.Table.al
    title: src/Layers/W1/BaseApp/Foundation/Period/DateComprRegister.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/admin-manage-documents
  objects: []
  features: []
  topics:
    - topic/business-central/development-and-administration/administration-tasks-in-business-central/control-your-data
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 87
name: Date Compr. Register
namespace: Microsoft.Foundation.Period
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 15
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 5
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 87 "Date Compr. Register"

> Table 87 "Date Compr. Register" in Base Application (Microsoft.Foundation.Period). 15 fields, 3 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC29.

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

Learn documents this table through its pages: [Page 107 "Date Compr. Registers"](../page/107.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Date Compr. Register |
| 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 | Creation Date | Date | Specifies the date that the date compression took place. |  |
| 3 | Table Caption | Text[250] | Specifies the name of the table that was compressed. | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Table), "Object ID" = field("Table ID"))); not editable |
| 4 | Period Length | Option | Specifies the time interval of entries combined into one for the period defined in the Starting Date and Ending Date fields in the batch job. | OptionCaption: Day,Week,Month,Quarter,Year,Period |
| 5 | Ending Date | Date | Specifies the last date in the period for which entries were compressed. |  |
| 6 | No. of New Records | Integer | Specifies the number of new entries that were created by the date compression. |  |
| 7 | No. Records Deleted | Integer | Specifies the number of entries that were deleted during the date compression. |  |
| 8 | User ID | Code[50] | Specifies the ID of the user who posted the entry, to be used, for example, in the change log. | TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 9 | Filter | Text[250] | Specifies the filters that were placed on the date compression. |  |
| 10 | Starting Date | Date | Specifies the first date in the period for which entries were compressed. |  |
| 11 | Table ID | Integer | Specifies the number of the table that was compressed. | TableRelation AllObjWithCaption."Object ID" where("Object Type" = const(Table)) |
| 12 | Register No. | Integer | Specifies the number of the register that was created by the date compression and that contains the compressed entries. | TableRelation [Table 240 "Resource Register"](../table/240.md), [Table 45 "G/L Register"](../table/45.md), [Table 46 "Item Register"](../table/46.md) (if ("Table ID" = const(17)) "G/L Register" else if ("Table ID" = const(21)) "G/L Register" else if ("Table ID" = const(25)) "G/L Register" else if ("Table ID" = const(254)) "G/L Register" else if ("Table ID" = const(32)) "Item Register" else if ("Table ID" = const(203)) "Resource Register" else if (...) |
| 13 | Source Code | Code[10] | Specifies the source code that specifies where the entry was created. | TableRelation [Table 230 "Source Code"](../table/230.md) (Source Code) |
| 14 | Retain Field Contents | Text[80] | Specifies a list of the fields whose contents the user chose to retain in the date compression. |  |
| 15 | Retain Totals | Text[80] | Specifies a list of the quantity fields that the user chose to retain when they ran the date compression batch job. |  |

## Keys

- Key1: No. (clustered)
- Key2: Table ID
- Key3: Table ID, Ending Date

## Procedures

- `GetLastEntryNo(): Integer`
- `InitRegister(TableID: Integer; RegNo: Integer; StartingDate: Date; EndingDate: Date; PeriodLength: Integer; EntryFilter: Text[250]; RelatedRegNo: Integer; SourceCode: Code[10])`
- `CheckMaxDateCompressed(MaxPostingDate: Date; Type: Option Unapply,Reversal)`

Plus 1 local procedures.

## Relations

- lookup page [Page 107 "Date Compr. Registers"](../page/107.md)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Register No.: TableRelation [Table 240 "Resource Register"](../table/240.md) (conditional)
- Register No.: TableRelation [Table 45 "G/L Register"](../table/45.md) (conditional)
- Register No.: TableRelation [Table 46 "Item Register"](../table/46.md) (conditional)

## Pages and codeunits on this table

- [Page 107 "Date Compr. Registers"](../page/107.md) (source table)

## 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 703 "Find Record Management"](../codeunit/703.md) (1 call: `GetLastEntryNo → GetLastEntryIntFieldValue`)

## Across versions

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

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: "table", object_name: "Date Compr. Register")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
