---
id: object/table/5023
type: object
title: Table 5023 "Service Declaration Header"
summary: Table 5023 "Service Declaration Header" in ServiceDeclaration (Microsoft.Service.Reports). 10 fields, 5 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - servicedeclaration
versions:
  introduced: "29"
  last_changed: null
  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: cea6a53b1c072d46caf066295d2b5c523c53afb975d25612f635391de8835687
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ServiceDeclaration/app/src/Processing/ServiceDeclarationHeader.Table.al
    title: src/Apps/W1/ServiceDeclaration/app/src/Processing/ServiceDeclarationHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-how-setup-use-service-declaration
  objects: []
  features: []
  topics:
    - topic/business-central/development-and-administration/customize-business-central/customize-with-extensions
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5023
name: Service Declaration Header
namespace: Microsoft.Service.Reports
app: ServiceDeclaration
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 10
  procedures: 7
  events: 1
  subscribers: 0
relations:
  out: 3
  referenced_by: 1
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 5023 "Service Declaration Header"

> Table 5023 "Service Declaration Header" in ServiceDeclaration (Microsoft.Service.Reports). 10 fields, 5 public procedures, 1 events. Introduced in BC29, still in BC30.

ServiceDeclaration · Microsoft.Service.Reports · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ServiceDeclaration/app/src/Processing/ServiceDeclarationHeader.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 5022 "Service Declarations"](../page/5022.md) (1 Learn page), [Page 5023 "Service Declaration"](../page/5023.md) (1).

## Properties

| Property | Value |
|---|---|
| LookupPageId | Service Declarations |
| DrillDownPageId | Service Declarations |

## 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. | Code[20] | Specifies the code of the service declaration. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> |  |
| 2 | Config. Code | Code[20] | Specifies the configuration code that uses for lines suggestion and file creation. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> | TableRelation [Table 746 "VAT Reports Configuration"](../table/746.md) ("VAT Reports Configuration"."VAT Report Version" where("VAT Report Type" = const("Service Declaration"))) |
| 50 | Starting Date | Date | Specifies the starting date of a service declaration. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> |  |
| 51 | Ending Date | Date | Specifies the ending date of a service declaration. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> |  |
| 100 | No. Series | Code[20] | — | TableRelation No. Series; not editable |
| 101 | Created Date-Time | DateTime | — | not editable |
| 102 | Reported | Boolean | Specifies whether the entry has already been reported to the authorities. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> | not editable |
| 103 | Status | Enum "Serv. Decl. Status" | Specifies the status of the service declaration. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> | enum [Enum 5013 "Serv. Decl. Status"](../enum/5013.md); not editable |
| 104 | Export Date | Date | Specifies the date when the declaration has been exported. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> | not editable |
| 105 | Export Time | Time | Specifies the time when the declaration has been exported. <small>via [Page 5023 "Service Declaration"](../page/5023.md)</small> | not editable |

## Keys

- Key1: No. (clustered)

## Events published

- `OnBeforeCheckStatusOpen(xServiceDeclHeader: Record "Service Declaration Header"; ServiceDeclHeader: Record "Service Declaration Header"; var IsHandled: Boolean)` (integration)

## Procedures

- `SuggestLines()`
- `CreateFile()`
- `AssistEdit(OldServDeclHeader: Record "Service Declaration Header"): Boolean`
- `TestNoSeries()`
- `CheckStatusOpen()`

Plus 1 local procedures.

## Triggers

OnInsert, OnModify, OnRename, OnDelete

## Relations

- drill-down page [Page 5022 "Service Declarations"](../page/5022.md)
- lookup page [Page 5022 "Service Declarations"](../page/5022.md)
- Config. Code: TableRelation [Table 746 "VAT Reports Configuration"](../table/746.md)

## Referenced by

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

- [Table 5024 "Service Declaration Line"](../table/5024.md): Service Declaration No.

## Pages and codeunits on this table

- [Page 5022 "Service Declarations"](../page/5022.md) (source table)
- [Page 5023 "Service Declaration"](../page/5023.md) (source table)
- [Codeunit 5013 "Get Service Declaration Lines"](../codeunit/5013.md) (codeunit runs on it)
- [Codeunit 5014 "Export Service Declaration"](../codeunit/5014.md) (codeunit runs on it)

## 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.

- [Page 456 "No. Series"](../page/456.md) (2 calls: `AssistEdit → (object)`, `OnInsert → (object)`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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: "Service Declaration Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
