Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Posted AP transactions missing distribution on GL side

Posted on by Microsoft Employee

I just found that that some of my posted payables do not have a distribution on the GL side. Is there a script that I can run to see which all transactions are missing the GL distributions. I found it out after running inquiry on the account number posted on the payable transactions.

Thanks!

*This post is locked for comments

  • Heather Roggeveen Profile Picture
    Heather Roggeveen 9,142 on at
    RE: Posted AP transactions missing distribution on GL side

    Hi nlo

    If the AP reconcile did not throw any records, then Mick's SQL scripts are a good starting point.

    Victoria Yudin also has a view to see all AP distributions:  victoriayudin.com/.../sql-view-to-show-all-gl-distributions-for-ap-transactions

    You may be able to join that to the GL20000 table to try and see what is missing.

    In the bad old days before I knew anything about SQL, and before the AP reconcile, I would download a SmartList from AP of all the transactions with Document Amount and all the transactions from GL and include Originating Document Number, Originating Master ID and use vlookups to find all the transactions that existed in both.

    So if you don't have the SQL skills, that is a more manual way of achieving the same outcome.

    Once you isolate, if they truly don't exist in the GL, then a journal will be your only option to correct.

    Cheers

    Heather

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Posted AP transactions missing distribution on GL side

    Hi, I think you should look at the distribution tables. Please be advised that this tables is shared between work and open (PM10100). If the invoice is posted and paid, you may look into the history distribution table (Pm30600). If you could not find (the probability of which is very less, it must be somewhere if entered), you may try to enter the same voucher and copy the distribution using SQL query for this document. Now copying where ..? The answer is the status of the invoice - if it is paid then in history if not then in PM10100. If the GL distribution is missing you might want to copy there as well. Please do not copy blindly and take a backup of all the relevant tables. When copied you may delete the voucher entered for copying. Or you may check your GL distribution and copy from there. Either way, this can be done by using SQL query only.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Posted AP transactions missing distribution on GL side

    Heather, I tried that as well. It is not showing up in smartlist as well.

    Thanks!

  • Heather Roggeveen Profile Picture
    Heather Roggeveen 9,142 on at
    RE: Posted AP transactions missing distribution on GL side

    If you mean the enquiry on the Payable document - sometimes the distribution record will drop off - but it has actually posted to the GL.  If you know of one transaction, then you could run a SmartList from the Account Transactions under Financial and search on:

    - GL Code = Accounts Payable Control Account

    - Originating Master ID = the Vendor ID

    And then narrow it down using the Amount or Originating Document Number.

    That would at least help you verify whether your issue is that the distributions were never posted or it is an issue in the distributions held against the AP transaction.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Posted AP transactions missing distribution on GL side

    These payable transactions have been posted and paid as well. But when, we do an inquiry on the distribution, they are not there.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Posted AP transactions missing distribution on GL side

    We have had occasions where GP 'hiccups' and the payables side of the transaction runs but not the GL side, we realized that there were Financial batches with odd Batch ID's.  We just posted these batches then the GL entries posted.  

  • Rosemary Profile Picture
    Rosemary 2 on at
    RE: Posted AP transactions missing distribution on GL side

    Hi,

    I have a question.

    If there were no distribution on the GL side, how did the batch balance, i.e. if I am understanding this correctly.

    Regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Posted AP transactions missing distribution on GL side

    Hi Leslie,

    I ran the reconcile for payable accounts (batches), reconcile to GL and checklinks which did not fix the issue.

    Reconcile to GL did not give me any output.

    Thanks!

  • L Vail Profile Picture
    L Vail 65,271 on at
    RE: Posted AP transactions missing distribution on GL side

    Hi,

    What does the Reconcile to GL routine give you?

    Leslie

  • Mick Egan Profile Picture
    Mick Egan 3,557 on at
    RE: Posted AP transactions missing distribution on GL side

    The below queries are samples of how to start, not including fully applied documents and only at Invoices, you can get the idea from here.  Run against the company database.

    First check, see if any Unposted Journals:

    SELECT a.VENDORID, a.DOCNUMBR, b.JRNENTRY FROM PM20000 a LEFT OUTER JOIN GL10001 b ON a.DOCNUMBR = b.ORDOCNUM WHERE b.JRNENTRY IS NOT NULL AND a.DOCTYPE = 1

    Second Check, only looking at Unapplied PM Transactions, and in the Current Financial Year:

    SELECT a.VENDORID, a.DOCNUMBR, b.JRNENTRY FROM PM20000 a LEFT OUTER JOIN GL20000 b ON a.DOCNUMBR = b.ORDOCNUM WHERE b.JRNENTRY IS NULL AND a.DOCTYPE = 1

    Mick

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans