ServiceMaint Subroutines
Service, maintenance, and IT request management
Subroutine count: 3
Table of Contents
VB_ITREQUEST.REV1
Signature: SUBROUTINE VB_ITREQUEST.REV1(CO,REQTYPE,REQNO,REQREC,ADDFLAG,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_ITREQUEST.REV1
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save or hard-delete IT request records in ITREQUESTS.1287 based on REQTYPE. DELETE performs a hard delete (removes the record entirely). Add/update uses MATWRITE. No audit trail logging. |
| Dangerous REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number (unused in this subroutine) |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to hard-delete, any other value to add/update |
| 2 | REQNO | in | IT request number (used directly as record key, not combined with CO) |
| 3 | REQREC | in | IT request record data as dynamic array (written to ITREQUESTS.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing (unused, no audit trail) |
| 5 | MESSAGE | out | Result message: ‘SAVED’ or ‘DELETED’ |
Tables Written: ITREQUESTS.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_ITREQUEST.REV1",
"args": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": ""
}
}VB_MAINTENANCE.REV1
Signature: SUBROUTINE VB_MAINTENANCE.REV1(CO,REQTYPE,REQNO,MAINTREC,ADDFLAG,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_MAINTENANCE.REV1
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save or hard-delete maintenance request records in MAINTENANCE.1287 based on REQTYPE. DELETE performs a hard delete (removes the record entirely). Add/update uses MATWRITE. No audit trail logging. |
| Dangerous REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number (unused in this subroutine) |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to hard-delete, any other value to add/update |
| 2 | REQNO | in | Maintenance request number (used directly as record key, not combined with CO) |
| 3 | MAINTREC | in | Maintenance record data as dynamic array (written to MAINTENANCE.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing (unused, no audit trail) |
| 5 | MESSAGE | out | Result message: ‘SAVED’ or ‘DELETED’ |
Tables Written: MAINTENANCE.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_MAINTENANCE.REV1",
"args": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": ""
}
}VB_SERVICE.REV1
Signature: SUBROUTINE VB_SERVICE(CO,REQTYPE,SERVNO,SER1287REC,ADDFLAG,MESSAGE)
Source: S:\LinuxShare\pro3prog\VBBASE\VB_SERVICE.REV1
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save or soft-delete service records in SERVICE.1287 based on REQTYPE. Soft-delete sets field 28 to ‘Y’. Add/update uses MATWRITE with audit trail logging via S0912. |
| Dangerous REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number (prepended to SERVNO to form record key) |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to soft-delete, any other value to add/update |
| 2 | SERVNO | in | Service record number (combined with CO to form record key) |
| 3 | SER1287REC | in | Service 1287 record data as dynamic array (written to SERVICE.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing |
| 5 | MESSAGE | out | Result message: ‘WRITE SUCCEEDED’ or ‘DELETE SUCCEEDED’ |
Tables Written: SERVICE.1287
API Call Example:
POST /api/admin/subroutine/call
{
"name": "VB_SERVICE.REV1",
"args": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": ""
}
}Last updated: 2026-02-05 11:29 PM