> 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/infor-integration-and-configuration/importing-customer-master-data/m3/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

If DocBits reports **“Costing elements are not properly configured”** when you open a document, ask an administrator to check both the imported costing element data and the table extraction setting. This guide shows where to prepare the data and where to check it in DocBits.

## 1. Prepare the M3 export

1. In your M3 environment, open **PPS280** and select the costing element rows needed by your organisation. The menus and available rows depend on your M3 tenant and permissions.
2. If your M3 screen offers **Tools → Export to Excel**, export the selected rows or all required rows. Check the scope before exporting: the historical dialog shown below has a maximum row count.
3. Keep the original export. Work on a copy so you can check each mapped column against its M3 source.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-b2b57a1c088205d0db51424a2e268cce175ab785%2Fimage%20(431).png?alt=media" alt="Historical M3 PPS280 example with the Tools menu opened for an Excel export"><figcaption><p>Historical M3 example: locate the export action in your own tenant.</p></figcaption></figure>

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-2ad8d6e99756c4df8fcb2235043aca4a32d6ba73%2Fimage%20(432).png?alt=media" alt="Historical M3 Export to Excel dialog with selected rows, all rows and data format options"><figcaption><p>Historical M3 example: choose the rows and format deliberately.</p></figcaption></figure>

## 2. Prepare a CSV for DocBits

Map the export to these column names before saving it as CSV. Check the meaning of each source column with your M3 administrator; the letter positions in an Excel export are not a stable interface.

| DocBits column           | Value to check in the M3 export                      |
| ------------------------ | ---------------------------------------------------- |
| `costing_element`        | Costing element code                                 |
| `description`            | Readable element name                                |
| `charge_operator`        | Charge operator                                      |
| `charge_type`            | Charge type                                          |
| `distribution_method`    | Distribution method                                  |
| `distribution_type`      | Distribution type                                    |
| `charge_sequence_number` | Sequence number, when supplied by your configuration |

Remove unrelated columns from the CSV copy. Review a few rows, including special characters and empty values, before importing. The screenshot below is an **older M3 spreadsheet example**, not a DocBits import template.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-20366348f30ba041406219d9ecc30fb3f8713508%2Fimage%20(106).png?alt=media" alt="Historical M3 spreadsheet with costing element codes, names and additional source columns before mapping"><figcaption><p>Use the spreadsheet only to identify source data; map its columns by meaning.</p></figcaption></figure>

## 3. Import in DocBits

1. Open **Settings → Document Processing → Lookup Master Data**.
2. In **Imported**, select the **plus** button. This opens **Upload CSV**.
3. Enter `costing_element` as **Data Type** and select your CSV under **File**.
4. Set **Delimiter** to the separator used by your file. The current dialog may initially show `;`; do not assume the file uses a comma.
5. Review **On Conflict**, **Replace All** and **Auto Generate Id** with your administrator before uploading. These choices can change existing imported data. **Cancel** closes the dialog without importing; **Upload** starts the import after the CSV and options have been checked.
6. After import, open the new entry under **Imported** and confirm that the expected costing element codes and descriptions are visible.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-8eab4fc42b1ac9829b59a180e8fba22fed2f1d15%2Fdbdc-185-supplier-en.png?alt=media" alt="Current English DocBits Lookup Master Data screen with the Imported group and its plus button"><figcaption><p>The plus button beside Imported opens the CSV upload dialog.</p></figcaption></figure>

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-214ce47ef36962aaa2bc083546cd43d5234ed53a%2Fdbdc160-upload-csv-en.png?alt=media" alt="Current English Upload CSV dialog showing Data Type, File, Delimiter, On Conflict, Replace All and Auto Generate Id"><figcaption><p>Match the delimiter to your file and review the replacement options before uploading.</p></figcaption></figure>

## 4. Check the extraction setting

Open **Settings → Document Processing → Classification and Extraction → Extraction** and find **Table extraction for costing element**. Check that the setting is configured for the document type you are testing. Then reopen a suitable document and confirm the original configuration error is gone. If it remains, give your administrator the document type, costing element code and the exact error text.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-5a0c3c375f1e35283869088359a22eacc676a661%2Fimage%20(430).png?alt=media" alt="Historical DocBits Classification and Extraction screen showing the Table extraction for costing element setting"><figcaption><p>The current setting is under Classification and Extraction; screen layout may differ from this historical image.</p></figcaption></figure>

The Sandbox screenshots above show the current controls in the synthetic **DocBits Documentation Test A** organisation. No M3 export or CSV was uploaded while preparing this guide, so the import outcome must be checked in your own environment.


---

# 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/infor-integration-and-configuration/importing-customer-master-data/m3/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.
