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

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave 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 REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number (unused in this subroutine)
1REQTYPEinRequest type: ‘DELETE’ to hard-delete, any other value to add/update
2REQNOinIT request number (used directly as record key, not combined with CO)
3REQRECinIT request record data as dynamic array (written to ITREQUESTS.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing (unused, no audit trail)
5MESSAGEoutResult 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

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave 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 REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number (unused in this subroutine)
1REQTYPEinRequest type: ‘DELETE’ to hard-delete, any other value to add/update
2REQNOinMaintenance request number (used directly as record key, not combined with CO)
3MAINTRECinMaintenance record data as dynamic array (written to MAINTENANCE.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing (unused, no audit trail)
5MESSAGEoutResult 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

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave 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 REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number (prepended to SERVNO to form record key)
1REQTYPEinRequest type: ‘DELETE’ to soft-delete, any other value to add/update
2SERVNOinService record number (combined with CO to form record key)
3SER1287RECinService 1287 record data as dynamic array (written to SERVICE.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing
5MESSAGEoutResult 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