---
id: object/table/6153
type: object
title: Table 6153 "E-Document Sales Header"
summary: Table 6153 "E-Document Sales Header" in EDocument (Microsoft.eServices.EDocument.Processing.Import.Sales). 28 fields, 4 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - edocument
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: 1f24de4bee66f59f5e4c6f84cdcbf46b76c905228021b046d5f21ccb5a85e3ae
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Sales/EDocumentSalesHeader.Table.al
    title: src/Apps/W1/EDocument/app/src/Processing/Import/Sales/EDocumentSalesHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 6153
name: E-Document Sales Header
namespace: Microsoft.eServices.EDocument.Processing.Import.Sales
app: EDocument
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: 28
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6153 "E-Document Sales Header"

> Table 6153 "E-Document Sales Header" in EDocument (Microsoft.eServices.EDocument.Processing.Import.Sales). 28 fields, 4 public procedures. Introduced in BC29, still in BC30.

EDocument · Microsoft.eServices.EDocument.Processing.Import.Sales · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Sales/EDocumentSalesHeader.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## 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 | E-Document Entry No. | Integer | — | TableRelation [Table 6121 "E-Document"](../table/6121.md) ("E-Document"."Entry No"); DataClassification SystemMetadata |
| 2 | Buyer Company Name | Text[250] | Specifies the extracted name of the buyer. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 3 | Buyer Company Id | Text[250] | Specifies the extracted buyer company identifier. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 4 | Buyer Order No. | Text[100] | Specifies the extracted buyer order number. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 5 | Seller Sales Order No. | Text[100] | — | DataClassification CustomerContent |
| 6 | Document Date | Date | Specifies the extracted document date. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 7 | Requested Delivery Date | Date | Specifies the requested delivery date. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 8 | Note | Text[250] | Specifies the extracted note or work description. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 9 | Customer Reference | Text[100] | Specifies the extracted customer reference. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 10 | Seller Company Name | Text[250] | Specifies the extracted seller company name. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 11 | Seller Address | Text[250] | Specifies the extracted seller address. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 12 | Seller Address Recipient | Text[250] | Specifies the extracted seller address recipient. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 13 | Buyer Address | Text[250] | Specifies the extracted buyer address. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 14 | Buyer Address Recipient | Text[250] | Specifies the extracted buyer address recipient. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 15 | Originator Company Name | Text[250] | — | DataClassification CustomerContent |
| 16 | Accounting Customer Name | Text[250] | — | DataClassification CustomerContent |
| 17 | Sub Total | Decimal | Specifies the extracted subtotal excluding VAT. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 18 | Total Discount | Decimal | Specifies the extracted total discount. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 19 | Total VAT | Decimal | Specifies the extracted total VAT amount. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 20 | Total | Decimal | Specifies the extracted total amount including VAT. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 21 | Currency Code | Code[10] | Specifies the extracted currency code. Blank means local currency. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 22 | Buyer VAT Id | Text[100] | Specifies the extracted buyer VAT identifier. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 23 | Seller VAT Id | Text[100] | Specifies the extracted seller VAT identifier. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 24 | Buyer GLN | Text[13] | Specifies the extracted buyer Global Location Number. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 25 | Seller GLN | Text[13] | Specifies the extracted seller Global Location Number. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 26 | Order Type Code | Text[10] | Specifies the UBL order type code (e.g. 220 = standard order, 221 = blanket order). <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 27 | Buyer External Id | Text[250] | Specifies the extracted buyer external identifier used by the e-document service. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | DataClassification CustomerContent |
| 101 | [BC] Customer No. | Code[20] | Specifies the internal customer identifier code. <small>via [Page 6153 "E-Document Sales Draft"](../page/6153.md)</small> | TableRelation Customer."No."; DataClassification CustomerContent |

## Keys

- PK: E-Document Entry No. (clustered)

## Procedures

- `GetFromEDocument(EDocument: Record "E-Document")`
- `InsertForEDocument(EDocument: Record "E-Document")`
- `GetBCCustomer(): Record Customer`
- `FeatureName(): Text` (internal)

## Triggers

OnDelete

## Relations

- E-Document Entry No.: TableRelation [Table 6121 "E-Document"](../table/6121.md)

## Pages and codeunits on this table

- [Page 6153 "E-Document Sales Draft"](../page/6153.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: "E-Document Sales Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
