GetJobNumber

Get Job Number

Minor Business Rule

Object Name: B3100710

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

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.



Data Structure

D3100710 - Get Job Number

Parameter NameData ItemData TypeReq/OptI/O/Both
mnJobNumberJOBSMATH_NUMERICNONENONE

The job number (work station ID) which executed the particular job.

szTableNameDTAIcharNONENONE

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.

Related Functions

B0000564 Get Internal Next Number

Related Tables

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