1.Functional Description
1.1Purpose
To retrieve the next Job Number from the Next Numbers (F0002) table and check that the Job Number
retrieved is unique in the table.
1.2Setup Notes and Prerequisites
The WO Process User Index (F31UI410); Batch WO Commitments User Index (F31UI001); Quantities By Item
Number (F31UI418); Configurator External Data Item Work File (F32UI002) and the Accumulate Amounts by
Account (F31UI802) have an Index starting with Job Number (JOBS).
Next Number (F0002) should be set up for Job Number (00/4).
Create entry for NextNumber in 00/4.
The table name must be passed into the business function. The following are valid table names:
F30UI001, F30UI003, F31UI001, F31UI410, F31UI418, F31UI804, F32UI002, F34UI001, F31UI802, F31UI113,
F31UI002, F31UI427, F48UI001, and F34UI003.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
Retrieve the next Job Number (JOBS) for the Next Numbers (F0010) file using Next Numbers with the
following parameters:
System Code = '00'
Company Key = '0000'
Document Type = ' '
Same As Document Type = ' '
Next Numbering Index = '4'
If a Job Number was found then attempt to retrieve a record from the table requested with the Job
Number value. If a record was found in the User Index then loop back to the Job Number retrieval.
Continue this loop until a unique Job Number is found.
If the call to Next Numbers returns ER_ERROR/ER_WARNING, break out of the loop and return "0005" in
Error Message ID and ER_ERROR in the BsFn return value.
D3100710 - Get Job Number
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobNumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
szTableName | DTAI | char | NONE | NONE |
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
|
B0000564 Get Internal Next Number |
F16UI001 Enabled Tables by Application work file | ||||
F30UI001 Component Locators Work File | ||||
F30UI006 Lot Tracking Work File | ||||
F32UI002 Needed for upgrade from Xe and below | ||||
F34UI003 MPS Time Series User Index | ||||
F48UI001 X4801 Master Business Function Workfile |