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
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save 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 REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to soft-delete, any other value to add/update |
| 2 | ECNNO | in | Engineering change number (ECN number, combined with CO to form record key) |
| 3 | EREC | in | Engineering change record data as dynamic array (written to ENG.CHG.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing |
| 5 | MESSAGE | out | Result 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
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save 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 REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to soft-delete, any other value to add/update |
| 2 | NCNNO | in | Non-conformance notice number (combined with CO to form record key) |
| 3 | RREC | in | NCN record data as dynamic array (written to NCN.CHG.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing |
| 5 | MESSAGE | out | Result 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
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [SAFE] safe |
| Pattern | List |
| Args | 3 |
| Description | Read 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:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | SQL | in | SQL SELECT statement to execute against NCN.CHG.1287 for filtering records |
| 1 | DATA | out | Output array: <1,n>=PartNo, <2,n>=ReasonForRejection, <3,n>=Completed, <4,n>=NCNNumber |
| 2 | MESSAGE | out | Error/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
| Property | Value |
|---|---|
| Status | [+] analyzed |
| Safety | [COND] conditional |
| Pattern | CRUD |
| Args | 6 |
| Description | Save 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 REQTYPE | DELETE, SAVE |
Arguments:
| Index | Name | Direction | Description |
|---|---|---|---|
| 0 | CO | in | Company number |
| 1 | REQTYPE | in | Request type: ‘DELETE’ to soft-delete, any other value to add/update |
| 2 | RFCNO | in | Redbook RFC number (request for change, combined with CO to form record key) |
| 3 | RREC | in | Redbook record data as dynamic array (written to REDBOOK.1287 on save) |
| 4 | ADDFLAG | in | Add flag: true if adding a new record, false if updating existing |
| 5 | MESSAGE | out | Result 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