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:
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:
(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:
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.
ii)If they are equal, continue processing until an error occurs or the end of the parts list
cache.
4)At end of processing:
b)Terminate the Parts List cache.
^
D3101360 - Edit Serial Nos Parts List Qty
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnOrderNumber | DOCO | MATH_NUMERIC | NONE | NONE |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnQuantityOrdered | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnAssocCacheJob | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
cSuppressErrorMsgs | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMsgID | 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
| ||||
mnSequenceNumber | OSEQ | MATH_NUMERIC | NONE | NONE |
For OneWorld, the sequence by which users can set up the order in which their valid environments are displayed.
For World, a sequence or
| ||||
mnPartsListCacheJob | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. |
None |
None |