Hi ,
I am getting this error message :
Hi ,
I am getting this error message :
Hi,
I have simply added ttsbegin() and ttscommit() before and after the 3 lines of code and the error is gone.
I have tested and it is generating continous number seq for me error free.
Wont this work ?
Hello PriyaDutta,
What are you trying to achieve here?
The free text invoice id is filled in once the invoice is posted and this number is automatically assigned by the number sequence in your AR parameters.
Why do you need a continuous number sequence for those transactions?
Can't you simply use a non-continuous number sequence?
Best regards,
Ludwig
Hi Priya,
Can you tell what would be the expected outcome? Do you have setup the number sequence setup as continues and you want to have a continuous number used or do you want to change the setup to non-continuous?
If you want to have continuous number, you have to initiate the NumberSeq class first and call a similar method for drawing a number with an additional parameter which determines the continuous behavior. The parameter is called 'makedecisionlater'. If you can set that parameter to 'yes', then it might work to use continuous number sequences. Before ending the coding, you have to 'finalize' the decision by calling numberSeq.used(). There are various implementations of this pattern in the standard for your reference.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,407
Most Valuable Professional
nmaenpaa
101,156