---
id: object/table/6100
type: object
title: Table 6100 "E-Document Purchase Header"
summary: Table 6100 "E-Document Purchase Header" in EDocument (Microsoft.EServices.EDocument.Processing.Import.Purchase). 42 fields, 6 public procedures. Introduced in BC29, still in BC30, changed in BC30.
tier: official
language: en
tags:
  - table
  - edocument
versions:
  introduced: "29"
  last_changed: "30"
  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: aea1a5306fde0cce5da14c503c3411fd00840d2e4f298cdaa6d53e369fe05887
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocumentPurchaseHeader.Table.al
    title: src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocumentPurchaseHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/11815
    - change/bcapps/11318
    - change/bcapps/11168
object_type: table
object_id: 6100
name: E-Document Purchase Header
namespace: Microsoft.EServices.EDocument.Processing.Import.Purchase
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in:
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 42
  procedures: 6
  events: 0
  subscribers: 0
relations:
  out: 2
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6100 "E-Document Purchase Header"

> Table 6100 "E-Document Purchase Header" in EDocument (Microsoft.EServices.EDocument.Processing.Import.Purchase). 42 fields, 6 public procedures. Introduced in BC29, still in BC30, changed in BC30.

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

## 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 | Customer Company Name | Text[250] | Specifies the name of the customer company. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 3 | Customer Company Id | Text[250] | Specifies the ID of the customer company. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 4 | Purchase Order No. | Text[100] | Specifies the purchase order number. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 5 | Sales Invoice No. | Text[100] | Specifies the sales invoice number. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 6 | Invoice Date | Date | Specifies the invoice date. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 7 | Due Date | Date | Specifies the due date. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 8 | Document Date | Date | Specifies the document date. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 9 | Vendor Company Name | Text[250] | Specifies the name of the vendor company. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 10 | Vendor Address | Text[250] | Specifies the address of the vendor company. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 11 | Vendor Address Recipient | Text[250] | Specifies the recipient of the vendor address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 12 | Customer Address | Text[250] | Specifies the address of the customer company. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 13 | Customer Address Recipient | Text[250] | Specifies the recipient of the customer address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 14 | Billing Address | Text[250] | Specifies the billing address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 15 | Billing Address Recipient | Text[250] | Specifies the recipient of the billing address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 16 | Shipping Address | Text[250] | Specifies the shipping address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 17 | Shipping Address Recipient | Text[250] | Specifies the recipient of the shipping address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 18 | Sub Total | Decimal | Specifies the sub total. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 19 | Total Discount | Decimal | Specifies the total discount. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 20 | Total VAT | Decimal | Specifies the total VAT. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 21 | Total | Decimal | Specifies the total. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 22 | Amount Due | Decimal | Specifies the amount due. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 23 | Previous Unpaid Balance | Decimal | Specifies the previous unpaid balance. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 24 | Currency Code | Code[10] | Specifies the currency code. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 25 | Remittance Address | Text[250] | Specifies the remittance address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 26 | Remittance Address Recipient | Text[250] | Specifies the recipient of the remittance address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 27 | Service Address | Text[250] | Specifies the service address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 28 | Service Address Recipient | Text[250] | Specifies the recipient of the service address. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 29 | Service Start Date | Date | Specifies the service start date. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 30 | Service End Date | Date | Specifies the service end date. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 31 | Vendor VAT Id | Text[100] | Specifies the vendor VAT ID. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 32 | Customer VAT Id | Text[100] | Specifies the customer VAT ID. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 33 | Payment Terms | Text[250] | Specifies the payment terms. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 34 | Customer GLN | Text[13] | Specifies the customer global location number. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 35 | Vendor GLN | Text[13] | Specifies the vendor global location number. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 36 | Vendor External Id | Text[250] | Specifies the vendor external ID. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 37 | Vendor Contact Name | Text[250] | Specifies the vendor contact name. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 38 | Posting Description | Text[100] | — | DataClassification CustomerContent |
| 39 | Applies-to Doc. No. | Text[100] | — | DataClassification CustomerContent |
| 40 | Vendor Invoice No. | Text[100] | Specifies the vendor's original invoice number that this credit memo references. <small>via [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md)</small> | DataClassification CustomerContent |
| 101 | [BC] Vendor No. | Code[20] | Vendor No. <small>caption</small> | TableRelation Vendor."No."; DataClassification CustomerContent |
| 102 | [BC] Purchase Order No. | Code[20] | Purchase Order No. <small>caption</small> | TableRelation [Table 38 "Purchase Header"](../table/38.md) ("Purchase Header"."No." where("Document Type" = const(Order))); DataClassification CustomerContent |

## Keys

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

## Procedures

- `GetFromEDocument(EDocument: Record "E-Document")`
- `InsertForEDocument(EDocument: Record "E-Document")`
- `GetBCVendor(): Record Vendor`
- `GetAppliedVATAmountDiff(): Decimal`
- `FeatureName(): Text` (internal)
- `IsFinalized(): Boolean` (internal)

## Triggers

OnDelete

## Relations

- [BC] Purchase Order No.: TableRelation [Table 38 "Purchase Header"](../table/38.md)
- E-Document Entry No.: TableRelation [Table 6121 "E-Document"](../table/6121.md)

## Pages and codeunits on this table

- [Page 6182 "E-Doc. Readable Purchase Doc."](../page/6182.md) (source table)

## Recent changes

- 2026-09-24 [#11815 Improvements to E-Documents PO matching (E2E findings)](../../changes/bcapps/11815.md) (main, BC30, fix)
- 2026-09-11 [#11318 [main] Bug 649189: Update E-Document vendor invoice caption](../../changes/bcapps/11318.md) (main, BC30, fix)
- 2026-09-09 [#11168 Restore E-Document vendor invoice field compatibility](../../changes/bcapps/11168.md) (main, BC30, fix)

## Across versions

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

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