UpdateWorkOrderStatus

Update Work Order Status

Minor Business Rule

Object Name: B3100760

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose
This business function reads the Work Order Master table F4801 using work order number and work order 
document type.  It then updates the work order status field to the value passed into the function.


1.2Setup Notes and Prerequisites

• Call this function from any application requiring update of work order status
• Pass in work order number, type and a valid, desired status to be assigned to the work order

1.3Special Logic

None

2.Technical Specifications

2.4Processing 

1.Retrieve Work Order Master row from F4801 using WO Number (WADOCO = Input DOCO) and WO Document 
Type (WADCTO = Input DCTO)

2.If record is found

Assign
WASRST=Input SRST/* Work Order Status
DTAI=blanks/* Error Message for fetch success

Update F4801
else
Assign
DTAI='2488'/* Error Message for failed fetch
end




^

Data Structure

D3100760 - Update Work Order Status Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentNumberDOCOMATH_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.

szDocumentTypeDCTOcharNONENONE

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

szStatusCodeSRSTcharNONENONE

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.

cSuppressErrorMessageEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szNextStatusNTSTcharNONENONE

The next status for a work order, according to the work order activity rules,as the work order moves through the approval route. You must 
define a status code as a work order status in the Work Order Activity Rules table before you can use it as a next status.

Related Functions

None

Related Tables

F4801 Work Order Master File