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)

GL and AR tables

(0) ShareShare
ReportReport
Posted on by

How can I tell what GL account the AR transactions were posted to. What tables can I link and by what fields.

*This post is locked for comments

I have the same question (0)
  • Ellen Ryan Profile Picture
    700 on at

    I'm not sure if this is what you are asking, but if you go to Microsoft Dynamics GP drop down, select tools/set up/posting/posting accounts.  In the display field you can change it to sales and that is where you set your AR posting account.

     

  • Ron Draganowski Profile Picture
    1,575 on at

    When your question talks about tables and linking, it sounds like you're building a query or report on existing transactions, rather than looking for posting account setup.  Below is a query that links both open and historical transactions to the corresponding distribution table, and then to the GL tables.  If you add any columns to the open column list, you'll need to add that some column to the second query after the UNION keyword.

    --Posted receivables transaction not yet moved to history (OPEN)

    SELECT RMTrx.DOCNUMBR, RMTrx.RMDTYPAL AS DocType, RMTrx.CUSTNMBR, RMTrx.DOCDATE, RMTrx.GLPOSTDT AS GLPostedDate,

    RMTrx.ORTRXAMT AS TransactionAmt, RMTrx.CURTRXAM AS UnappliedAmt, GL00105.ACTNUMST AS AcctNum, GL00100.ACTDESCR AS AcctDesc,

    RMDist.DEBITAMT AS DebitAmt, RMDist.CRDTAMNT AS CreditAmt

    FROM RM20101 AS RMTrx

    LEFT OUTER JOIN RM10101 AS RMDist ON RMTrx.DOCNUMBR = RMDist.DOCNUMBR AND RMTrx.RMDTYPAL = RMDist.RMDTYPAL

    LEFT OUTER JOIN GL00100 ON RMDist.DSTINDX = GL00100.ACTINDX

    LEFT OUTER JOIN GL00105 ON RMDist.DSTINDX = GL00105.ACTINDX

    UNION

    --Posted receivables transaction moved to history (HISTORY)

    SELECT RMTrx.DOCNUMBR, RMTrx.RMDTYPAL AS DocType, RMTrx.CUSTNMBR, RMTrx.DOCDATE, RMTrx.GLPOSTDT AS GLPostedDate,

    RMTrx.ORTRXAMT AS TransactionAmt, RMTrx.CURTRXAM AS UnappliedAmt, GL00105.ACTNUMST AS AcctNum, GL00100.ACTDESCR AS AcctDesc,

    RMDist.DEBITAMT AS DebitAmt, RMDist.CRDTAMNT AS CreditAmt

    FROM RM30101 AS RMTrx

    LEFT OUTER JOIN RM30301 AS RMDist ON RMTrx.DOCNUMBR = RMDist.DOCNUMBR AND RMTrx.RMDTYPAL = RMDist.RMDTYPAL

    LEFT OUTER JOIN GL00100 ON RMDist.DSTINDX = GL00100.ACTINDX

    LEFT OUTER JOIN GL00105 ON RMDist.DSTINDX = GL00105.ACTINDX

    Ron Draganowski
    Solution Services Practice Manager
    Olsen Thielen Technologies, Inc.

    St Paul, Minnesota
    rdrag@ottechnologies.com
    http://www.ottechnologies.com
     

     

    Find me on LinkedIn: http://www.linkedin.com/in/rondraganowski

     

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans