Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Inactivate GL accounts by segment

Posted on by Microsoft Employee

I need to inactivate all GL accounts (over 600 accounts) that have 02 as the last segment.  Is there a way to do this without opening each card individually?  I thought it could be accomplished through mass modify, but I can't find a way to do it there.

*This post is locked for comments

  • famust Profile Picture
    famust 5 on at
    RE: Inactivate GL accounts by segment

    I don't have options for selecting the segments under "Accounts Segment Sort."  The only options I have are by Accounts and by Main segments.  I want to be able to select segment 3.  How do I go about doing this?

    Thanks.

    Farida

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Inactivate GL accounts by segment

    Thanks to both of you for your help.  You have actually answered two of my questions.   I do have access to SQL as I am the Dynamics GP administrator and support person in our company.  I have a test environment to do this in first.  I think I will go ahead and do the SQL fix this time.  I just wasn't sure if that was a safe way to do it.  That said, for other uses in the future, how do I get the sorting indexes in our system?  I have always wondered why that didn't work :)

    Thank you so much for your responses.

    Marilyn

  • Verified answer
    L Vail Profile Picture
    L Vail 65,271 on at
    RE: Inactivate GL accounts by segment

    Hi Marylin,

    You should be able to do it using Mass Modify if your installer added the sorting indexes (which he should have) to your account framework.

    GPYoungGuns's (cute name) answer is the fastest, but if you don't have access to SQL, then you might need to use the built-in tools.

    First, BACKUP YOUR COMPANY DATABASE, no matter which method you use.

    Launch Mass Modify, change the Accounts Segment Sort to sort by your last segment. Put your account range from the lowest value to the highest value for accounts with 02 as the last segment. In my screenshot I used the value 9.

     

    Display the Selected Range to make SURE it's going to modify the correct group of accounts. Set the Modify task to Inactivate and then Process.

    That's it. Does you last segment not appear in your Accounts Segment Sort drop down? I have a solution for that too, if that's the case and you can't use SQL.

    Kind regards,

    Leslie

  • Verified answer
    gpyoungguns Profile Picture
    gpyoungguns 115 on at
    RE: Inactivate GL accounts by segment

    Do you have access to write a little SQL update script on your server?  If so, you could use this script to inactivate those accounts in seconds:

    update gl00100 set active=0 where actnumbr_3='02'

    You would just need to replace the ACTNUMBR_3 with your last segment.  If you only have 2 segments, that field would be ACTNUMBR_2, 4 segments you would use ACTNUMBR_4, etc.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans