Serial & Lot Number Handling¶
This section describes how Serial and Lot Numbers are handled through IMan.
IMan supports two ways for handling serial and lot numbers:
- Detail Level - Analogous to using the auto-allocation/generation fields and buttons.
- Specific entry of serials and lots.
If the specific serials and lots are not specified IMan will fallback to using the auto-allocate/generate fields on the detail level. If those fields are not set IMan raises an error, except on P/M Material Usage: "Error processing [Serial] number. Mandatory field [SALLOCFROM] is neither mapped nor has a value."
Please note that serial & lot number handling does not support the ability to set optional fields, stock date, recall date, or any contract field.
Detail Level¶
There are a series of fields for most import types supporting serial and lots. I/C Stock Counts do not have them, and need the specific serials and lots. These fields allow you to trigger auto-allocation and generation features.
| Field Id | Name | Description |
|---|---|---|
| CLEARSERIAL | Clear Serials | When set to True will clear any existing serials set to the detail record. This field may need to be used when updating existing documents OR when the serial numbers need to be replaced. This field is present on O/E Orders, Shipments, Invoices and Credit Notes. |
| SALLOCFROM | Allocate from Serial | Will allow you to specify the starting serial number to allocate to the detail record. On a line that brings stock in, it is the first serial number Sage generates. |
| CLEARLOT | Clear Lots | When set to True will clear any existing lots set to the detail record. This field may need to be used when updating existing documents OR when the lot numbers need to be replaced. This field is present on O/E Orders, Shipments, Invoices and Credit Notes. |
| LALLOCFROM | Allocate from Lot | Will allow you to specify the starting lot number to allocate to the detail record. On a line that brings stock in, it is the first lot number Sage generates. |
| XLOTMAKQTY | Number of Lots to Generate | When the 'Allocate from Lot' is specified this field indicates how many lots to use when allocating the quantity. |
| XPERLOTQTY | Quantity Per Lot | When the 'Allocate from Lot' is specified this field indicates the quantity per lot. |
| ALLOCSERLOT | Allocate Serial/Lot Numbers | O/E Order lines only. When set to False the line takes no serial or lot numbers. |
Specifying Serial Numbers¶
Specific serial numbers can be specified by mapping a transaction type to the relevant 'Serials' import type. This means serial numbers would be a child to the detail level, and the document has three levels: the document, its lines, and the serial numbers of each line. On a kit component of an O/E Shipment they are a child to the component. On an I/C Stock Count they are a child to the item.
To specify the serials map a transaction type. The transaction type has a Serial Number field which will accept the formatted serial number. On I/C Adjustments and I/C Stock Counts it also has a Cost field.
Map one record for each unit. The number of records must be the quantity of the line, unless the item allows a different quantity. On a line that brings stock in, the serial number must be new and fit the serial number structure of the item. On a line that takes stock out, the serial number must be in stock at the location of the line.
IMan ignores the records of a line whose item is not serial tracked. It also ignores those of a line whose quantity is zero, except on an I/C cost adjustment.
Specifying Lot Numbers¶
Specific lot numbers can be specified by mapping a transaction type to the relevant 'Lots' import type. This means lot numbers would be a child to the detail level.
The 'Lots' import type allows you specify the quantity for each lot. The quantities of the lots must add up to the quantity of the line, unless the item allows a different quantity. An item that is both serial and lot tracked takes both.
If the stock movement is inbound the transaction type also allows you to specify the expiry date, except on I/C Shipment returns.
On an O/E Order the Use Single Batch (USESINGLEBATCH) field picks the lot. Set it to 1 for the lot with the smallest available quantity that covers the quantity, and leave the Lot Number empty.

