TMS Event Function Line 3100 Example Critera Function using compare
General
The following Json-code can be copied to the Criteria Function Set:
Note
Check the values used in the function. In each envirionment specific criteria may be applicable.
Functional
{
"FunctionSet": {
"TableNo": 11172786,
"DataType": "34047",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "COMPARE",
"Parameters": [
{
"ParameterName": "VALUE1",
"DataType": "0",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"Parameters": [
{
"ParameterName": "FIELDNO",
"Value": "522"
}
]
}
]
}
}
},
{
"ParameterName": "VALUE2",
"Value": "ALL",
"DataType": "31488"
}
]
},
{
"EntryNo": "20000",
"CodeunitID": "11172846",
"FunctionCode": "COMPARE",
"Indentation": "1",
"Parameters": [
{
"ParameterName": "VALUE1",
"DataType": "0",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"Parameters": []
}
]
}
}
},
{
"ParameterName": "VALUE2",
"Value": "3"
}
]
},
{
"EntryNo": "30000",
"CodeunitID": "11172846",
"FunctionCode": "COMPARE",
"Indentation": "2",
"Parameters": [
{
"ParameterName": "VALUE1",
"DataType": "0",
"ResultFunctionSetID": {
"FunctionSet": {
"TableNo": 11172786,
"DataType": "31488",
"Entries": [
{
"EntryNo": "10000",
"CodeunitID": "11172846",
"FunctionCode": "FIELD",
"Parameters": [
{
"ParameterName": "FIELDNO",
"Value": "81"
}
]
}
]
}
}
},
{
"ParameterName": "OPERATOR",
"Value": "=>"
},
{
"ParameterName": "VALUE2",
"Value": "15*",
"DataType": "31488"
}
]
}
]
}
}