Table of Contents

TMS Event Function Line 2110 Set Status to Change

General

The following Json-code can be copied to the Execute Function Set:

Functional

{
    "FunctionSet": {
        "TableNo": 11172786,
        "Entries": [
            {
                "EntryNo": "10000",
                "CodeunitID": "11172846",
                "FunctionCode": "SET STATUS",
                "Description": "Set Trip status 50-INPROGRESS Self",
                "TableFilter": "TMS Document Header: Document Type=Trip,Status=50-INPROGRESS,Carrier No.=''",
                "Parameters": [
                    {
                        "ParameterName": "NEW STATUS",
                        "Value": "51-EDIT"
                    }
                ]
            },
            {
                "EntryNo": "20000",
                "CodeunitID": "11172846",
                "FunctionCode": "SET STATUS",
                "Description": "Set Trip status 50-INPROGRESS Carrier",
                "TableFilter": "TMS Document Header: Document Type=Trip,Status=50-INPROGRESS,Carrier No.=<>''",
                "Parameters": [
                    {
                        "ParameterName": "NEW STATUS",
                        "Value": "21-EDIT"
                    }
                ]
            },
            {
                "EntryNo": "30000",
                "CodeunitID": "11172846",
                "FunctionCode": "SET STATUS",
                "Description": "Set Trip status 40-SENT",
                "TableFilter": "TMS Document Header: Document Type=Trip,Status=40-SENT",
                "Parameters": [
                    {
                        "ParameterName": "NEW STATUS",
                        "Value": "21-EDIT"
                    }
                ]
            }
        ]
    }
}