---
id: object/table/5801
type: object
title: Table 5801 "Cost Adj. Item Bucket"
summary: Table 5801 "Cost Adj. Item Bucket" in Base Application (Microsoft.Inventory.Costing). 13 fields, 4 public procedures. Introduced in BC24, still in BC30, changed in BC26, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: "24"
  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: 2b3da95224ca9e699c6906fcdbd3f9ee538c1c1321d5e57bb02e96dbb30dd62f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Costing/CostAdjItemBucket.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Costing/CostAdjItemBucket.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: 5801
name: Cost Adj. Item Bucket
namespace: Microsoft.Inventory.Costing
app: Base Application
extends: null
first_version: "24"
last_version: "30"
present_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 13
  procedures: 5
  events: 0
  subscribers: 0
relations:
  out: 2
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 5801 "Cost Adj. Item Bucket"

> Table 5801 "Cost Adj. Item Bucket" in Base Application (Microsoft.Inventory.Costing). 13 fields, 4 public procedures. Introduced in BC24, still in BC30, changed in BC26, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Cost Adj. Item Bucket |
| 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 | Line No. | Integer | Specifies the line number of the item batch. |  |
| 2 | Item Filter | Text[2048] | Specifies the item filter that is used to select the items to be adjusted. | TableRelation [Table 27 "Item"](../table/27.md) (Item where("Cost is Adjusted" = const(false))) |
| 3 | Status | Enum "Cost Adjustment Run Status" | Specifies the status of the cost adjustment process. | enum [Enum 5800 "Cost Adjustment Run Status"](../enum/5800.md) |
| 4 | Starting Date-Time | DateTime | Specifies the date and time when the cost adjustment process started. |  |
| 5 | Ending Date-Time | DateTime | Specifies the date and time when the cost adjustment process ended or was canceled. |  |
| 6 | Timeout (Minutes) | Integer | Specifies the number of minutes that the cost adjustment process is allowed to run before it is canceled. <small>via [Page 5811 "Cost Adjustment Runners"](../page/5811.md)</small> |  |
| 7 | Company | Text[30] | — | TableRelation Company |
| 8 | Post to G/L | Boolean | Specifies whether the cost adjustment process should post the cost adjustment entries to the general ledger. |  |
| 9 | Trace | Boolean | Specifies whether you want to trace the next cost adjustment run. It can be used to pinpoint issues in the cost adjustment process. |  |
| 11 | Last Error | Text[2048] | Specifies the last error that occurred during the cost adjustment process. |  |
| 12 | Last Error Call Stack | Text[2048] | Specifies the call stack of the last error that occurred during the cost adjustment process. |  |
| 13 | Failed Item No. | Code[20] | — | TableRelation [Table 27 "Item"](../table/27.md) |
| 20 | Reschedule Count | Integer | Specifies the number of times that the cost adjustment process is allowed to be retried if it fails. |  |

## Keys

- PK: Line No. (clustered)

## Procedures

- `CancelBucket(Cancel: Boolean)`
- `GetLastLineNo(): Integer`
- `AddItemsToBucket(var Item: Record Item)`
- `AddMissingItems()`

Plus 1 local procedures.

## Relations

- Failed Item No.: TableRelation [Table 27 "Item"](../table/27.md)
- Item Filter: TableRelation [Table 27 "Item"](../table/27.md)

## Pages and codeunits on this table

- [Page 5811 "Cost Adjustment Runners"](../page/5811.md) (source table)
- [Codeunit 5808 "Cost Adjustment Runner"](../codeunit/5808.md) (codeunit runs on it)
- [Codeunit 5822 "Cost Adjustment Bucket Runner"](../codeunit/5822.md) (codeunit runs on it)

## 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 46 "SelectionFilterManagement"](../codeunit/46.md) (2 calls: `AddItemsToBucket → GetSelectionFilterForItem`, `AddMissingItems → GetSelectionFilterForItem`)

## Across versions

- Present in: BC24-30
- Changed (declaration) in: BC26, 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). 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: "Cost Adj. Item Bucket")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
