---
id: object/table/9041
type: object
title: Table 9041 "Date Compr. Retain Fields"
summary: Table 9041 "Date Compr. Retain Fields" in Base Application (Microsoft.Foundation.Period). 19 fields. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - table
  - 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: a70a4de9fca5f4618caaf05a393d403feb6d3f3e4cb983f28b1b373b705be1c7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Period/DateComprRetainFields.Table.al
    title: src/Layers/W1/BaseApp/Foundation/Period/DateComprRetainFields.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: 9041
name: Date Compr. Retain Fields
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"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 19
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 9041 "Date Compr. Retain Fields"

> Table 9041 "Date Compr. Retain Fields" in Base Application (Microsoft.Foundation.Period). 19 fields. Present since at least BC23, still in BC30, changed in BC24.

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

## Properties

| Property | Value |
|---|---|
| Access | Public |
| Extensible | true |
| 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 | Primary Key | Code[20] | — | DataClassification SystemMetadata |
| 2 | Retain Document Type | Boolean | — | DataClassification SystemMetadata |
| 3 | Retain Document No. | Boolean | — | DataClassification SystemMetadata |
| 4 | Retain Job No. | Boolean | — | DataClassification SystemMetadata |
| 5 | Retain Business Unit Code | Boolean | — | DataClassification SystemMetadata |
| 6 | Retain Journal Template Name | Boolean | — | DataClassification SystemMetadata |
| 7 | Retain Contact Code | Boolean | — | DataClassification SystemMetadata |
| 8 | Retain Salesperson Code | Boolean | — | DataClassification SystemMetadata |
| 9 | Retain Sell-to Customer No. | Boolean | — | DataClassification SystemMetadata |
| 10 | Retain Buy-from Vendor No. | Boolean | Retain Buy-from Vendor No." <small>caption</small> | DataClassification SystemMetadata |
| 11 | Retain Purchaser Code | Boolean | — | DataClassification SystemMetadata |
| 12 | Retain Bill-to/Pay-to No. | Boolean | — | DataClassification SystemMetadata |
| 13 | Retain EU 3-Party Trade | Boolean | — | DataClassification SystemMetadata |
| 14 | Retain Country/Region Code | Boolean | — | DataClassification SystemMetadata |
| 15 | Retain Internal Ref. No. | Boolean | — | DataClassification SystemMetadata |
| 16 | Retain Quantity | Boolean | — | DataClassification SystemMetadata |
| 18 | Retain Global Dimension 1 | Boolean | — | DataClassification SystemMetadata |
| 19 | Retain Global Dimension 2 | Boolean | — | DataClassification SystemMetadata |
| 20 | Retain Totals | Boolean | — | DataClassification SystemMetadata |

## Keys

- PK: Primary Key (clustered)

## Across versions

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

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