Functional Description
Purpose
To check to see if the lot number being entered already exists for another line in the transaction.
If so, an error will be issued.
Setup Notes and Prerequisites
This function will not be called if lot number is blank, CPULOT equals a 'Y' or the transaction
is not a 'From' side of transaction.
Special Logic
This business function uses a link list to compare lot numbers against.
Technical Specifications
Parameters
Data Item Data Structure Description I/O Required Notes
ITM Short Item Number I Y
MCU Branch/Plant I Y
LOTN Lot Number I Y
EV01 Suppress Error Message I N
DTAI Error Message ID O N
GENLNG Internal Lot Process Record B N
LNID Line Number I Y
ULOT Allow Duplicate Lot I Y
LOCN Location I Y
Related Tables
Related Business Functions
Processing
Create a link list that consists of LNID, ITM, MCU, LOCN and LOTN.
If DestroyLinkList = 1 then destroy the link list and exit program.
Read the link list (LL) while DestoryLinkList <> 1.
Update or Add to the link list, if no errors.
Load Internal Lot Process Record.
^
D4100410A - Check For Duplicate Lot Exists
Parameters
Data Item Data Structure Description I/O Required Notes
ITM Short Item Number I Y
MCU Branch/Plant I Y
LOTN Lot Number I Y
EV01 Suppress Error Message I N
DTAI Error Message ID O N
GENLNG Internal Lot Process Record B N
LNID Line Number I Y
ULOT Allow Duplicate Lot I Y
LOCN Location I Y
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranchPlant | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szLotNumber | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
cSuppressErrorMsg | 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
| ||||
cDestroyCacheFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnLineNumber | LNID | MATH_NUMERIC | NONE | NONE |
A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns
| ||||
cAllowDuplicateLots | ULOT | char | NONE | NONE |
A code that determines whether the system can assign the same lot to multiple items. Valid values are:
1 Do not allow duplicate lots. The
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
mnJobnumberA | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. |
None |
None |