Sometimes we need to get number sequence through code that time we get following errors
like "System does not support setup 'continuous' of number sequence AP_001.
Number selection is canceled."
Solutions:
Put the Number Sequence code between the ttsbegin and ttscommit.
ttsbegin;
// Your code
vendTable.AccountNum = NumberSeq::newGetNum(NumberSequenceReference::find(typeid2extendedTypeId(typeid(VendAccount)))).num();
ttscommit;
info(strfmt('%1',vendTable.AccountNum));
like "System does not support setup 'continuous' of number sequence AP_001.
Number selection is canceled."
Solutions:
Put the Number Sequence code between the ttsbegin and ttscommit.
ttsbegin;
// Your code
vendTable.AccountNum = NumberSeq::newGetNum(NumberSequenceReference::find(typeid2extendedTypeId(typeid(VendAccount)))).num();
ttscommit;
info(strfmt('%1',vendTable.AccountNum));
No comments:
Post a Comment