> For the complete documentation index, see [llms.txt](https://docs.tpi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tpi.dev/guide/development-mode/rtn-code-management.md).

# Rtn Code Management

<mark style="color:green;">**Path: Development Mode > Rtn Code Management**</mark>

In order to control the number of the warning message displayed when the system reports errors, corresponding system messages can be searched according to the returned code.

If errors occurred on the system, engineers will compile a return code for this error, and define an error message for the return code on the Rtn Code Management page.

1. If users made input errors, a warning prompt displaying the message “**1298 - No information found**” will pop up.

<div align="left"><figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/bhQc4Xeejnv8ANwd3bGp/image.png" alt="" width="313"><figcaption></figcaption></figure></div>

2. This error message is because the engineer defined the “**user input error**” operation error as “**1298**,” and related personnel will go to the Rtn Code Management page and define the “**1298**” message as “**No information found**”.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/zInLGw001JxrT5bjkSqG/image.png" alt=""><figcaption></figcaption></figure>

3. **Rtn Code Management** functions similarly to [Function Management](/guide/development-mode/function-management.md), displaying names according to the browser's language settings. The regional language is used to facilitate the language switching.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/jJeZ2n3QuAMUKQ6IU3sT/image.png" alt=""><figcaption></figcaption></figure>

### Create Return Code <a href="#toc169186014" id="toc169186014"></a>

In this section, you can find instructions on how to create return codes.

{% hint style="warning" %}
Return codes must be created by TPIsoftware personnel. General users cannot define or trigger return code events. Therefore, return codes created by users will not be effective and are only for review purposes. If you need to create a return code, please contact TPIsoftware personnel.
{% endhint %}

1. Click **Create** to access the return code creation page.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/87GtsjkScfVdnDQaoMeb/image.png" alt=""><figcaption></figcaption></figure>

2. Fill in the data or make selections as instructed below. The fields marked with “<mark style="color:red;">\*</mark>” are required.
   * **Return code**<mark style="color:red;">\*</mark>**:** Usually a number provided by engineers; custom definitions have no effect.
   * **Locale**<mark style="color:red;">\*</mark>**:** Refers to the language in which the return code messages are displayed; must match the language of the browser.\
     For more information, refer to [Switch and Query Languages](/guide/development-mode/function-management.md#switch-and-query-languages).
   * **Return Message**<mark style="color:red;">\*</mark>**:** The message that the system prompts to the user when incidents are triggered. Such as: *1298 - No information found*.
   * **Return Description:** Detailed descriptions of the return code.
3. Click **Create** to save and exit.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/iKk1YS5ZlBofpLS6JCt6/image.png" alt=""><figcaption></figcaption></figure>

### Search Return Code <a href="#toc169186015" id="toc169186015"></a>

Enter the keywords to search for the desired return code.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/UN6bwcTw3cPwXVDQ0rZO/image.png" alt=""><figcaption></figcaption></figure>

### Import and Export Return Code

To modify multiple return codes at once, click **Export** to export the return codes as an .xlsx file. Modify the desired fields, click on the ![](https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/FOKlaQJKDajSwg1qp6uN/image.png) icon, and then click **Import** to import the modified file without renaming it.

The rules are as follows:

1. Based on *TSMP\_RTN\_CODE + LOCALE*, if a duplicate exists, it will be updated; if no duplicate exists, a new record will be added.
2. This is mainly used for multilingual support.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/CiR3A5ioR6uGjTssrcc6/image.png" alt=""><figcaption></figcaption></figure>

### Update Return Code <a href="#toc169186016" id="toc169186016"></a>

1. Search for the return code to modify, and click the ![](https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/739JgTc3HcsFUqzgnNh6/6.png) icon to access the update page.

{% hint style="warning" %}
Those marked with “<mark style="color:red;">\*</mark>” are required to make changes.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/ygpqchmWDtJLxap7EJQ8/image.png" alt=""><figcaption></figcaption></figure>

2. Modify the desired fields, and click **Update** to save and exit.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/UOavDaGZVV7vRRyoK3y1/image.png" alt=""><figcaption></figcaption></figure>

### Delete Return Code <a href="#toc169186017" id="toc169186017"></a>

In this section, you can find instructions on how to delete return codes.

1. Search for the return code to delete, and click on the ![](https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/lpWwUnZUrCZGSRQ4VA2F/9.png) icon to proceed.

<figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/BHD42NcNCej23Gy6LV2y/image.png" alt=""><figcaption></figcaption></figure>

2. A warning prompt displaying the message “**Confirm Delete?**” will pop up. Click **Confirm** to delete the return code and exit.

<div align="left"><figure><img src="https://content.gitbook.com/content/0choIC1BbdPOkKWOYGgk/blobs/yC8L7msqVUVBYOkUaY2w/image.png" alt="" width="535"><figcaption></figcaption></figure></div>

<br>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tpi.dev/guide/development-mode/rtn-code-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
