brianwharton 9/9/2023 6:44:12 AM

document number not unique from GetNextIVNumber on bin to bin transfer

Hello, I am doing a bin to bin transfer (taIVMultibinBinToBinTransfer) and using the following to get the next document number.

 nextDocNo = getNextDocNumbers.GetNextIVNumber(IncrementDecrement.Increment, IVDocType.IVTransfer, ConnectionString);

Not all the time, we occasionally get an issue where eConnect errors out telling that the document number has already been used.  Also, we are noticing that the record comes with a TRF as the prefix instead of BTR as setup in the "Next Document Number" in GP. Is there a different call to get a next document number?  or is there a stored procedure we can use instead of calling the API call in eConnect?

I notice in the table IV40100, that there is a field Next_Bin_XFer_Doc_Number. Would it be possible to just increment from there manually?

 

Version: All
Section: .NET Development, eConnect


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3