Functional Description
Purpose
The purpose of F4801 Update WO Status for Workflow is to update the status of the work order based on the next status in the Work Order
Activity Rules (F4826) or the reject status in the WO Approval Routing table (F4827). Once the status has been updated, the other activities defined in the
Work Order Activity Rules will be performed (update Subledger Inactive and Maintenance Status) and the Status History table (F1307) will be updated.
Setup Notes and Prerequisites
Special Logic
Technical Specification
// Retrieve housekeeping information
Call B9800100
// When Update Flag = 1, retrieve next status from WO Activity Rules
If Input EV01 = 1
Fetch F4826 record using: Input DCTO
Input TYPS
Input SRST
Update F4801 for Input DOCO: SRST = F4826 NTST
USER = B9800100 User
PID = EP48011
JOBN = B9800100 Workstation
UPMJ = B9800100 Date
TDAY = B9800100 Time
// Update other activities from WO Activity Rules
Input TYPS
F4826 NTST
B9800100 Date
B9800100 Time
F4801 SBLI
EP48011
End if
// When Update Flag = 2, retrieve reject status from WO Approval Routing
If Input EV01 = 2
Fetch F4827 record using: Input DCTO
Input TYPS
Input APRT
Input SRST
Update F4801 for Input DOCO: SRST = F4827 SRJS
USER = B9800100 User
PID = EP48011
JOBN = B9800100 Workstation
UPMJ = B9800100 Date
TDAY = B9800100 Time
// Update other activities from WO Activity Rules
Input TYPS
F4827 SRJS
B9800100 Date
B9800100 Time
F4801 SBLI
EP48011
End if
D4800190 - F4801 Update WO Status for Workflow
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnDocumentOrderInvoiceE | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
szOrderType | DCTO | char | NONE | NONE |
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has
| ||||
cTypeWo | TYPS | char | NONE | NONE |
A user defined code (00/TY) that indicates the classification of a work order or engineering change order.
You can use work order type as a
| ||||
szStatusCodeWo | SRST | char | NONE | NONE |
A user defined code (00/SS) that describes the status of a work order, rate schedule, or engineering change order. Any status change from
| ||||
szApprovalType | APRT | char | NONE | NONE |
A user defined code (system 48, type AP) indicating the type of work order approval path that a work order follows. You can use processing
| ||||
cApprovalFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cErrorCode | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szProcessName | PROCNAME | char | OPT | NONE |
The unique identifier for a process. If no value is entered, a next number is assigned. Once assigned, the value cannot be changed. |
None |
None |