---
id: object/table/5109
type: object
title: Table 5109 "Purchase Header Archive"
summary: Table 5109 "Purchase Header Archive" in Base Application (Microsoft.Purchases.Archive). 152 fields, 2 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24-25, BC27-29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: d162b8e19a3a64e4f8f54ba7c9bd5f1ba5d177ed99dba3fbe49e34347a0f3c98
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Purchases/Archive/PurchaseHeaderArchive.Table.al
    title: src/Layers/W1/BaseApp/Purchases/Archive/PurchaseHeaderArchive.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/across-how-to-archive-documents
    - https://learn.microsoft.com/dynamics365/business-central/purchasing-how-request-quotes
    - https://learn.microsoft.com/dynamics365/business-central/sales-how-to-create-blanket-sales-orders
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/general-business-functionality
    - topic/business-central/business-functionality/purchasing
    - topic/business-central/business-functionality/sales
  localizations:
    - localization/at
    - localization/au
    - localization/be
    - localization/ca
    - localization/ch
    - localization/de
    - localization/it
    - localization/mx
    - localization/nz
    - localization/ru
    - localization/us
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/8959
object_type: table
object_id: 5109
name: Purchase Header Archive
namespace: Microsoft.Purchases.Archive
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries:
  - at
  - au
  - be
  - ca
  - ch
  - de
  - it
  - mx
  - nz
  - ru
  - us
ms_search_form_ids: []
counts:
  fields: 152
  procedures: 3
  events: 1
  subscribers: 0
relations:
  out: 68
  referenced_by: 6
  pages: 13
  extended_by: 2
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Table 5109 "Purchase Header Archive"

> Table 5109 "Purchase Header Archive" in Base Application (Microsoft.Purchases.Archive). 152 fields, 2 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24-25, BC27-29.

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

