---
title: "Table 171 Standard Sales Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/171-standard-sales-line/
type: table
id: 171
name: "Standard Sales Line"
app: "Base Application"
namespace: Microsoft.Sales.Document
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/171-standard-sales-line/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 171 Standard Sales Line

Jonas Paprotka, https://jonas-paprotka.de/ref/table/171-standard-sales-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Sales.Document |
| Versions | 17-28 |
| Source file | Sales/Document/StandardSalesLine.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Standard Sales Code | Code[10] | 17-28 | - | - |
| 2 | Line No. | Integer | 17-28 | - | - |
| 3 | Type | Enum Sales Line Type | 17-28 | - | - |
| 4 | No. | Code[20] | 17-28 | - | - |
| 5 | Description | Text[100] | 17-28 | - | - |
| 6 | Quantity | Decimal | 17-28 | - | - |
| 7 | Amount Excl. VAT | Decimal | 17-28 | - | - |
| 8 | Unit of Measure Code | Code[10] | 17-28 | - | - |
| 9 | Shortcut Dimension 1 Code | Code[20] | 17-28 | - | - |
| 10 | Shortcut Dimension 2 Code | Code[20] | 17-28 | - | - |
| 11 | Variant Code | Code[10] | 17-28 | - | - |
| 480 | Dimension Set ID | Integer | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Standard Sales Code, Line No. | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| EmptyLine | () | Boolean | public | 17-28 | - | - |
| InsertLine | () | Boolean | public | 17-28 | - | - |
| ShowDimensions | () | - | public | 17-28 | - | - |
| ValidateShortcutDimCode | (Integer, var Code[20]) | - | public | 17-28 | - | - |
| LookupShortcutDimCode | (Integer, var Code[20]) | - | public | 17-28 | - | - |
| ShowShortcutDimCode | (var Code[20]) | - | public | 17-28 | - | - |
| FormatType | () | Text[20] | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeLookupShortcutDimCode | (var Record Standard Sales Line, var Record Standard Sales Line, Integer, var Code[20], Boolean) | 17-19 | - | - |
| Integration event | OnAfterValidateShortcutDimCode | (Record Standard Sales Line, Record Standard Sales Line, Integer, var Code[20]) | 17-18 | - | - |
| Integration event | OnBeforeValidateShortcutDimCode | (Record Standard Sales Line, Record Standard Sales Line, Integer, var Code[20]) | 17-18 | - | - |
| Integration event | OnAfterShowDimensions | (var Record Standard Sales Line, var Codeunit DimensionManagement) | 18-28 | - | - |
| Integration event | OnAfterValidateShortcutDimCode | (var Record Standard Sales Line, Record Standard Sales Line, Integer, var Code[20]) | 19-28 | - | - |
| Integration event | OnBeforeValidateShortcutDimCode | (var Record Standard Sales Line, Record Standard Sales Line, Integer, var Code[20]) | 19-28 | - | - |
| Integration event | OnBeforeLookupShortcutDimCode | (var Record Standard Sales Line, var Record Standard Sales Line, Integer, var Code[20], var Boolean) | 20-28 | - | - |
| Integration event | OnAfterValidateNo | (var Record Standard Sales Line, Record G/L Account) | 20-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
