Process irregularities - Code: PROC. IRREGULARITIES
General
This page describes the PROC. IRREGULARITIES function of the TMS Irreg Resolution Functions function set. Use it in a step on an irregularity to process the irregularities of the same order in one go, for example to set the same status on all of them.
The function searches for the irregularities of the same order as the irregularity it runs on, including that irregularity. It optionally sets a new status on every irregularity it finds and optionally runs a step.
Narrow the search
By default, the function searches all irregularities of the order. Use the following parameters to narrow the search:
- Enable LINEFILTER to only include irregularities of the same order line.
- Enable DETAILLINEFILTER to only include irregularities of the same carrier line.
- Use CODEFILTER and STATUSFILTER to only include irregularities with specific irregularity codes or statuses. These parameters accept a filter expression.
- Use FROMTOP to skip the first number of irregularities in the search results. The function only processes the irregularities after that number.
Parameters
The following parameters are applicable on this function.
| Name | Value | Description |
|---|---|---|
| FROMTOP | Number. | Optional. The number of irregularities to skip at the start of the search results. |
| LINEFILTER | Yes or no. | Optional. Only include irregularities of the same order line. |
| DETAILLINEFILTER | Yes or no. | Optional. Only include irregularities of the same carrier line. |
| CODEFILTER | A filter. | Optional. Only include irregularities with these irregularity codes. |
| STATUSFILTER | A filter. | Optional. Only include irregularities with these status codes. |
| NEW STATUS | A status code. | Optional. The status to set on each irregularity. |
| REASON CODE / REASON DESCRIPTION | Reason code / free text. | Optional. The reason stored with the status change. |
| STEPCODE | A step. | Optional. The step to run. |