CalculateSerialNoSeqNo

Calculate Serial No Seq No

Minor Business Rule

Object Name: N3101340

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This function will calculate the sequence number to be used to update the Serial Number Association 
cache in B3101310.  This function will return an existing sequence number if a match is found on the 

Order Number and Parent Lot Number in the Parent Serial Number cache.  If a match is not found, the 

Error Message Id is set to '0002' and a new sequence number is calculated by incrementing the last 

sequence number value found in the cache for the Order Number.


1.2Setup Notes and Prerequisites

None.

1.3Special Logic
There is no special logic within this function.

2.Technical Specifications

2.4Processing 


1)Read the Parent Serial Number cache sequentially until a match on the Order Number and Parent Lot 
number is found.  


2)If a record is not found in the cache:

a)Set the Error Message Id to '0002'.  
b)Increment the last sequence number found on the cache to use as a new Sequence Number to be 

passed back the calling program. 


3)Return the new or existing Sequence Number (OSEQ) to the calling program. 


^

Data Structure

D3101340 - Calculate Serial No Seq No

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.

mnJobnumberJOBSMATH_NUMERICNONENONE

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

mnSequenceNumberOSEQMATH_NUMERICNONENONE

For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed. For World, a sequence or 
sort number that the system uses to process records in a user defined order.

cSuppressErrorMessagesEV01charNONENONE

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.

szParentLotPLOTcharNONENONE

An inventory separation device that allows tracking of the inventory by date received or similar convention to control lots or layers.

Related Functions

None

Related Tables

None