---
id: object/table/5010
type: object
title: Table 5010 "Service Declaration Setup"
summary: Table 5010 "Service Declaration Setup" in ServiceDeclaration (Microsoft.Service.Reports). 13 fields. 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: 76e6d13e9ea62aad480207fd1d6dc8ad3fa6b13fcfd73152e6f166ecaf90d5f8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ServiceDeclaration/app/src/Setup/ServiceDeclarationSetup.Table.al
    title: src/Apps/W1/ServiceDeclaration/app/src/Setup/ServiceDeclarationSetup.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: 5010
name: Service Declaration Setup
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: 13
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5010 "Service Declaration Setup"

> Table 5010 "Service Declaration Setup" in ServiceDeclaration (Microsoft.Service.Reports). 13 fields. 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/Setup/ServiceDeclarationSetup.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 5010 "Service Declaration Setup"](../page/5010.md) (1 Learn page).

## 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 | Integer | — |  |
| 2 | Declaration No. Series | Code[20] | Specifies the no. series for the service declarations. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> | TableRelation No. Series |
| 3 | Report Item Charges | Boolean | Specifies whether the item charges have to be reported in the service declaration. If enabled, system checks the service transaction code for item charges and include them into service declarations. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> |  |
| 5 | Sell-To/Bill-To Customer No. | Enum "G/L Setup VAT Calculation" | Specifies which customer must be taken to compare his country code with the country code from the Company Information page. Only documents where these two codes are different will be considered for the service declaration. Bill-To.: The country code will be taken from the Bill-to Customer. Sell-To. ... <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> | enum [Enum 98 "G/L Setup VAT Calculation"](../enum/98.md) |
| 6 | Buy-From/Pay-To Vendor No. | Enum "G/L Setup VAT Calculation" | Specifies which vendor must be taken to compare his country code with the country code from the Company Information page. Only documents where these two codes are different will be considered for the service declaration. Buy-From.: The country code will be taken from the Buy-From Vendor. Pay-To. : T... <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> | enum [Enum 98 "G/L Setup VAT Calculation"](../enum/98.md) |
| 7 | Data Exch. Def. Code | Code[20] | Specifies the data exchange definition code used to generate the exported file for the service declaration. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> | TableRelation [Table 1222 "Data Exch. Def"](../table/1222.md) (Data Exch. Def) |
| 8 | Enable VAT Registration No. | Boolean | Specifies whether the VAT Registration No. is enabled for the service declaration. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> |  |
| 9 | Enable Serv. Trans. Types | Boolean | Specifies whether the service transaction types are enabled for the service declaration. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> |  |
| 10 | Show Serv. Decl. Overview | Boolean | Show Serv. Devl. Overview <small>caption</small> |  |
| 11 | Cust. VAT Reg. No. Type | Enum "Serv. Decl. VAT Reg. No. Type" | Specifies how a customer's VAT registration number exports to the file. 0 is the value of the VAT Reg. No. field, 1 adds the country code as a prefix, and 2 removes the country code. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> | enum [Enum 5023 "Serv. Decl. VAT Reg. No. Type"](../enum/5023.md) |
| 12 | Vend. VAT Reg. No. Type | Enum "Serv. Decl. VAT Reg. No. Type" | Specifies how a vendor's VAT registration number exports to the file. 0 is the value of the VAT Reg. No. field, 1 adds the country code as a prefix, and 2 removes the country code. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> | enum [Enum 5023 "Serv. Decl. VAT Reg. No. Type"](../enum/5023.md) |
| 13 | Def. Private Person VAT No. | Text[50] | Specifies the VAT registration number that will be used if customer or vendor private person does not have its own VAT registration number. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> |  |
| 14 | Def. Customer/Vendor VAT No. | Text[50] | Specifies the VAT registration number that will be used if customer or vendor company does not have its own VAT registration number. <small>via [Page 5010 "Service Declaration Setup"](../page/5010.md)</small> |  |

## Keys

- Key1: Primary Key (clustered)

## Relations

- Data Exch. Def. Code: TableRelation [Table 1222 "Data Exch. Def"](../table/1222.md)

## Pages and codeunits on this table

- [Page 5010 "Service Declaration Setup"](../page/5010.md) (source table)
- [Page 5021 "Serv. Decl. Setup Wizard"](../page/5021.md) (source table)

## 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). 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 Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
