VishalMistry
11th April 2015, 09:24
Hello all,

I am trying to generate number using first free numbers. My settings are as below:

Number group : RGP
first free number : C215

In DAL in before.new.object() I am writing below code to generate the number and assign the same to table field:

rv = tcmcs.dll0050.check.and.generate.order.number(3,hold.orno,"RGP",9,tctri001.orno)

But it is returning blank as document number. Can anybody help to figure out what is wrong with above code ?

Vishal

bhushanchanda
13th April 2015, 11:08
Hi,

Here's an example -

ret = tcmcs.dll0050.check.and.generate.order.number(3,
ffn, | First free number for Address Series
no.group,| No Group for addresses
9,
temp.str |tcmcs.str18 is the domain for this
)

The above call returns the address code in ffn variable.