GetNextWOLineNoForWOTextRow

Get Next WO Line No For WO Text Row

Major Business Rule

Object Name: B4800020

Parent DLL: CMFG

Location: Client/Server

Language: C

Functional Description

Purpose

Retrieve a row from the Work Order Text table (F4802) with the input keys (document number, document 
type, suffix, record type), to return the last (hightest) work order line number.


Setup Notes and Prerequisites


Special Logic




Technical Specification



1. Fetch a row with the input keys,DOCO, DCTO, SFXO, TYPR, and with LINS in descending order.


2. If a rows is not found, return the LINS as 0.


3. If a row is found, return LINS.



Data Structure

D4800020 - Get Next WO Line No For WO Text Row

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

szSuffixSFXOcharNONENONE

In the A/R and A/P systems, a code that corresponds to the pay item. In the Sales Order and Procurement systems, this code identifies 
multiple transactions for an original order. For purchase orders, the code is always 000. For sales orders with multiple partial receipts against an 
order, the first receiver used to record receipt has a suffix of 000, the next has a suffix of 001, the next 002, and so on.

cRecordTypeTYPRcharNONENONE

The detail specification record type. Record types are user defined. You can set them up on the Detail Specification Types form and use 
them to describe certain types of work order or engineering change order information.

mnWOLineNumberLINSMATH_NUMERICNONENONE

The Line Number associated with Work Order text information.

Related Functions

None

Related Tables

F4802 Work Order Instructions File