---
id: object/page/516
type: object
title: Page 516 "Sales Lines"
summary: Page 516 "Sales Lines" in Base Application (Microsoft.Sales.Document). Present since at least BC23, still in BC30, changed in BC27.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: 01524924a3c60ae46f4cf4ec4f20aa709bbe43ef8c1f8db021b03b12c601d516
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/SalesLines.Page.al
    title: src/Layers/W1/BaseApp/Sales/Document/SalesLines.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-finance
    title: Ad-hoc analysis of finance data
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-inventory
    title: Ad-hoc analysis of inventory data
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-sales
    title: Ad-hoc analysis of sales data
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/sales-analytics-overview
    title: Sales analytics
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-finance
    - https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-inventory
    - https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-sales
    - https://learn.microsoft.com/dynamics365/business-central/sales-analytics-overview
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/financial-analytics
    - topic/business-central/business-functionality/inventory/inventory-analytics
    - topic/business-central/business-functionality/sales/sales-analytics
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 516
name: Sales Lines
namespace: Microsoft.Sales.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-smb-docs/business-central/ad-hoc-analysis-finance.md
  - docs/learn-smb-docs/business-central/ad-hoc-analysis-inventory.md
  - docs/learn-smb-docs/business-central/ad-hoc-analysis-sales.md
  - docs/learn-smb-docs/business-central/sales-analytics-overview.md
counts:
  fields: 0
  procedures: 0
  events: 0
  subscribers: 0
  controls: 30
  actions: 6
relations:
  out: 1
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 4
  implements: 0
---

# Page 516 "Sales Lines"

> Page 516 "Sales Lines" in Base Application (Microsoft.Sales.Document). Present since at least BC23, still in BC30, changed in BC27.

