alexlow
26th June 2009, 10:50
hi,

what is the proper way to do autonumbering in LN? i try to use the first free number but no clue how to make it work correctly. any advice appreciated, thanks

dheerendra_gosw
26th June 2009, 12:29
What you want from autonumbering, can you give the detail please.

_Ralph_
26th June 2009, 18:13
Use this function:

tcmcs.dll0050.read.default.number(
ref domain tcorno orno.tcmcs.dll0050,
domain tcnrgr nrgr.tcmcs.dll0050,
domain tcmcs.byte maxl.tcmcs.dll0050,
ref domain tcmcs.s132m mess.tcmcs.dll0050)
{
DllUsage
Expl : This function gets the order number using the free number
defined in the given number group.
Pre : NA
Post : NA
Input : orno.tcmcs.dll0050 -> serie that must be used.
nrgr.tcmcs.dll0050 -> number group
maxl.tcmcs.dll0050 -> max. length of series.
Output : orno.tcmcs.dll0050 -> order number
mess.tcmcs,dll0050 -> error message if number generation is
not proper or when series is not found
EndDllUsage


:)

alexlow
23rd March 2010, 04:50
thanks ralph , do you have any sample usage for this function?