EditSerialNosPartsList

Edit Serial Nos Parts List

Minor Business Rule

Object Name: N3101360

Parent DLL: CMFGBASE

Location: Client/Server

Language: NER

1.Functional Description

1.1Purpose
This function will validate that the quantity on the Work Order Parts List for a particular 
serialized item matches the quantity associated for the item through WO Serial Number Associations (P3107).  An 

error message is returned to the calling program if there is a quantity mismatch.


1.3Special Logic

The Parts List Cache is created the first time this function is called and a Job Number is passed 
back to the calling program; the calling program should then pass back the Job Number to the Parts list 

cache on subsequent calls to this function which process the same order number. The calling program 

must terminate the Parts List Cache created in this program.


2.Technical Specifications

2.4Processing 

1)If the Parts List job number is zero:
a)Load the Serial Number Parts List cache using "Cache, Process Serial Nos Parts List":
i)Get a job number for the cache.
ii)Read the Work Order Parts List (F3111) for the Order Number (DOCO) passed in as input.

iii)Skip the record if the item is not a serialized item; i.e. the Lot Process Type on the 

Item Branch table (F4102) must be '4', '5', '6', or '7' for serialized items.

iv)For each selected F3111 record:

(1)Divide the parts list quantity by the Quantity Ordered (UORG) passed in as input.
(2)If a cache record for this item does not exist, write a new record.  If a cache 

record already exists, add the calculated quantity to the existing quantity and rewrite the 

cache record.


2)After all parts list records for this Work Order have been processed, read the Parts List cache 

sequentially.  


3)For each parts list cache record retrieved:

a)Read the Associations cache for the sequence number passed in as input;  use the "Cache, 
Process Serial Nos Parts List" and the Associations job number passed in as input. Accumulate the 

quantity from the associations cache for each record with a component item number matching the parts list 

cache record.

b)After the associations cache has been read and the item quantity accumulated, compare the parts 

list quantity and the associations quantity.  

i)If they are not equal, set the Error Message Id parameter to '4721' and end processing.
ii)If they are equal, continue processing until an error occurs or the end of the parts list 

cache.


4)At end of processing:

a)Release the cursor for the Associations cache. 
b)Terminate the Parts List cache.


^

Data Structure

D3101360 - Edit Serial Nos Parts List Qty

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.

mnQuantityOrderedUORGMATH_NUMERICNONENONE

The quantity of units affected by this transaction.

mnAssocCacheJobJOBSMATH_NUMERICNONENONE

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

cSuppressErrorMsgsEV01charNONENONE

An option that specifies the type of processing for an event.

szErrorMsgIDDTAIcharNONENONE

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.

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.

mnPartsListCacheJobJOBSMATH_NUMERICNONENONE

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

Related Functions

None

Related Tables

None