Base Application · Microsoft.Sales.Document · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/SalesLines.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Sales Lines |
| SourceTable | Sales Line |
| PageType | List |
| UsageCategory | Lists |
| ApplicationArea | Basic, Suite |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Control1 | Document Type | [Document Type](../table/37.md#fields) | Specifies the type of document that you are about to create. <small>from the table field</small> |
|  | Document No. | [Document No.](../table/37.md#fields) | Specifies the document number. <small>from the table field</small> |
|  | Sell-to Customer No. | [Sell-to Customer No.](../table/37.md#fields) | Specifies the number of the customer. <small>from the table field</small> |
|  | Sell-to Customer Name | [Sell-to Customer Name](../table/37.md#fields) | Specifies the name of the customer. <small>from the table field</small> |
|  | Line No. | [Line No.](../table/37.md#fields) | Specifies the line number. <small>from the table field</small> |
|  | Type | [Type](../table/37.md#fields) | Specifies the type of entity that will be posted for this sales line, such as Item, Resource, or G/L Account. The type that you enter in this field determines what you can select in the No. field. <small>from the table field</small> |
|  | No. | [No.](../table/37.md#fields) | Specifies the number of the involved entry or record, according to the specified number series. <small>from the table field</small> |
|  | Variant Code | [Variant Code](../table/37.md#fields) | Specifies the variant of the item on the line. <small>from the table field</small> |
|  | Description | [Description](../table/37.md#fields) | Specifies a description of the entry of the product to be sold. To add a non-transactional text line, fill in the Description field only. <small>from the table field</small> |
|  | Description 2 | [Description 2](../table/37.md#fields) | Specifies information in addition to the description. <small>from the table field</small> |
|  | Location Code | [Location Code](../table/37.md#fields) | Specifies the inventory location from which the items sold should be picked and where the inventory decrease is registered. <small>from the table field</small> |
|  | Reserve | [Reserve](../table/37.md#fields) | Specifies whether a reservation can be made for items on this line. <small>from the table field</small> |
|  | Quantity | [Quantity](../table/37.md#fields) | Specifies how many units are being sold. <small>from the table field</small> |
|  | Qty. to Ship | [Qty. to Ship](../table/37.md#fields) | Specifies the quantity of items that remain to be shipped. <small>from the table field</small> |
|  | Reserved Qty. (Base) | [Reserved Qty. (Base)](../table/37.md#fields) | Specifies the value in the Reserved Quantity field, expressed in the base unit of measure. <small>from the table field</small> |
|  | Unit of Measure Code | [Unit of Measure Code](../table/37.md#fields) | Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted. <small>from the table field</small> |
|  | Line Amount | [Line Amount](../table/37.md#fields) | Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line. <small>from the table field</small> |
|  | Allocation Account No. | [Selected Alloc. Account No.](../table/37.md#fields) | Specifies the allocation account number that will be used to distribute the amounts during the posting process. <small>from the table field</small> |
|  | Job No. | [Job No.](../table/37.md#fields) | Specifies the number of the related project. If you fill in this field and the Project Task No. field, then a project ledger entry will be posted together with the sales line. <small>from the table field</small> |
|  | Work Type Code | [Work Type Code](../table/37.md#fields) | Specifies which work type the resource applies to when the sale is related to a project. <small>from the table field</small> |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/37.md#fields) | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | Shortcut Dimension 2 Code | [Shortcut Dimension 2 Code](../table/37.md#fields) | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. <small>from the table field</small> |
|  | ShortcutDimCode[3] | `ShortcutDimCode[3]` | — |
|  | ShortcutDimCode[4] | `ShortcutDimCode[4]` | — |
|  | ShortcutDimCode[5] | `ShortcutDimCode[5]` | — |
|  | ShortcutDimCode[6] | `ShortcutDimCode[6]` | — |
|  | ShortcutDimCode[7] | `ShortcutDimCode[7]` | — |
|  | ShortcutDimCode[8] | `ShortcutDimCode[8]` | — |
|  | Shipment Date | [Shipment Date](../table/37.md#fields) | Specifies when items on the document are shipped or were shipped. A shipment date is usually calculated from a requested delivery date plus lead time. <small>from the table field</small> |
|  | Outstanding Quantity | [Outstanding Quantity](../table/37.md#fields) | Specifies how many units on the order line have not yet been shipped. <small>from the table field</small> |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Line | Show Document | Open the document that the selected line exists on. |  |
|  | Reservation Entries | View the entries for every reservation that is made, either manually or automatically. |  |
|  | Item Tracking Lines | View or edit serial, lot and package numbers that are assigned to the item on the document or journal line. |  |
|  | Detach Lines | Detach the selected non-inventory product lines from the inventory item line. |  |
|  | Redistribute Account Allocations | Use this action to redistribute the account allocations for this line. |  |
|  | Generate lines from Allocation Account Line | Use this action to replace the Allocation Account line with the actual lines that would be generated from the line itself. |  |

## Triggers

OnAfterGetRecord, OnNewRecord, OnOpenPage

## Relations

- source table [Table 37 "Sales Line"](../table/37.md)

## Pages and codeunits on this table

- [Table 37 "Sales Line"](../table/37.md) (drill-down page)
- [Table 37 "Sales Line"](../table/37.md) (lookup page)

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

- [Codeunit 2675 "Allocation Account Mgt."](../codeunit/2675.md) (1 call: `OnOpenPage → UseAllocationAccountNoField`)

## Called by

- [Table 37 "Sales Line"](../table/37.md) (3 calls: `AttachToInventoryItemLine → (object)`, `BlanketOrderLookup → (object)`, `ShowBlanketOrderSalesLines → (object)`)
- [Codeunit 99000832 "Sales Line-Reserve"](../codeunit/99000832.md) (2 calls: `OnLookupLine → (object)`, `ShowSourceLines → (object)`)
- [Codeunit 5991 "Sales Warehouse Mgt."](../codeunit/5991.md) (1 call: `ShowSalesLines → (object)`)
- [Page 6560 "Document Line Tracking"](../page/6560.md) (1 call: `ShowRecords → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC27

## Documented on Microsoft Learn

- [Ad-hoc analysis of finance data](https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-finance)
- [Ad-hoc analysis of inventory data](https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-inventory)
- [Ad-hoc analysis of sales data](https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-sales)
- [Sales analytics](https://learn.microsoft.com/dynamics365/business-central/sales-analytics-overview)

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: "page", object_name: "Sales Lines")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
