Hi, run this to see what current next payment number is and what current max payment number is from RM00401. You may need to update what's in RM40401 for RMDTYPAL=9 to be what should be next payment number. If it's more than 1,000 iterations behind and all 1,000 iterations are actually used, then you'll get that error you see.
SELECT DOCNUMBR
FROM RM40401
WHERE RMDTYPAL=9
SELECT MAX(DOCNUMBR)
FROM RM00401
WHERE RMDTYPAL=9
Let me know if any questions.
Thanks,
Lance Brigham
Velosio
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.