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?