---
id: object/table/6509
type: object
title: Table 6509 "Whse. Item Entry Relation"
summary: Table 6509 "Whse. Item Entry Relation" in Base Application (Microsoft.Warehouse.Ledger). 12 fields, 6 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: 9f5961361b3cf3591063ad4324d19c585d791df66f22efd4a44dcec0897d78c1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Warehouse/Ledger/WhseItemEntryRelation.Table.al
    title: src/Layers/W1/BaseApp/Warehouse/Ledger/WhseItemEntryRelation.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: 6509
name: Whse. Item Entry Relation
namespace: Microsoft.Warehouse.Ledger
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 12
  procedures: 8
  events: 2
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6509 "Whse. Item Entry Relation"

> Table 6509 "Whse. Item Entry Relation" in Base Application (Microsoft.Warehouse.Ledger). 12 fields, 6 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Properties

| Property | Value |
|---|---|
| Caption | Whse. 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 WhseItemEntryRelation: Record "Whse. Item Entry Relation"; TrackingSpecification: Record "Tracking Specification")` (integration)
  - subscribers: [Codeunit 6516 "Package Management"](../codeunit/6516.md) WhseItemEntryRelationInitFromTrackingSpec
- `OnAfterSetSourceFilter(var WhseItemEntryRelation: Record "Whse. Item Entry Relation"; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer; SourceKey: Boolean)` (integration)

## Procedures

- `InitFromTrackingSpec(TrackingSpecification: Record "Tracking Specification")`
- `SetSource(SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer)`
- `SetSource(SourceBatchName: Code[10]; SourceProdOrderLine: Integer)`
- `SetSourceFilter(SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer; SourceKey: Boolean)`
- `SetSourceFilter(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

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