Skip to main content

Notifications

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

  • Community Member Profile Picture
    on at
    RE: Fixed Assets - Need SQL Query for the AC numbers corresponding to each account group.

    Hi Bob,

    Excellent!

    This is exactly what I was looking for.

    Thanks a lot.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Fixed Assets - Need SQL Query for the AC numbers corresponding to each account group.

    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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans