Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL (Archived)

Stored Procedures that creates accounts payable batch numbers?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I import accounts payable transactions from or T&M on-line time sheet software erecruit.  Erecruit is looking at the stored procedures within Microsoft Dynamics SL to populate the batch number.  We have hit batch 9999 and now Microsoft Dynamics SL is reverting the batch numbers to 001000 which cannot be imported because those batch numbers were used back in 2000.  Does anyone know how I can change the stored procedure in Microsoft Dynamics SL to change this batch numbering sequence?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Stored Procedures that creates accounts payable batch numbers?

    Thank you Rick, this helps!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Stored Procedures that creates accounts payable batch numbers?

    Anne,

    The determination of the next batch number starts with the stored procedure called apautobatchnbr.  This procedure looks up the last AP batch number used from the table APSETUP but then utilizes a SWIM call to determine the next batch number.  I cannot say for certain but it sure sounds like your last batch number used in APSETUP has the issue.  You can view that on the AP Setup screen.  Unless you have some sort of custom code attached to the invoice and memo screen, the SWIM call should not be wrapping back around to 001000 after using 9999.  I just ran a test on my SL 2011 system setting the APSETUP value to 009999 and creating a new batch and it cycled to 010000.

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.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,883 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans