SalesOrders Subroutines

Sales Order processing - SO details, open orders, shipping

Subroutine count: 6

Table of Contents


VB_DELETESO

Signature: SUBROUTINE VB_DELETESO(INDATA,MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_DELETESO

PropertyValue
Status[+] analyzed
Safety[WARN] dangerous
PatternProcess
Args2
DescriptionDeletes a sales order and all associated line items, updating credit, credit hold, and cross-reference files

Arguments:

IndexNameDirectionDescription
0INDATAinPacked input: <1>=CO (company), <2>=ORDNO (order number)
1MESSAGEoutResult message (e.g. ‘SO DELETED’, error if partially shipped)

Tables Written: OPEN.ORD.HEAD, OPEN.ORD.LINE, OPEN.ORD.HEAD.1287, OPEN.ORD.LINE.1287, CREDIT, CREDIT.HOLD, CREDIT.HOLD.XREF, CREDIT.RELEASE, OPEN.ORD.XREF

API Call Example:

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

VB_SHIP.REV1

Signature: SUBROUTINE VB_0312(CO,REQTYPE,CUSTNO,SHIPNO,SHIPREC,SHIPOEREC,ADDFLAG,MESSAGE)

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

PropertyValue
Status[+] analyzed
Safety[COND] conditional
PatternCRUD
Args8
DescriptionSaves or deletes ship-to address records based on REQTYPE; DELETE soft-deletes via flag, ADD/UPDATE writes full record
Dangerous REQTYPEDELETE, ADD, UPDATE

Arguments:

IndexNameDirectionDescription
0COinCompany number
1REQTYPEinRequest type: ‘DELETE’ for soft-delete, otherwise ADD/UPDATE
2CUSTNOinCustomer number
3SHIPNOinShip-to number
4SHIPRECinShip-to record data (dimensioned array, parsed from AM-delimited string)
5SHIPOERECinShip-to OE record data (dimensioned array, parsed from AM-delimited string)
6ADDFLAGinAdd flag: true if adding new record, false if updating existing
7MESSAGEoutResult message (‘SAVED’ or ‘DELETED’)

Tables Written: SHIPTO, SHIPTO.OE, SHIPTO.1287

API Call Example:

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

VB_SODET.REV1

Signature: SUBROUTINE VB_SODET.REV1(BEG.DATE, END.DATE, CUSTNO, DATA, MESSAGE)

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

PropertyValue
Status[X] deprecated
Args5
Superseded ByVB_SODET.REV4

Arguments:

IndexNameDirectionDescription
0BEG.DATEin
1END.DATEin
2CUSTNOin
3DATAout
4MESSAGEout

API Call Example:

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

VB_SODET.REV2

Signature: SUBROUTINE VB_SODET.REV1(BEG.DATE, END.DATE, CUSTNO, PARTNO, DATA, MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_SODET.REV2

PropertyValue
Status[X] deprecated
Args6
Superseded ByVB_SODET.REV4

Arguments:

IndexNameDirectionDescription
0BEG.DATEin
1END.DATEin
2CUSTNOin
3PARTNOin
4DATAout
5MESSAGEout

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_SODET.REV2",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  ""
             }
}

VB_SODET.REV3

Signature: SUBROUTINE VB_SODET.REV1(BEG.DATE, END.DATE, CUSTNO, PARTNO, DATA, MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_SODET.REV3

PropertyValue
Status[X] deprecated
Args6
Superseded ByVB_SODET.REV4

Arguments:

IndexNameDirectionDescription
0BEG.DATEin
1END.DATEin
2CUSTNOin
3PARTNOin
4DATAout
5MESSAGEout

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_SODET.REV3",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  ""
             }
}

VB_SODET.REV4

Signature: SUBROUTINE VB_SODET.REV1(BEG.DATE, END.DATE, CUSTNO, PARTNO, DATA, MESSAGE)

Source: S:\LinuxShare\pro3prog\VBBASE\VB_SODET.REV4

PropertyValue
Status[+] analyzed
Safety[SAFE] safe
PatternInquiry
Args6
DescriptionSales order detail inquiry - returns invoice/shipping data by date range, customer, and optional part number with cost, pricing, and ship-to details

Arguments:

IndexNameDirectionDescription
0BEG.DATEinBeginning invoice date (MM/DD/YY format)
1END.DATEinEnding invoice date (MM/DD/YY format)
2CUSTNOinCustomer number, or ‘ALL’ for all customers
3PARTNOinPart number filter (optional, empty string for all parts)
4DATAoutMulti-valued result: <1>=CustNo, <2>=CustName, <3>=PONo, <4>=SONo, <5>=OrdDate, <6>=InvNo, <7>=InvDate, <8>=PromDate, <9>=ShipDate, <10>=PartNo, <11>=Description, <12>=MRP, <13>=UM, <14>=ShipQty, <15>=UnitPrice, <16>=ExtPrice, <17>=DiscountPct, <18>=MtlCost, <19>=OutCost, <20>=LbrHrs, <21>=ShipCity, <22>=ShipState, <23>=ShipZip, <24>=CustPartNo
5MESSAGEoutError/status message (e.g. ‘NO RECORDS SELECTED.’)

API Call Example:

POST /api/admin/subroutine/call
{
    "name":  "VB_SODET.REV4",
    "args":  {
                 "0":  "",
                 "1":  "",
                 "2":  "",
                 "3":  ""
             }
}


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