---
id: object/table/6164
type: object
title: Table 6164 "E-Doc. Order Match"
summary: Table 6164 "E-Doc. Order Match" in EDocument (Microsoft.eServices.EDocument.OrderMatch). 14 fields, 3 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: 5d4d801e4dba4538faf2eed85b6667ac424925c37e981bc885f772dc8e829dd3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/OrderMatching/EDocOrderMatch.Table.al
    title: src/Apps/W1/EDocument/app/src/Processing/OrderMatching/EDocOrderMatch.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/10675
    - change/bcapps/9572
object_type: table
object_id: 6164
name: E-Doc. Order Match
namespace: Microsoft.eServices.EDocument.OrderMatch
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: 14
  procedures: 3
  events: 0
  subscribers: 0
relations:
  out: 4
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6164 "E-Doc. Order Match"

> Table 6164 "E-Doc. Order Match" in EDocument (Microsoft.eServices.EDocument.OrderMatch). 14 fields, 3 public procedures. Introduced in BC29, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| 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 Order No. | Code[20] | — | TableRelation [Table 38 "Purchase Header"](../table/38.md) ("Purchase Header"."No." where("Document Type" = const(Order))) |
| 2 | Document Line No. | Integer | Specifies Purchase Order Line No. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> | TableRelation [Table 39 "Purchase Line"](../table/39.md) ("Purchase Line"."Line No." where("Document Type" = const(Order), "Document No." = field("Document Order No."))) |
| 3 | E-Document Entry No. | Integer | — | TableRelation [Table 6121 "E-Document"](../table/6121.md) (E-Document) |
| 4 | E-Document Line No. | Integer | Specifies E-Document Imported Line No. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> | TableRelation [Table 6165 "E-Doc. Imported Line"](../table/6165.md) ("E-Doc. Imported Line"."Line No." where("E-Document Entry No." = field("E-Document Entry No."))) |
| 5 | Quantity | Integer | — | obsolete Pending 26.0; #if not CLEANSCHEMA29 |
| 6 | E-Document Direct Unit Cost | Decimal | Specifies the direct unit cost of the E-Document line. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> |  |
| 7 | PO Direct Unit Cost | Decimal | Specifies the direct unit cost of the purchase order line. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> |  |
| 8 | Line Discount % | Decimal | Discount % <small>caption</small> |  |
| 9 | Unit of Measure Code | Code[20] | Unit of Measure <small>caption</small> |  |
| 10 | E-Document Description | Text[100] | Specifies the description of matched E-Document line. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> |  |
| 11 | PO Description | Text[100] | Specifies the description of matched Purchase Order Line. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> |  |
| 12 | Fully Matched | Boolean | — |  |
| 13 | Precise Quantity | Decimal | Specifies the quantity that was matched for the imported line to the purchase order line. <small>via [Page 6164 "E-Doc. Order Match"](../page/6164.md)</small> |  |
| 14 | Learn Matching Rule | Boolean | — |  |

## Keys

- Key1: Document Order No., Document Line No., E-Document Entry No., E-Document Line No. (clustered)
- Key2: E-Document Entry No., E-Document Line No., Document Order No.

## Procedures

- `GetPurchaseLine(): Record "Purchase Line"`
- `GetImportedLine(): Record "E-Doc. Imported Line"`
- `InsertMatch(var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary; var TempEDocMatches: Record "E-Doc. Order Match" temporary)`

## Relations

- Document Order No.: TableRelation [Table 38 "Purchase Header"](../table/38.md)
- Document Line No.: TableRelation [Table 39 "Purchase Line"](../table/39.md)
- E-Document Entry No.: TableRelation [Table 6121 "E-Document"](../table/6121.md)
- E-Document Line No.: TableRelation [Table 6165 "E-Doc. Imported Line"](../table/6165.md)

## Pages and codeunits on this table

- [Page 6164 "E-Doc. Order Match"](../page/6164.md) (source table)

## Recent changes

- 2026-08-27 [#10675 Temporarily suppress AS0072 (ObsoleteTag 29.0) on 10 Base App elements for v30 prep](../../changes/bcapps/10675.md) (main, BC30, fix)
- 2026-07-22 [#9572 Obsolete E-Document Purchase Order Matching Copilot](../../changes/bcapps/9572.md) (main, BC30, obsoletion)

## Across versions

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

## Deprecations

- procedure InsertMatch: guarded (#if not CLEAN29)
- field Quantity: Pending 26.0 (#if not CLEANSCHEMA29), "This field has been replaced by the Precise Quantity field."

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