web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

What is the best way to find and inactivate general ledger accounts that have not been used for a while?

(0) ShareShare
ReportReport
Posted on by 330

We have over 3,000 unique expense account in our general ledger.  I know there are many that have not been used in a while.  I would like a report that shows the last time the account was used in purchasing or in a journal entry.  From that list, I would like to inactivate those not used in the past year.  Thanks.

*This post is locked for comments

I have the same question (0)
  • Cheryl Waswick Profile Picture
    Microsoft Employee on at

    Hi Tracy,

    You can run a script in SQL Server Management Studio against the company database to identify all the GL accounts that have not been used in the OPEN GL year(s) or GL20000 table, so be sure to be aware of what year you last closed.  (Keep in mind it does not look to see if the account is being used in a GL budget.)

    ----------------------------------------------------

    select GL00100.ACTINDX, GL00105.ACTNUMST, GL00100.ACTDESCR from GL00105, GL00100

    where GL00100.ACTINDX =GL00105.ACTINDX

    and GL00100.ACTINDX not in (select GL20000.ACTINDX from GL20000)

    -----------------------------------------------------

    You can inactivate the GL accounts returned by the script above, with this script below:: (But make sure all GL batches are posted first.)

    ----------------------------------------------------

    Update GL00100 set ACTIVE = 0 where ACTINDX not in (select ACTINDX from GL20000)  

    ----------------------------------------------------

    Remember that when you close the GL open year, the GL close process will remove all inactive accounts.  (whether or not they are used in a budget.)

    I hope this helps.  Be sure to do this in a test environment first, so you can verify it is what you want.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans