> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/document-processing/classification-and-extraction/table-extraction-for-costing-element.md). Agents can also search and read this documentation through its [MCP server](https://docs.docbits.com/~gitbook/mcp).

# Table extraction for costing element

Costing elements are charges or other amounts represented as invoice table lines. If this feature is enabled and the document has extracted lines, DocBits can classify those lines against the costing elements configured for the organization. A reviewer can correct a line's classification in the document table.

## Enable the setting

1. Open **Settings → Document Types** and select **Classification and Extraction** below the **Document Types** entry.
2. Stay on **General** and expand **Extraction**.
3. Find **Table extraction for costing element** below the fields requested for table extraction. An administrator can turn on this switch for the organization.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-9e7b1064c75562e8b7ccb728c2b036a2c75eb444%2Fcosting-table-extraction-setting-en.png?alt=media" alt="The Extraction section of the Classification and Extraction settings with the switches Table Extraction, AI Table extraction, Use Table Extraction Vision, Use Structured Extraction, Table extraction for costing element, Auto extract tax code, Save extraction rules, Extract hidden fields and the AI model selector"><figcaption><p>The <strong>Table extraction for costing element</strong> switch sits between <strong>Use Structured Extraction (AI)</strong> and <strong>Auto extract tax code</strong>. It is off in the organization used for this guide.</p></figcaption></figure>

{% hint style="info" %}
The switch alone does not create costing elements or invoice rows. Configure the elements and import any required data first. The linked [costing-element setup guide](https://docs.docbits.com/infor-integration-and-configuration/importing-customer-master-data/m3/table-extraction-for-costing-element.md) explains the M3 example. Check [Classification and Extraction](https://docs.docbits.com/administration-and-setup/settings/document-processing/classification-and-extraction.md) for the other extraction controls.
{% endhint %}

## Review or correct a line

Open a document whose invoice table contains extracted lines and inspect the costing-element icon beside the relevant line. Select the icon to open the available classifications. Choose the correct configured costing element, or choose **Uncategorize** if the line is an ordinary item. Then review the resulting line and totals before saving the document.

If the icon or a classification is missing, first confirm that the document has extracted lines, the feature is enabled, and a costing element is configured for the organization.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/administration-and-setup/settings/document-processing/classification-and-extraction/table-extraction-for-costing-element.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
