F4801UpdateWOStatusforWorkflow

F4801 Update WO Status for Workflow

Minor Business Rule

Object Name: N4800190

Parent DLL: CMFG

Location: Client/Server

Language: NER

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


Call X4826 passing:  Input DOCO
Input DCTO
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


Call X4826 passing:  Input DOCO
Input DCTO
Input TYPS

F4827 SRJS

B9800100 Date

B9800100 Time

F4801 SBLI

EP48011


End if




Data Structure

D4800190 - F4801 Update WO Status for Workflow

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceEDOCOMATH_NUMERICNONENONE

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharNONENONE

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 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

cTypeWoTYPScharNONENONE

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 
selection criterion for work order approvals.

szStatusCodeWoSRSTcharNONENONE

A user defined code (00/SS) that describes the status of a work order, rate schedule, or engineering change order. Any status change from 
90 through 99  triggers the system to automatically update the completion date.

szApprovalTypeAPRTcharNONENONE

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 
options to specify a default approval type based on the type of work order.

cApprovalFlagEV01charNONENONE

An option that specifies the type of processing for an event.

cErrorCodeEV02charNONENONE

An option that specifies the type of processing for an event.

szProcessNamePROCNAMEcharOPTNONE

The unique identifier for a process. If no value is entered, a next number is assigned. Once assigned, the value cannot be changed.

Related Functions

None

Related Tables

None