Define next Serial Number
Example: Manual receipt, Goods Receipt Po and so on
Define new Serial Number in variable e_DistNumber. If this is not defined, the system use the settings in congifuration wizzard
Variable  | 
Read  | 
Write  | 
Description  | 
|---|---|---|---|
e_ItemCode  | 
x  | 
Calculation methode Id  | 
|
e_DistNumber  | 
  | 
x  | 
Define new Serial Number if the serial number not defined, the system use standard counting  | 
e_DocEntry  | 
x  | 
  | 
Work order Document Number  | 
e_LineNumber  | 
x  | 
  | 
Work order Position  | 
e_LineNumber2  | 
x  | 
  | 
Bill of Material position (example negative quantity produce receipts...)  | 
Examples:
Here you see different examples for definition of Batch- and Serial numbers 
 In user event - workordermangement.GetBatchNumber and workordermangement.GetSerialNumber you can create the script for generating Batch / Serial numbers for the receipt / Serial reservation process in Work order. 
 Here some examples 
 
 
 
 Example 1 // DistNumber = today (yyyy/mm/dd) + "-" + new counter for every day 
 Example 2 // Use B05C as Prefix + own Counter with 5 digits 
 Example 3: if material group = 20, then ask for the serial number manually function GetSerialNumber 
 Example 4 In this example we create a serial number per work order with follow structure: work order (8 letters) + "-" + counter per work order (4 letters) For this we need an counter per work order. In this example we're using UDF4 from the work order 
 // ******* Event GetSerialNumber ******** 
 
  | 
 
 
 Example 1 // DistNumber = today (yyyy/mm/dd) + "-" + new counter for every day 
 Example 2 // Use B05C as Prefix + own Counter with 5 digits 
 Example 3: if material group = 20, then ask for the serial number manually function GetSerialNumber 
 Example 4 In this example we create a serial number per work order with follow structure: work order (8 letters) + "-" + counter per work order (4 letters) For this we need an counter per work order. In this example we're using UDF4 from the work order 
 // ******* Event GetSerialNumber ******** 
 
  |