Quality Subroutines

Quality/Redbook/NCN/ECN - engineering changes, non-conformance

Subroutine count: 4

Table of Contents


VB_ENGCHG.REV1

Signature: SUBROUTINE VB_ENGCHG(CO,REQTYPE,ECNNO,EREC,ADDFLAG,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_ENGCHG.REV1

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave or soft-delete engineering change records in ENG.CHG.1287 based on REQTYPE. Supports add, update (MATWRITE), and soft-delete (sets field 23 to ‘Y’) with audit trail logging via S0911.
Dangerous REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinRequest type: ‘DELETE’ to soft-delete, any other value to add/update
2ECNNOinEngineering change number (ECN number, combined with CO to form record key)
3ERECinEngineering change record data as dynamic array (written to ENG.CHG.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing
5MESSAGEoutResult message: ‘SAVED’ or ‘DELETED’

Tables Written: ENG.CHG.1287

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_ENGCHG.REV1",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  "",
                 "4":  ""
             }
}

VB_NCN.REV1

Signature: SUBROUTINE VB_NCN(CO,REQTYPE,NCNNO,RREC,ADDFLAG,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_NCN.REV1

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave or soft-delete non-conformance notice (NCN) records in NCN.CHG.1287 based on REQTYPE. Supports add, update (MATWRITE), and soft-delete (sets field 51 to ‘Y’) with audit trail logging via S0911.
Dangerous REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinRequest type: ‘DELETE’ to soft-delete, any other value to add/update
2NCNNOinNon-conformance notice number (combined with CO to form record key)
3RRECinNCN record data as dynamic array (written to NCN.CHG.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing
5MESSAGEoutResult message: ‘SAVED’ or ‘DELETED’

Tables Written: NCN.CHG.1287

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_NCN.REV1",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  "",
                 "4":  ""
             }
}

VB_NCN1287

Signature: SUBROUTINE VB_NCN1287(SQL,DATA,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_NCN1287

PropertyValue
Status[+] analyzed
Safety[SAFE] safe
PatternList
Args3
DescriptionRead a list of non-conformance notice records from NCN.CHG.1287 by executing a SQL select statement. Returns part number, reason for rejection, completion status, and NCN number for each matching record.

Arguments:

IndexNameDirectionDescription
0SQLinSQL SELECT statement to execute against NCN.CHG.1287 for filtering records
1DATAoutOutput array: <1,n>=PartNo, <2,n>=ReasonForRejection, <3,n>=Completed, <4,n>=NCNNumber
2MESSAGEoutError/status message (empty on success)

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_NCN1287",
    "args":  {
                 "0":  ""
             }
}

VB_REDBOOK.REV1

Signature: SUBROUTINE VB_REDBOOK(CO,REQTYPE,RFCNO,RREC,ADDFLAG,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_REDBOOK.REV1

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args6
DescriptionSave or soft-delete Redbook (request for change) records in REDBOOK.1287 based on REQTYPE. Supports add, update (MATWRITE), and soft-delete (sets field 23 to ‘Y’) with audit trail logging via S0911. Has a notification stub (PROCESS.NOTIFY) that is currently disabled.
Dangerous REQTYPEDELETE, SAVE

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinRequest type: ‘DELETE’ to soft-delete, any other value to add/update
2RFCNOinRedbook RFC number (request for change, combined with CO to form record key)
3RRECinRedbook record data as dynamic array (written to REDBOOK.1287 on save)
4ADDFLAGinAdd flag: true if adding a new record, false if updating existing
5MESSAGEoutResult message: ‘SAVED’ or ‘DELETED’

Tables Written: REDBOOK.1287

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_REDBOOK.REV1",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  "",
                 "4":  ""
             }
}


Last updated: 2026-02-05 11:29 PM