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)

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

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
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans