Home » Listing Details
Top Websites
  1. Mark Polino's DynamicAccounting.net
    Over 5100 resources listed.
  2. Dynamics GP Help
    Over 3000 resources listed.
  3. Rose Business Solutions Blog New
    Over 1900 resources listed.
  4. Developing for Dynamics GP - By David Musgrave and the MS GP Dev Support Team
    Over 1100 resources listed.
  5. Microsoft Dynamics Partner Community Blog
    Over 800 resources listed.
  6. Mariano Gomez at The Dynamics GP Blogster
    Over 800 resources listed.
  7. Mohammad Daoud's Dynamics GP Blog
    Over 500 resources listed.
  8. Vaidy Mohan at Dynamics GP - Learn & Discuss
    Over 500 resources listed.
  9. Inside Microsoft Dynamics GP Official Blog
    Over 500 resources listed.
  10. Christina Phillips, Steve Endow & Lorren Zemke at Dynamics GP Land
    Over 400 resources listed.
  11. eOne Business Solutions Blog
    Over 400 resources listed.
  12. Frank Hamelly at GP2theMax
    Over 300 resources listed.
  13. About Dynamics, Development and Life
    Over 300 resources listed.
  14. Dynamics CPM
    Over 300 resources listed.
  15. Leslie Vail at Dynamics Confessor Blogspot
    Over 200 resources listed.
  16. Victoria Yudin's Dynamics GP Website
    Over 100 resources listed.
    Victoria Yudin
  17. Janakiram M.P. at DynamicsBlogger
    Over 100 resources listed.
  18. BKD Dynamics GP Insights Blog
    Over 100 resources listed.
  19. VS Tools Forum
    Over 100 resources listed.
    Your Resource for Visual Studio Tools for Dynamics GP
  20. Inside Microsoft Dynamics GP Official Blog
    Over 100 resources listed.
  21. US Dynamics GP Field Team Blog
    Over 100 resources listed.
  22. Catherine Eibner MBS Developer Evangelist
    Over 100 resources listed.
  23. Sivakumar Venkataraman at Interesting Findings & Knowledge Sharing
    Over 100 resources listed.
  24. Dynamics Small Business
    Over 100 resources listed.
  25. Belinda, The GP CSI
    Over 100 resources listed.

ID:15217
Title:Weekly Dynamic: SQL to Balance AP to GL
URL:http://msdynamicsgp.blogspot.com/2010/08/weekly-dynamic-sql-to-balance-ap-to-gl.html
Description:

An important part of maintaining Dynamics GP is balancing the AP subledger to the General Leger. GP has a utility to help you do this if they are out of balance. Additionally, The Close can go beyond the capabilities in Dynamics GP to provide even better balancing options. But what if you are regularly in balance and you want to make sure that you stay that way without having to run the big AR Trial Balance report every day? Well, here is a little bit of SQL that can I’ve used before that can do just that. This compares the AP subledger to the selected AP GL account and shows the difference. It’s a quick way to see if AP balance.


SELECT     'AP' as SubType, (SUM(currblnc))*-1 AS SUBBAL, 0 AS GLBAL
into #SubtoGLCompare
FROM         PM00201

/*Get the GL total for this Account. Change the account below or optionally add additional
actnumbr parameters to tighten or broaden the account*/
INSERT #SubtoGLCompare (SubType,SubBal,GLBAL)
SELECT     'AP' as Subtype, 0 AS Subbal, SUM(Perdblnc) AS GLBal
FROM         GL11110
WHERE     actnumbr_2 = '2100' -- Change this

Select SubType, sum(Subbal) as SubBal, Sum(GLBal) as GLBAL, sum(SubBal)-Sum(GLBAL) as Difference,
'Difference is Subledger minus GL.' as Instructions
from #SubtoGLCompare
Group by SubType

Drop Table  #SubtoGLCompare

Category:SQL SCRIPTS: Payables Management (SQL)
Link Owner:
Date Added:August 09, 2010 03:01:08 PM
Number Hits:67
RatingsAverage rating: (0 votes)
Reviews

No Reviews Yet.

 
GPWindow.com

Developed and presented by
Smith & Allen Consulting, Inc.,
GP specialists since 1991.