Referencing number sequence from x++ code

Hi guys,

I am having a following problem:

I am doing some import of data from excel spreadsheet to the LedgerJournalTable, but the problem is that I don’t know how to use a number sequence designated to the general journal. I am supposed to increment it for the each row imported. Is there a way to call the number sequence from the x++ code?

Regards,

Mishko

Hi Mishko,

Have a look at the ‘insert’ method in LedgerJournalTable.

Regards,

Thanks Harish. It worked. But this will work for journal numbers only. Is there a general way of calling and updating number sequence from x++ code. For example: my next task is to increment the voucher number for ledgerJournalTrans and there is no such method in the insert method of this table.

Regards,

Mishko

I found the solution for this table as well in some method. So my question is actualy is there a general way of incresing the number sequence.