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

# Table 5024 "Service Declaration Line"

> Table 5024 "Service Declaration Line" in ServiceDeclaration (Microsoft.Service.Reports). 16 fields, 1 public procedures. 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/ServiceDeclarationLine.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 5024 "Service Declaration Subform"](../page/5024.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 | Service Declaration No. | Code[20] | — | TableRelation [Table 5023 "Service Declaration Header"](../table/5023.md) (Service Declaration Header) |
| 2 | Line No. | Integer | — |  |
| 5 | Service Transaction Code | Code[20] | Specifies the service transaction code. <small>via [Page 5025 "Service Declaration Overview"](../page/5025.md)</small> | TableRelation [Table 5011 "Service Transaction Type"](../table/5011.md) (Service Transaction Type) |
| 6 | Country/Region Code | Code[10] | Specifies the country/region code of the source entry. <small>via [Page 5025 "Service Declaration Overview"](../page/5025.md)</small> | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 7 | Currency Code | Code[10] | Specifies the currency code of the source entry. <small>via [Page 5025 "Service Declaration Overview"](../page/5025.md)</small> | TableRelation [Table 4 "Currency"](../table/4.md) |
| 8 | Sales Amount | Decimal | — |  |
| 9 | Purchase Amount | Decimal | — |  |
| 10 | Sales Amount (LCY) | Decimal | Specifies the Sales Amount (LCY) of the source value entry. <small>via [Page 5025 "Service Declaration Overview"](../page/5025.md)</small> |  |
| 11 | Purchase Amount (LCY) | Decimal | Specifies the Purchase Amount (LCY) of the source value entry. <small>via [Page 5025 "Service Declaration Overview"](../page/5025.md)</small> |  |
| 12 | Item Charge No. | Code[20] | Specifies the item charge of the source entry. <small>via [Page 5024 "Service Declaration Subform"](../page/5024.md)</small> | TableRelation [Table 5800 "Item Charge"](../table/5800.md) (Item Charge) |
| 14 | VAT Registration No. | Text[20] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 15 | VAT Reg. No. | Text[50] | Specifies the VAT registration No. of the customer or vendor associated with a source entry. <small>via [Page 5024 "Service Declaration Subform"](../page/5024.md)</small> |  |
| 30 | Posting Date | Date | Specifies the posting date of the source entry. <small>via [Page 5024 "Service Declaration Subform"](../page/5024.md)</small> |  |
| 31 | Document Type | Enum "Item Ledger Document Type" | Specifies the document type of the source entry. <small>via [Page 5024 "Service Declaration Subform"](../page/5024.md)</small> | enum [Enum 79 "Item Ledger Document Type"](../enum/79.md) |
| 32 | Document No. | Code[20] | Specifies the document number of the source entry. <small>via [Page 5024 "Service Declaration Subform"](../page/5024.md)</small> |  |
| 34 | Description | Text[100] | — |  |

## Keys

- Key1: Service Declaration No., Line No. (clustered)

## Procedures

- `CheckHeaderStatusOpen()`

## Triggers

OnDelete, OnInsert, OnModify, OnRename

## Relations

- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Service Transaction Code: TableRelation [Table 5011 "Service Transaction Type"](../table/5011.md)
- Service Declaration No.: TableRelation [Table 5023 "Service Declaration Header"](../table/5023.md)
- Item Charge No.: TableRelation [Table 5800 "Item Charge"](../table/5800.md)
- Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)

## Pages and codeunits on this table

- [Page 5024 "Service Declaration Subform"](../page/5024.md) (source table)
- [Page 5025 "Service Declaration Overview"](../page/5025.md) (source table)

## Across versions

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

## Deprecations

- field VAT Registration No.: Removed 25.0 (#if not CLEANSCHEMA25), "Replaced with the VAT Reg. No."

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