Learn documents this table through its pages: [Page 9346 "Purchase Quote Archives"](../page/9346.md) (2 Learn pages), [Page 5164 "Purchase Quote Archive"](../page/5164.md) (1), [Page 5167 "Purchase Order Archive"](../page/5167.md) (1), [Page 6623 "Blanket Purchase Order Archive"](../page/6623.md) (1), [Page 6644 "Purchase Return Order Archive"](../page/6644.md) (1), [Page 9347 "Purchase Order Archives"](../page/9347.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | Purchase Header Archive |
| DataClassification | CustomerContent |

## 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 | Document Type | Enum "Purchase Document Type" | — | enum [Enum 38 "Purchase Document Type"](../enum/38.md) |
| 2 | Buy-from Vendor No. | Code[20] | Specifies the name of the vendor who delivered the items. | TableRelation [Table 23 "Vendor"](../table/23.md) |
| 3 | No. | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. |  |
| 4 | Pay-to Vendor No. | Code[20] | Specifies the number of the vendor that you received the invoice from. | TableRelation [Table 23 "Vendor"](../table/23.md); NotBlank |
| 5 | Pay-to Name | Text[100] | Specifies the name of the vendor who you received the invoice from. |  |
| 6 | Pay-to Name 2 | Text[50] | Specifies an additional part of the name of the vendor who you receive the invoice or credit memo from. |  |
| 7 | Pay-to Address | Text[100] | Specifies the address of the vendor that you received the invoice from. |  |
| 8 | Pay-to Address 2 | Text[50] | Specifies an additional part of the address of the vendor that the invoice was received from. |  |
| 9 | Pay-to City | Text[30] | Specifies the city of the vendor that you received the invoice from. | TableRelation [Table 225 "Post Code"](../table/225.md) ("Post Code".City) |
| 10 | Pay-to Contact | Text[100] | Specifies the name of the person to contact about an invoice from this vendor. |  |
| 11 | Your Reference | Text[35] | — |  |
| 12 | Ship-to Code | Code[10] | Specifies a code for an alternate shipment address if you want to ship to another address than the one that has been entered automatically. This field is also used in case of drop shipment. |  |
| 13 | Ship-to Name | Text[100] | Specifies the name of the customer at the address that the items are shipped to. |  |
| 14 | Ship-to Name 2 | Text[50] | Specifies an additional part of the name of the customer at the address that the items are shipped to. |  |
| 15 | Ship-to Address | Text[100] | Specifies the address that the items are shipped to. |  |
| 16 | Ship-to Address 2 | Text[50] | Specifies an additional part of the ship-to address, in case it is a long address. |  |
| 17 | Ship-to City | Text[30] | Specifies the city of the address that the items are shipped to. | TableRelation [Table 225 "Post Code"](../table/225.md) ("Post Code".City) |
| 18 | Ship-to Contact | Text[100] | Specifies the name of the contact person at the address that the items are shipped to. |  |
| 19 | Order Date | Date | Specifies the date when the order was created. |  |
| 20 | Posting Date | Date | Specifies the entry's posting date. |  |
| 21 | Expected Receipt Date | Date | Specifies the date on which the invoiced items were expected. |  |
| 22 | Posting Description | Text[100] | — |  |
| 23 | Payment Terms Code | Code[10] | Specifies a formula that calculates the payment due date, payment discount date, and payment discount amount. | TableRelation [Table 3 "Payment Terms"](../table/3.md) (Payment Terms) |
| 24 | Due Date | Date | Specifies when the related purchase invoice must be paid. |  |
| 25 | Payment Discount % | Decimal | Specifies the payment discount percent granted if payment is made on or before the date in the Pmt. Discount Date field. |  |
| 26 | Pmt. Discount Date | Date | Specifies the date on which the amount in the entry must be paid for a payment discount to be granted. |  |
| 27 | Shipment Method Code | Code[10] | Specifies the delivery conditions of the related shipment, such as free on board (FOB). | TableRelation [Table 10 "Shipment Method"](../table/10.md) (Shipment Method) |
| 28 | Location Code | Code[10] | Specifies the location where the items are to be placed when they are received. This field acts as the default location for new lines. Location code for individual lines can differ from it. | TableRelation [Table 14 "Location"](../table/14.md) (Location where("Use As In-Transit" = const(false))) |
| 29 | Shortcut Dimension 1 Code | Code[20] | 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. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))) |
| 30 | Shortcut Dimension 2 Code | Code[20] | 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. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 31 | Vendor Posting Group | Code[20] | — | TableRelation [Table 93 "Vendor Posting Group"](../table/93.md) (Vendor Posting Group) |
| 32 | Currency Code | Code[10] | Specifies the currency that is used on the entry. | TableRelation [Table 4 "Currency"](../table/4.md) |
| 33 | Currency Factor | Decimal | — |  |
| 35 | Prices Including VAT | Boolean | Specifies if the Unit Price and Line Amount fields on document lines should be shown with or without VAT. |  |
| 37 | Invoice Disc. Code | Code[20] | — |  |
| 41 | Language Code | Code[10] | — | TableRelation [Table 8 "Language"](../table/8.md) |
| 42 | Format Region | Text[80] | — | TableRelation "Language Selection"."Language Tag" |
| 43 | Purchaser Code | Code[20] | Specifies which purchaser is assigned to the vendor. | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) (Salesperson/Purchaser) |
| 45 | Order Class | Code[10] | — |  |
| 46 | Comment | Boolean | — | FlowField: exist("Purch. Comment Line Archive" where("Document Type" = field("Document Type"), "No." = field("No."), "Document Line No." = const(0), "Doc. No. Occurrence" = field("Doc. No. Occurrence"), "Version No." = field("Version No."))); not editable |
| 47 | No. Printed | Integer | — |  |
| 51 | On Hold | Code[3] | Specifies that the related entry represents an unpaid invoice for which either a payment suggestion, a reminder, or a finance charge memo exists. |  |
| 52 | Applies-to Doc. Type | Enum "Gen. Journal Document Type" | Specifies the type of the posted document that this document or journal line will be applied to when you post, for example to register payment. | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 53 | Applies-to Doc. No. | Code[20] | Specifies the number of the posted document that this document or journal line will be applied to when you post, for example to register payment. |  |
| 55 | Bal. Account No. | Code[20] | — | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 270 "Bank Account"](../table/270.md) (if ("Bal. Account Type" = const("G/L Account")) "G/L Account" else if ("Bal. Account Type" = const("Bank Account")) "Bank Account") |
| 57 | Receive | Boolean | — |  |
| 58 | Invoice | Boolean | — |  |
| 60 | Amount | Decimal | Specifies the total amount for the archived purchase document. | FlowField: sum("Purchase Line Archive".Amount where("Document Type" = field("Document Type"), "Document No." = field("No."), "Doc. No. Occurrence" = field("Doc. No. Occurrence"), "Version No." = field("Version No."))) |
| 61 | Amount Including VAT | Decimal | Specifies the total amount including VAT for the archived purchase document. | FlowField: sum("Purchase Line Archive"."Amount Including VAT" where("Document Type" = field("Document Type"), "Document No." = field("No."), "Doc. No. Occurrence" = field("Doc. No. Occurrence"), "Version No." = field("Version No."))); not editable |
| 62 | Receiving No. | Code[20] | — |  |
| 63 | Posting No. | Code[20] | — |  |
| 64 | Last Receiving No. | Code[20] | — | TableRelation [Table 120 "Purch. Rcpt. Header"](../table/120.md) (Purch. Rcpt. Header) |
| 65 | Last Posting No. | Code[20] | — | TableRelation [Table 122 "Purch. Inv. Header"](../table/122.md) (Purch. Inv. Header) |
| 66 | Vendor Order No. | Code[35] | Specifies the vendor's order number. |  |
| 67 | Vendor Shipment No. | Code[35] | Specifies the vendor's shipment number. It is inserted in the corresponding field on the source document during posting. |  |
| 68 | Vendor Invoice No. | Code[35] | Specifies the document number of the original document you received from the vendor. You can require the document number for posting, or let it be optional. By default, it's required, so that this document references the original. Making document numbers optional removes a step from the posting proc... |  |
| 69 | Vendor Cr. Memo No. | Code[35] | Specifies the number that the vendor uses for the credit memo you are creating in this purchase return order. |  |
| 70 | VAT Registration No. | Text[20] | — |  |
| 72 | Sell-to Customer No. | Code[20] | Specifies the number of the customer. | TableRelation [Table 18 "Customer"](../table/18.md) |
| 73 | Reason Code | Code[10] | — | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code) |
| 74 | Gen. Bus. Posting Group | Code[20] | — | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 76 | Transaction Type | Code[10] | Specifies the type of transaction that the document represents, for the purpose of reporting to INTRASTAT. | TableRelation [Table 258 "Transaction Type"](../table/258.md) (Transaction Type) |
| 77 | Transport Method | Code[10] | Specifies the transport method, for the purpose of reporting to INTRASTAT. | TableRelation [Table 259 "Transport Method"](../table/259.md) (Transport Method) |
| 78 | VAT Country/Region Code | Code[10] | — | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 79 | Buy-from Vendor Name | Text[100] | Specifies the name of the vendor who delivered the items. |  |
| 80 | Buy-from Vendor Name 2 | Text[50] | Specifies an additional part of the name of the vendor that you’re buying from. |  |
| 81 | Buy-from Address | Text[100] | Specifies the address of the vendor who delivered the items. |  |
| 82 | Buy-from Address 2 | Text[50] | Specifies an additional part of the address of the vendor who delivered the items. |  |
| 83 | Buy-from City | Text[30] | Specifies the city of the vendor who delivered the items. | TableRelation [Table 225 "Post Code"](../table/225.md) ("Post Code".City) |
| 84 | Buy-from Contact | Text[100] | Specifies the name of the contact person at the vendor who delivered the items. |  |
| 85 | Pay-to Post Code | Code[20] | Specifies the post code of the vendor that you received the invoice from. | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 86 | Pay-to County | Text[30] | Specifies the county of the vendor on the purchase document. |  |
| 87 | Pay-to Country/Region Code | Code[10] | Specifies the country/region code of the address. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 88 | Buy-from Post Code | Code[20] | Specifies the post code of the vendor who delivered the items. | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 89 | Buy-from County | Text[30] | Specifies the county of your vendor. |  |
| 90 | Buy-from Country/Region Code | Code[10] | Specifies the city of the vendor who delivered the items. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 91 | Ship-to Post Code | Code[20] | Specifies the postal code of the address that the items are shipped to. | TableRelation [Table 225 "Post Code"](../table/225.md) (Post Code) |
| 92 | Ship-to County | Text[30] | Specifies the county of the ship-to address. |  |
| 93 | Ship-to Country/Region Code | Code[10] | Specifies the country/region code of the address that the items are shipped to. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 94 | Bal. Account Type | enum "Payment Balance Account Type" | — | enum [Enum 96 "Payment Balance Account Type"](../enum/96.md) |
| 95 | Order Address Code | Code[10] | Specifies the order address of the related vendor. | TableRelation [Table 224 "Order Address"](../table/224.md) ("Order Address".Code where("Vendor No." = field("Buy-from Vendor No."))) |
| 97 | Entry Point | Code[10] | Specifies the code of the port of entry where the items pass into your country/region, for reporting to Intrastat. | TableRelation [Table 282 "Entry/Exit Point"](../table/282.md) (Entry/Exit Point) |
| 98 | Correction | Boolean | — |  |
| 99 | Document Date | Date | Specifies the date when the related document was created. |  |
| 101 | Area | Code[10] | Specifies the destination country or region for the purpose of Intrastat reporting. | TableRelation [Table 284 "Area"](../table/284.md) |
| 102 | Transaction Specification | Code[10] | Specifies a specification of the document's transaction, for the purpose of reporting to INTRASTAT. | TableRelation [Table 285 "Transaction Specification"](../table/285.md) (Transaction Specification) |
| 104 | Payment Method Code | Code[10] | Specifies how to make payment, such as with bank transfer, cash, or check. | TableRelation [Table 289 "Payment Method"](../table/289.md) (Payment Method) |
| 107 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 108 | Posting No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 109 | Receiving No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 114 | Tax Area Code | Code[20] | Specifies the tax area that is used to calculate and post sales tax. | TableRelation [Table 318 "Tax Area"](../table/318.md) (Tax Area) |
| 115 | Tax Liable | Boolean | Specifies if this vendor charges you sales tax for purchases. |  |
| 116 | VAT Bus. Posting Group | Code[20] | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. | TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md) (VAT Business Posting Group) |
| 118 | Applies-to ID | Code[50] | Specifies the ID of entries that will be applied to when you choose the Apply Entries action. |  |
| 119 | VAT Base Discount % | Decimal | — |  |
| 120 | Status | Enum "Purchase Document Status" | Specifies whether the record is open, waiting to be approved, invoiced for prepayment, or released to the next stage of processing. | enum [Enum 3812 "Purchase Document Status"](../enum/3812.md) |
| 121 | Invoice Discount Calculation | Option | — | OptionCaption: None,%,Amount |
| 122 | Invoice Discount Value | Decimal | — |  |
| 123 | Send IC Document | Boolean | — |  |
| 124 | IC Status | Enum "Purchase Document IC Status" | — | enum [Enum 125 "Purchase Document IC Status"](../enum/125.md) |
| 125 | Buy-from IC Partner Code | Code[20] | — | TableRelation [Table 413 "IC Partner"](../table/413.md) (IC Partner); not editable |
| 126 | Pay-to IC Partner Code | Code[20] | — | TableRelation [Table 413 "IC Partner"](../table/413.md) (IC Partner); not editable |
| 127 | IC Reference Document No. | Code[20] | — | not editable |
| 129 | IC Direction | Enum "IC Direction Type" | — | enum [Enum 129 "IC Direction Type"](../enum/129.md) |
| 130 | Prepayment No. | Code[20] | — |  |
| 131 | Last Prepayment No. | Code[20] | — | TableRelation [Table 112 "Sales Invoice Header"](../table/112.md) (Sales Invoice Header) |
| 132 | Prepmt. Cr. Memo No. | Code[20] | — |  |
| 133 | Last Prepmt. Cr. Memo No. | Code[20] | — | TableRelation [Table 112 "Sales Invoice Header"](../table/112.md) (Sales Invoice Header) |
| 134 | Prepayment % | Decimal | — |  |
| 135 | Prepayment No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 136 | Compress Prepayment | Boolean | — |  |
| 137 | Prepayment Due Date | Date | — |  |
| 138 | Prepmt. Cr. Memo No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 139 | Prepmt. Posting Description | Text[100] | — |  |
| 142 | Prepmt. Pmt. Discount Date | Date | — |  |
| 143 | Prepmt. Payment Terms Code | Code[10] | — | TableRelation [Table 3 "Payment Terms"](../table/3.md) (Payment Terms) |
| 144 | Prepmt. Payment Discount % | Decimal | — |  |
| 145 | No. of Archived Versions | Integer | — | FlowField: max("Purchase Header Archive"."Version No." where("Document Type" = field("Document Type"), "No." = field("No."), "Doc. No. Occurrence" = field("Doc. No. Occurrence"))); not editable |
| 146 | Spend Request No. | Code[20] | Specifies the spend request that this purchase document relates to. | TableRelation [Table 6840 "Spend Request"](../table/6840.md) (Spend Request) |
| 147 | Spend Request Close | Boolean | Specifies that the spend request will be closed when the purchase document is posted. |  |
| 151 | Purchase Quote No. | Code[20] | — | TableRelation [Table 38 "Purchase Header"](../table/38.md) ("Purchase Header"."No." where("Document Type" = const(Quote), "No." = field("Purchase Quote No."))); not editable |
| 165 | Incoming Document Entry No. | Integer | — | TableRelation [Table 130 "Incoming Document"](../table/130.md) (Incoming Document) |
| 179 | VAT Reporting Date | Date | Specifies the entry's VAT date. |  |
| 210 | Ship-to Phone No. | Text[30] | Specifies the telephone number of the company's shipping address. |  |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |
| 3998 | Source Doc. Exists | Boolean | — | FlowField: exist("Purchase Header" where("Document Type" = field("Document Type"), "No." = field("No."))); not editable |
| 3999 | Last Archived Date | DateTime | — | FlowField: max("Purchase Header Archive".SystemCreatedAt where("Document Type" = field("Document Type"), "No." = field("No."), "Doc. No. Occurrence" = field("Doc. No. Occurrence"))); not editable |
| 5043 | Interaction Exist | Boolean | Specifies that the archived document is linked to an interaction log entry. |  |
| 5044 | Time Archived | Time | Specifies what time the document was archived. |  |
| 5045 | Date Archived | Date | Specifies the date when the document was archived. |  |
| 5046 | Archived By | Code[50] | Specifies the user ID of the person who archived this document. | TableRelation User."User Name"; not editable; DataClassification EndUserIdentifiableInformation |
| 5047 | Version No. | Integer | Specifies the version number of the archived document. |  |
| 5048 | Doc. No. Occurrence | Integer | — |  |
| 5050 | Campaign No. | Code[20] | — | TableRelation [Table 5071 "Campaign"](../table/5071.md) |
| 5052 | Buy-from Contact No. | Code[20] | Specifies the number of the contact person at the vendor who delivered the items. | TableRelation [Table 5050 "Contact"](../table/5050.md) |
| 5053 | Pay-to Contact No. | Code[20] | Specifies the number of the person to contact about an invoice from this vendor. | TableRelation [Table 5050 "Contact"](../table/5050.md) |
| 5700 | Responsibility Center | Code[10] | Specifies the code of the responsibility center, such as a distribution hub, that is associated with the involved user, company, customer, or vendor. | TableRelation [Table 5714 "Responsibility Center"](../table/5714.md) (Responsibility Center) |
| 5752 | Completely Received | Boolean | — | FlowField: min("Purchase Line Archive"."Completely Received" where("Document Type" = field("Document Type"), "Document No." = field("No."), "Doc. No. Occurrence" = field("Doc. No. Occurrence"), "Version No." = field("Version No."), "Expected Receipt Date" = field("Date Filter"), "Location Code" = field("Locati...; not editable |
| 5753 | Posting from Whse. Ref. | Integer | — |  |
| 5754 | Location Filter | Code[10] | — | TableRelation [Table 14 "Location"](../table/14.md); FlowFilter |
| 5790 | Requested Receipt Date | Date | Specifies the date you want the vendor to deliver your order. |  |
| 5791 | Promised Receipt Date | Date | Specifies the date that the vendor has promised to deliver the order. |  |
| 5792 | Lead Time Calculation | DateFormula | Specifies a date formula for the amount of time it takes to replenish the item. |  |
| 5793 | Inbound Whse. Handling Time | DateFormula | Specifies the time it takes to make items part of available inventory, after the items have been posted as received. |  |
| 5796 | Date Filter | Date | — | FlowFilter |
| 5800 | Vendor Authorization No. | Code[35] | Specifies information about sales quotes, purchase quotes, or orders in earlier versions of the document. |  |
| 5801 | Return Shipment No. | Code[20] | — |  |
| 5802 | Return Shipment No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 5803 | Ship | Boolean | — |  |
| 5804 | Last Return Shipment No. | Code[20] | — | TableRelation [Table 6650 "Return Shipment Header"](../table/6650.md) (Return Shipment Header) |
| 7000 | Price Calculation Method | Enum "Price Calculation Method" | — | enum [Enum 7000 "Price Calculation Method"](../enum/7000.md) |
| 9000 | Assigned User ID | Code[50] | Specifies the ID of the user who is responsible for the document. | TableRelation [Table 91 "User Setup"](../table/91.md) (User Setup); DataClassification EndUserIdentifiableInformation |

## Keys

- Key1: Document Type, No., Doc. No. Occurrence, Version No. (clustered)
- Key2: Document Type, Buy-from Vendor No.
- Key3: Document Type, Pay-to Vendor No.
- Key4: Incoming Document Entry No.

## Events published

- `OnBeforeSetSecurityFilterOnRespCenter(var PurchaseHeaderArchive: Record "Purchase Header Archive"; var IsHandled: Boolean)` (integration)

## Procedures

- `ShowDimensions()`
- `SetSecurityFilterOnRespCenter()`

## Triggers

OnDelete

## Relations

- drill-down page [Page 5166 "Purchase List Archive"](../page/5166.md)
- lookup page [Page 5166 "Purchase List Archive"](../page/5166.md)
- Shipment Method Code: TableRelation [Table 10 "Shipment Method"](../table/10.md)
- Last Prepayment No.: TableRelation [Table 112 "Sales Invoice Header"](../table/112.md)
- Last Prepmt. Cr. Memo No.: TableRelation [Table 112 "Sales Invoice Header"](../table/112.md)
- Last Receiving No.: TableRelation [Table 120 "Purch. Rcpt. Header"](../table/120.md)
- Last Posting No.: TableRelation [Table 122 "Purch. Inv. Header"](../table/122.md)
- Purchaser Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Incoming Document Entry No.: TableRelation [Table 130 "Incoming Document"](../table/130.md)
- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- Location Filter: TableRelation [Table 14 "Location"](../table/14.md)
- Bal. Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- Sell-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Order Address Code: TableRelation [Table 224 "Order Address"](../table/224.md)
- Buy-from City: TableRelation [Table 225 "Post Code"](../table/225.md)
- Buy-from Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Pay-to City: TableRelation [Table 225 "Post Code"](../table/225.md)
- Pay-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Ship-to City: TableRelation [Table 225 "Post Code"](../table/225.md)
- Ship-to Post Code: TableRelation [Table 225 "Post Code"](../table/225.md)
- Buy-from Vendor No.: TableRelation [Table 23 "Vendor"](../table/23.md)
- Pay-to Vendor No.: TableRelation [Table 23 "Vendor"](../table/23.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- Transaction Type: TableRelation [Table 258 "Transaction Type"](../table/258.md)
- Transport Method: TableRelation [Table 259 "Transport Method"](../table/259.md)
- Bal. Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- Entry Point: TableRelation [Table 282 "Entry/Exit Point"](../table/282.md)
- Area: TableRelation [Table 284 "Area"](../table/284.md)
- Transaction Specification: TableRelation [Table 285 "Transaction Specification"](../table/285.md)
- Payment Method Code: TableRelation [Table 289 "Payment Method"](../table/289.md)
- Payment Terms Code: TableRelation [Table 3 "Payment Terms"](../table/3.md)
- Prepmt. Payment Terms Code: TableRelation [Table 3 "Payment Terms"](../table/3.md)
- No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Posting No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Prepayment No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Prepmt. Cr. Memo No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Receiving No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Return Shipment No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Tax Area Code: TableRelation [Table 318 "Tax Area"](../table/318.md)
- VAT Bus. Posting Group: TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Source Doc. Exists: CalcFormula [Table 38 "Purchase Header"](../table/38.md)
- Purchase Quote No.: TableRelation [Table 38 "Purchase Header"](../table/38.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Buy-from IC Partner Code: TableRelation [Table 413 "IC Partner"](../table/413.md)
- Pay-to IC Partner Code: TableRelation [Table 413 "IC Partner"](../table/413.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Buy-from Contact No.: TableRelation [Table 5050 "Contact"](../table/5050.md)
- Pay-to Contact No.: TableRelation [Table 5050 "Contact"](../table/5050.md)
- Campaign No.: TableRelation [Table 5071 "Campaign"](../table/5071.md)
- Last Archived Date: CalcFormula [Table 5109 "Purchase Header Archive"](../table/5109.md)
- No. of Archived Versions: CalcFormula [Table 5109 "Purchase Header Archive"](../table/5109.md)
- Amount: CalcFormula [Table 5110 "Purchase Line Archive"](../table/5110.md)
- Amount Including VAT: CalcFormula [Table 5110 "Purchase Line Archive"](../table/5110.md)
- Completely Received: CalcFormula [Table 5110 "Purchase Line Archive"](../table/5110.md)
- Comment: CalcFormula [Table 5125 "Purch. Comment Line Archive"](../table/5125.md)
- Responsibility Center: TableRelation [Table 5714 "Responsibility Center"](../table/5714.md)
- Last Return Shipment No.: TableRelation [Table 6650 "Return Shipment Header"](../table/6650.md)
- Spend Request No.: TableRelation [Table 6840 "Spend Request"](../table/6840.md)
- Language Code: TableRelation [Table 8 "Language"](../table/8.md)
- Buy-from Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Pay-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Ship-to Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- VAT Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)
- Assigned User ID: TableRelation [Table 91 "User Setup"](../table/91.md)
- Vendor Posting Group: TableRelation [Table 93 "Vendor Posting Group"](../table/93.md)

## Referenced by

6 fields in 4 objects relate to this table (TableRelation or CalcFormula).

- [Table 23 "Vendor"](../table/23.md): Buy-from No. Of Archived Doc., Pay-to No. Of Archived Doc.
- [Table 5109 "Purchase Header Archive"](../table/5109.md): Last Archived Date, No. of Archived Versions
- [Table 38 "Purchase Header"](../table/38.md): No. of Archived Versions
- [Table 5110 "Purchase Line Archive"](../table/5110.md): Document No.

## Pages and codeunits on this table

- [Page 30216 "APIV2 - Purch. Qt. Archives"](../page/30216.md) (source table)
- [Page 30218 "APIV2 - Purch. Ord. Archives"](../page/30218.md) (source table)
- [Page 30222 "APIV2 - P. Ret. Ord. Archives"](../page/30222.md) (source table)
- [Page 30230 "APIV2 - P. Bl. Ord. Archives"](../page/30230.md) (source table)
- [Page 5164 "Purchase Quote Archive"](../page/5164.md) (source table)
- [Page 5166 "Purchase List Archive"](../page/5166.md) (source table)
- [Page 5167 "Purchase Order Archive"](../page/5167.md) (source table)
- [Page 6623 "Blanket Purchase Order Archive"](../page/6623.md) (source table)
- [Page 6625 "Blanket Purch. Order Archives"](../page/6625.md) (source table)
- [Page 6644 "Purchase Return Order Archive"](../page/6644.md) (source table)
- [Page 6646 "Purchase Return List Archive"](../page/6646.md) (source table)
- [Page 9346 "Purchase Quote Archives"](../page/9346.md) (source table)
- [Page 9347 "Purchase Order Archives"](../page/9347.md) (source table)
- [Codeunit 321 "Purch.HeaderArch-Printed"](../codeunit/321.md) (codeunit runs on it)

## Extended by

- [Table extension 20511 "Subc. Purchase Header Arch"](../tableextension/20511.md)
- [Table extension 6803 "WHT Purchase Header Archive"](../tableextension/6803.md)

## 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 408 "DimensionManagement"](../codeunit/408.md) (1 call: `ShowDimensions → ShowDimensionSet`)
- [Codeunit 5700 "User Setup Management"](../codeunit/5700.md) (1 call: `SetSecurityFilterOnRespCenter → GetPurchasesFilter`)

## Recent changes

- 2026-07-31 [#8959 Deliverable 638799: Spend Requests in Base App](../../changes/bcapps/8959.md) (main, BC30, feature)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC27-29

## Countries that replace it

[AT](../../localizations/at.md), [AU](../../localizations/au.md), [BE](../../localizations/be.md), [CA](../../localizations/ca.md), [CH](../../localizations/ch.md), [DE](../../localizations/de.md), [IT](../../localizations/it.md), [MX](../../localizations/mx.md), [NZ](../../localizations/nz.md), [RU](../../localizations/ru.md), [US](../../localizations/us.md)

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