Functional Description
Purpose
This function assigns a unique lot number based on the Lot Process Type.
Setup Notes and Prerequisites
The Item Number (ITM), Branch (MCU), Location (LOCN), Lot Number (LOTN), Lot Process Type (SRCE) and
Transaction Date (TRDJ) are required input parameters.
Special Logic
None
Technical Specification
If the Lot Process Type is equal to a '1' or '5'
The date passed in is moved into the first ten characters of the lot field in YYMMDD format
and 0000 is moved into the next four characters. The Lot Master (F4108) is then checked to see if a
record is found with this lot number. If so, a 1 is added to the next number portion of the lot
number field and the Lot Master is retrieved again. This is repeated until a unique lot number is
created.
If the Lot Process Type is equal to a '2' or '6'
A next number is used to create the lot number. A business function is called to find out the
last next number issued. A unique number is then assigned.
Edits:
1.) If ProcessType is equal to a 1 or 5
Move the Date passed in into the first 10 characters of the lot in YYMMDD
format
and 0000 into the next four characters after the date
Call business function in a Do loop GetLotMasterByLotNumber.
If no record was found get out of function
If a record was found Add 1 to the last character of the lot and
call the GetLotMasterByLotNumber function again. Keep doing until no record is found
2.) If Process Type is equal to a 2 or 6
In a Do Loop
Call GetLotNumberFromNextNumber
Then call GetLotMasterByLotNumber to see if the Lot exist yet in the Lot Master
If it does not get out of function
If it does Call GetLotNumberFromNextNumber again until unique lot
is found
^
DX41LOT - Assign Lot Number
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMShortItemNumberIY
MCUBranchPlantIY
LOTLotIY
LOCNLocationIY
SRCEProcess TypeIY
TRDJDateIY
^
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
| ||||
szLot | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
cProcessType | SRCE | char | NONE | NONE |
A code that indicates whether lot or serial number is assigned. Lot and serial number processes use the Lot Master table (F4108).
Valid
| ||||
jdDate | TRDJ | JDEDATE | NONE | NONE |
The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing. |
B4000610 Get Lot Master By Lot Number | ||||
B4000620 Get Lot Number From Next Number |
None |