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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

What table is the account segment description in?

(0) ShareShare
ReportReport
Posted on by

Writing a report (via sql) and need to include the description for the GL account segment - I know the table for the category. We have a 4 segment GL account structure.  What sql table holds these descriptions?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Richard Wheeler Profile Picture
    75,848 Moderator on at

    GL40200

  • Community Member Profile Picture
    on at

    I see that table but so many accounts are blank - is there any place else that this info is stored?

  • Richard Wheeler Profile Picture
    75,848 Moderator on at

    That is because the option was turned off or because users did not enter a value. That is the only table. You can manipulate those value using SQL and they will appear in GP.

  • Community Member Profile Picture
    on at

    I was wondering if there is a table that records the User who created a new GL Segment. We have some new segments that have suddenly appeared out of nowhere and we are trying to figure out who created the segments.

  • Community Member Profile Picture
    on at

    If users have privileges they can enter a segment "on the fly" without descriptions in GP when adding a new GL account.

  • Frank Hamelly | MVP, MCP, CSA Profile Picture
    46,625 Super User 2025 Season 2 on at

    Jeff, GP does not record the user who created the segment.

  • Community Member Profile Picture
    on at

    Thank you Frank - that is what I suspected.

    I appreciate your time.

    Thanks,

    Jeff

  • L Vail Profile Picture
    65,271 on at

    Hi,

    Activity tracker doesn't even track that information. You can use the Support Debugging tool to easily create a trigger that would fire when someone created a new segment.

    Kind regards,

    Leslie

  • Victoria Yudin Profile Picture
    22,769 on at

    Many of our customers choose to limit who can create new GL accounts to one or two people to keep their GL Chart of Accounts clean and to make sure new accounts follow the correct methodology/numbering scheme. Otherwise you end up with a mess that has to be cleaned up. :-(

    Also, most companies do not choose to set up segment names for the natural accounts, only for departments, business units, etc.

    I wrote this code a while ago to a get a listing of the natural account and the first name found for it that you might find useful:

    select a.account, b.[description]

    from (select distinct ACTNUMBR_3 account from GL00100) a  

    left outer join

    (select rtrim(min(ACTDESCR)) [description], ACTNUMBR_3 account

    from GL00100

    group by ACTNUMBR_3) b

    on b.account = a.account

    order by a.account

    The code above will work for segment 3, but you can search and replace ACTNUMBR_3 with whatever segment you need this for - there should be 3 instances of it replaced.

  • Community Member Profile Picture
    on at

    We added an insert trigger on the GL00100 table to test each new GL account to verify the segments are the correct length, that segment 1 is all numeric (in our case) and that the posting type for balance sheet or income statement matches the GL account number.  You could do something similar to capture who is creating new GL accounts or new Segments.  SQL Server supports multiple triggers.  We need to make sure we reinstall the trigger after upgrade operations.  We also need to remember to add the trigger when we create a new company.

    Keith McConnell

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans