---
title: "Table 10003 Document Line"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/10003-document-line/
type: table
id: 10003
name: "Document Line"
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-29"
build: 29.0.54011.55644
countries: "US"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Table 10003 Document Line

JOP-AL, https://jonas-paprotka.de/ref/table/10003-document-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.EServices.EDocument |
| Versions | 17-29 |
| Minors | US 17.0-29.0, [every minor](https://jonas-paprotka.de/ref/table/10003-document-line/editions.json) |
| Source file | Local/eServices/EDocument/DocumentLine.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 2 | Sell-to/Buy-from No. | Code[20] | 17-29 | - | - |
| 3 | Document No. | Code[20] | 17-29 | - | - |
| 4 | Line No. | Integer | 17-29 | - | - |
| 5 | Type | Enum Sales Line Type | 17-29 | - | - |
| 6 | No. | Code[20] | 17-29 | - | - |
| 7 | Location Code | Code[10] | 17-29 | - | - |
| 8 | Posting Group | Code[20] | 17-29 | - | - |
| 11 | Description | Text[100] | 17-29 | - | - |
| 12 | Description 2 | Text[50] | 17-29 | - | - |
| 13 | Unit of Measure | Text[50] | 17-29 | - | - |
| 15 | Quantity | Decimal | 17-29 | - | - |
| 22 | Unit Price/Direct Unit Cost | Decimal | 17-29 | - | - |
| 23 | Unit Cost (LCY) | Decimal | 17-29 | - | - |
| 25 | VAT % | Decimal | 17-29 | - | - |
| 27 | Line Discount % | Decimal | 17-29 | - | - |
| 28 | Line Discount Amount | Decimal | 17-29 | - | - |
| 29 | Amount | Decimal | 17-29 | - | - |
| 30 | Amount Including VAT | Decimal | 17-29 | - | - |
| 34 | Gross Weight | Decimal | 19-29 | - | - |
| 89 | VAT Bus. Posting Group | Code[20] | 17-29 | - | - |
| 90 | VAT Prod. Posting Group | Code[20] | 17-29 | - | - |
| 5407 | Unit of Measure Code | Code[10] | 17-29 | - | - |
| 10001 | Retention Attached to Line No. | Integer | 17-29 | - | - |
| 10002 | Retention VAT % | Decimal | 17-29 | - | - |
| 10003 | Custom Transit Number | Text[30] | 19-29 | - | - |
| 10004 | SAT Customs Document Type | Code[10] | 23-29 | - | - |

## Keys

| Name | Fields | Sum fields | Versions |
| --- | --- | --- | --- |
| Key1, clustered | Document No., Line No. | - | 17-29 |

## Trigger events

| Name | Parameters | ElementName | Docs |
| --- | --- | --- | --- |
| OnBeforeInsertEvent | (var Rec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforeinsertevent-table-trigger/ |
| OnAfterInsertEvent | (var Rec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterinsertevent-table-trigger/ |
| OnBeforeModifyEvent | (var Rec: Record "Document Line"; var xRec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforemodifyevent-table-trigger/ |
| OnAfterModifyEvent | (var Rec: Record "Document Line"; var xRec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftermodifyevent-table-trigger/ |
| OnBeforeDeleteEvent | (var Rec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforedeleteevent-table-trigger/ |
| OnAfterDeleteEvent | (var Rec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterdeleteevent-table-trigger/ |
| OnBeforeRenameEvent | (var Rec: Record "Document Line"; var xRec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforerenameevent-table-trigger/ |
| OnAfterRenameEvent | (var Rec: Record "Document Line"; var xRec: Record "Document Line"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterrenameevent-table-trigger/ |
| OnBeforeValidateEvent | (var Rec: Record "Document Line"; var xRec: Record "Document Line"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforevalidateevent-table-trigger/ |
| OnAfterValidateEvent | (var Rec: Record "Document Line"; var xRec: Record "Document Line"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftervalidateevent-table-trigger/ |

## Source

Symbols: Microsoft.BaseApplication.US.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.

JOP-AL, 2026-11-20.
