F1757GetTaskNumber

F1757 Get Task Number

Minor Business Rule

Object Name: N1701350

Parent DLL: CCRIN

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose

This function will used to return the next task number for the new task based on keys (DOCO, DCTO, KCOO)for F1757 Tasks.


1.2Setup Notes and Prerequisites


1.3Special Logic
VA evt_mnTaskNumber_MATH01 = "99999"

F1757.Select

F1757.Fetch Next

If SV File_IO_Status is equal to CO SUCCESS 

While SV File_IO_Status is equal to CO SUCCESS 
BF mnTaskNumber = [BF mnTaskNumber]+1
F1757.Fetch Next

End While
Else
BF mnTaskNumber = "1"
End If



Data Structure

D1701350 - F1757 Get Task Number

Parameter NameData ItemData TypeReq/OptI/O/Both
mnDocumentOrderInvoiceEDOCOMATH_NUMERICOPTNONE

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.

szOrderTypeDCTOcharOPTNONE

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

szCompanyKeyOrderNoKCOOcharOPTNONE

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

mnTaskNumberRCK7MATH_NUMERICOPTNONE

This field is used to create a unique key within a file.  If you are using a program which will allow you to resequence the records, we 
recommend you use one of the following data dictionary items:  DSS5, DSS7, DSS9.

Related Functions

None

Related Tables

None