---
id: object/table/6507
type: object
title: Table 6507 "Item Entry Relation"
summary: Table 6507 "Item Entry Relation" in Base Application (Microsoft.Inventory.Item). 12 fields, 20 public procedures, 8 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 949f207b784701dbe7dc9be4128289875eb855601c372cbcbc9c0978c8e58315
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Item/ItemEntryRelation.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Item/ItemEntryRelation.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: 6507
name: Item Entry Relation
namespace: Microsoft.Inventory.Item
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"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 12
  procedures: 28
  events: 8
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 3
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6507 "Item Entry Relation"

> Table 6507 "Item Entry Relation" in Base Application (Microsoft.Inventory.Item). 12 fields, 20 public procedures, 8 events. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Item Entry Relation |
| 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 | Item Entry No. | Integer | — | TableRelation [Table 32 "Item Ledger Entry"](../table/32.md) (Item Ledger Entry) |
| 10 | Source Type | Integer | — |  |
| 11 | Source Subtype | Option | — | OptionCaption: 0,1,2,3,4,5,6,7,8,9,10 |
| 12 | Source ID | Code[20] | — |  |
| 13 | Source Batch Name | Code[10] | — |  |
| 14 | Source Prod. Order Line | Integer | — |  |
| 15 | Source Ref. No. | Integer | — |  |
| 20 | Serial No. | Code[50] | — |  |
| 21 | Lot No. | Code[50] | — |  |
| 30 | Order No. | Code[20] | — |  |
| 31 | Order Line No. | Integer | — |  |
| 6515 | Package No. | Code[50] | — |  |

## Keys

- Key1: Item Entry No. (clustered)
- Key2: Source ID, Source Type, Source Subtype, Source Ref. No., Source Prod. Order Line, Source Batch Name
- Key3: Order No., Order Line No.

## Events published

- `OnAfterInitFromTrackingSpec(var ItemEntryRelation: Record "Item Entry Relation"; TrackingSpecification: Record "Tracking Specification")` (integration)
- `OnAfterCopyTrackingFromItemLedgEntry(var ItemEntryRelation: Record "Item Entry Relation"; ItemLedgerEntry: Record "Item Ledger Entry")` (integration)
  - subscribers: [Codeunit 6516 "Package Management"](../codeunit/6516.md) ItemEntryRelationCopyTrackingFromItemLedgEntry
- `OnAfterCopyTrackingFromItemJnlLine(var ItemEntryRelation: Record "Item Entry Relation"; ItemJnlLine: Record "Item Journal Line")` (integration)
  - subscribers: [Codeunit 6516 "Package Management"](../codeunit/6516.md) ItemEntryRelationCopyTrackingFromItemJnlLine
- `OnAfterCopyTrackingFromSpec(var ItemEntryRelation: Record "Item Entry Relation"; TrackingSpecification: Record "Tracking Specification")` (integration)
  - subscribers: [Codeunit 6516 "Package Management"](../codeunit/6516.md) ItemEntryRelationCopyTrackingFromSpec
- `OnAfterSetSource(ItemEntryRelation: Record "Item Entry Relation"; var SourceType: Integer; var SourceSubtype: Option; var SourceID: Code[20]; var SourceRefNo: Integer)` (integration)
- `OnAfterSetSource2(ItemEntryRelation: Record "Item Entry Relation"; var SourceBatchName: Code[10]; var SourceProdOrderLine: Integer)` (integration)
- `OnAfterSetOrderInfo(ItemEntryRelation: Record "Item Entry Relation"; var OrderNo: Code[20]; var OrderLineNo: Integer)` (integration)
- `OnAfterSetSourceFilter(var ItemEntryRelation: Record "Item Entry Relation"; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer; SourceKey: Boolean)` (integration)

## Procedures

- `InitFromTrackingSpec(TrackingSpecification: Record "Tracking Specification")`
- `CopyTrackingFromItemLedgEntry(ItemLedgerEntry: Record "Item Ledger Entry")`
- `CopyTrackingFromItemJnlLine(ItemJournalLine: Record "Item Journal Line")`
- `CopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification")`
- `TransferFieldsSalesShptLine(var SalesShipmentLine: Record "Sales Shipment Line")`
- `TransferFieldsReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line")`
- `TransferFieldsPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line")`
- `TransferFieldsReturnShptLine(var ReturnShipmentLine: Record "Return Shipment Line")`
- `TransferFieldsTransShptLine(var TransferShipmentLine: Record "Transfer Shipment Line")`
- `TransferFieldsTransRcptLine(var TransferReceiptLine: Record "Transfer Receipt Line")`
- `TransferFieldsPostedAsmHeader(var PostedAssemblyHeader: Record "Posted Assembly Header")`
- `TransferFieldsPostedAsmLine(var PostedAssemblyLine: Record "Posted Assembly Line")`
- `TransferFieldsInvtRcptLine(var InvtReceiptLine: Record "Invt. Receipt Line")`
- `TransferFieldsInvtShptLine(var InvtShipmentLine: Record "Invt. Shipment Line")`
- `TransferFieldsDirectTransLine(var DirectTransLine: Record "Direct Trans. Line")`
- `SetSource(SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer)`
- `SetSource2(SourceBatchName: Code[10]; SourceProdOrderLine: Integer)`
- `SetSourceFilter(SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer; SourceKey: Boolean)`
- `SetSourceFilter2(SourceBatchName: Code[10]; SourceProdOrderLine: Integer)`
- `SetOrderInfo(OrderNo: Code[20]; OrderLineNo: Integer)`

## Relations

- Item Entry No.: TableRelation [Table 32 "Item Ledger Entry"](../table/32.md)

## Across versions

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

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: "Item Entry Relation")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
