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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Fixed Assets - Need SQL Query for the AC numbers corresponding to each account group.

(0) ShareShare
ReportReport
Posted on by

Hello,

I am having a difficulty to fetch account number along with account group.
We have several Account group Id’s () in GP.  And we would like to have an SQL query to fetch all the account numbers and account group id corresponding to a/c group id.


Thanks in Advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hello Leo,

    Here is the SQL query.

    SELECT A.ACCTGRPINDEX as GRPINDEX, A.ACCTGRPID as GRPID, A.ACCTGRPDESC as GRPDESC,

    ISNULL(E.ACTNUMST,'') as ASSET_COST,

    ISNULL(F.ACTNUMST,'') as PROCEEDS,

    ISNULL(B.ACTNUMST,'') as DEPRCTN_EXP,

    ISNULL(C.ACTNUMST,'') as DEPRCTN_RESERVE,

    ISNULL(D.ACTNUMST,'') as DEPRCTN_PR_YR,

    ISNULL(G.ACTNUMST, '') as GL_RECOGNIZED,

    ISNULL(H.ACTNUMST, '') as GL_NON_RECOG,

    ISNULL(I.ACTNUMST, '') as CLEARING

    FROM FA41300 A

    left join GL00105 B on B.ACTINDX = A.DEPREXPACCTINDX

    left join GL00105 C on C.ACTINDX = A.DEPRRESVACCTINDX

    left join GL00105 D on D.ACTINDX = A.PRIORYRDEPRACCTINDX

    left join GL00105 E on E.ACTINDX = A.ASSETCOSTACCTINDX

    left join GL00105 F on F.ACTINDX = A.PROCEEDSACCTINDX

    left join GL00105 G on G.ACTINDX = A.RECGAINLOSSACCTINDX

    left join GL00105 H on H.ACTINDX = A.NONRECGAINLOSSACCTINDX

    left join GL00105 I on I.ACTINDX = A.CLEARINGACCTINDX

    I hope this is what you are looking for.

    --

    @dyngp_warren

  • Community Member Profile Picture
    on at

    Hi Bob,

    Excellent!

    This is exactly what I was looking for.

    Thanks a lot.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans