<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Victoria Yudin &#187; Receivables</title>
	<atom:link href="http://victoriayudin.com/tag/receivables/feed/" rel="self" type="application/rss+xml" />
	<link>http://victoriayudin.com</link>
	<description>Ramblings and musings of a Dynamics GP MVP</description>
	<lastBuildDate>Sat, 04 Feb 2012 11:19:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='victoriayudin.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/3cb782884f1419245af3e8375b2a1bff?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Victoria Yudin &#187; Receivables</title>
		<link>http://victoriayudin.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://victoriayudin.com/osd.xml" title="Victoria Yudin" />
	<atom:link rel='hub' href='http://victoriayudin.com/?pushpress=hub'/>
		<item>
		<title>SQL view for current Receivables aging in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/01/25/sql-view-for-current-receivables-aging-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/01/25/sql-view-for-current-receivables-aging-in-dynamics-gp/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:33:00 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3979</guid>
		<description><![CDATA[I have created a variation on my view that shows all unapplied Receivables transactions to show customer aging in buckets. This is only looking at functional currency and will return data in summary, meaning one row per customer with a balance. I am hard-coding the aging using the default aging setup installed with GP, which is aging by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3979&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I have created a variation on <a title="SQL view for all unapplied Receivables transactions in Dynamics GP" href="http://victoriayudin.com/2009/09/05/sql-view-for-all-unapplied-receivables-transactions-in-dynamics-gp/">my view that shows all unapplied Receivables transactions</a> to show customer aging in buckets. This is only looking at functional currency and will return data in summary, meaning one row per customer with a balance. I am hard-coding the aging using the default aging setup installed with GP, which is aging by due date and using the following buckets:</p>
<ul>
<li>
<div style="text-align:justify;">Current</div>
</li>
<li>
<div style="text-align:justify;">31 to 60 Days</div>
</li>
<li>
<div style="text-align:justify;">61 to 90 Days</div>
</li>
<li>
<div style="text-align:justify;">91 and Over</div>
</li>
</ul>
<p style="text-align:justify;">If you would like to use different aging buckets, just follow the examples in my code.</p>
<p style="text-align:justify;">You can find more Receivables code <a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/">here</a>, or links to additional reporting resources <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">on my GP Reports page</a>.</p>
<p><pre class="brush: sql;">
create view view_Current_Receivables_Aging_Summary
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Current_Receivables_Aging_Summary
-- Created Jan 25, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates see http://victoriayudin.com/gp-reports/
-- Shows current AR aging with hard-coded aging buckets
-- Tables used:
--     CM - RM00101 - Customer Master
--     CS - RM00103 – Customer Master Summary
--     RM - RM20101 - Open Transactions
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

SELECT
CM.CUSTNMBR Customer_ID, CM.CUSTNAME Customer_Name,
CM.PYMTRMID Customer_Terms, CM.CUSTCLAS Customer_Class,
CM.PRCLEVEL Price_Level,

sum(CASE
WHEN RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
ELSE RM.CURTRXAM * -1
END) Total_Due,

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &lt; 31 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &lt; 31 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM *-1
ELSE 0
END) [Current],

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 31 and 60 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 31 and 60 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM * -1
ELSE 0
END) [31_to_60_Days],

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 61 and 90 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 61 and 90 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM * -1
ELSE 0
END) [61_to_90_Days],

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &gt; 90 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &gt; 90 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM *-1
ELSE 0
END) [91_and_Over],

CS.LASTPYDT Last_Payment_Date,
CS.LPYMTAMT Last_Payment_Amount

FROM RM20101 RM

INNER JOIN RM00101 CM
     ON RM.CUSTNMBR = CM.CUSTNMBR
INNER JOIN RM00103 CS
     ON RM.CUSTNMBR = CS.CUSTNMBR

WHERE RM.VOIDSTTS = 0 and RM.CURTRXAM &lt;&gt; 0

GROUP BY CM.CUSTNMBR, CM.CUSTNAME, CM.PYMTRMID, CM.CUSTCLAS, CM.PRCLEVEL, CS.LASTPYDT,
CS.LPYMTAMT

-- add permissions for DYNGRP
GO
GRANT SELECT ON view_Current_Receivables_Aging_Summary TO DYNGRP
</pre></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/featured/'>featured</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3979/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3979&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/25/sql-view-for-current-receivables-aging-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/abacus.jpg?w=69" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/abacus.jpg?w=69" medium="image">
			<media:title type="html">abacus</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for customer yearly totals in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/01/09/sql-view-for-customer-yearly-totals-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/01/09/sql-view-for-customer-yearly-totals-in-dynamics-gp/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 18:31:31 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>
		<category><![CDATA[year end close]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3947</guid>
		<description><![CDATA[As a follow up to my SQL view for vendor yearly totals, here is something similar for customers. I have combined sales less credits/returns in one column, please take a look at the notes above the code (on lines 5 through 16 below) to see more details about the logic I am using. The code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3947&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">As a follow up to my <a title="SQL view for vendor yearly totals in Dynamics GP" href="http://victoriayudin.com/2012/01/04/sql-view-for-vendor-yearly-totals-in-dynamics-gp/">SQL view for vendor yearly totals</a>, here is something similar for customers.</p>
<p style="text-align:justify;">I have combined sales less credits/returns in one column, please take a look at the notes above the code (on lines 5 through 16 below) to see more details about the logic I am using. The code below will give you 2007 through 2012 calendar years as well as &#8216;life-to-date&#8217; total sales. You can add or remove years as needed following my example.</p>
<p style="text-align:justify;">For more Dynamics GP Receivables code, take a look at my <a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/">Receivables SQL Views page</a>. Or check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports page</a> for views in other modules and additional report writing and coding tips.</p>
<p><pre class="brush: sql;">
CREATE VIEW view_Customer_Totals_by_Year
AS

-- *********************************************************************
-- Created Jan 9, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please check http://victoriayudin.com/gp-reports/
-- Includes all posted receivables transactions in GP
-- Document dates and calendar years are used for groupings
-- Voided transactions are excluded
-- Sales amount adds Invoices, Debit Memos and Finance Charges
--      and subtracts Credit Memos and Returns
-- Amount includes subtotal plus misc amount less trade discount
-- Only fucntional currency is shown
-- Note that Returns are assumed as 'on account', if this is not
--      typically the case, Returns should be excluded
-- Total columns shows all years, not just what is shown in the columns
-- *********************************************************************

SELECT
T.CUSTNMBR [Customer ID], C.CUSTNAME [Customer Name], C.CUSTCLAS [Class ID],
sum(case when YEAR(T.DOCDATE) = 2012 then T.Amount else 0 end) [2012 Sales],
sum(case when YEAR(T.DOCDATE) = 2011 then T.Amount else 0 end) [2011 Sales],
sum(case when YEAR(T.DOCDATE) = 2010 then T.Amount else 0 end) [2010 Sales],
sum(case when YEAR(T.DOCDATE) = 2009 then T.Amount else 0 end) [2009 Sales],
sum(case when YEAR(T.DOCDATE) = 2008 then T.Amount else 0 end) [2008 Sales],
sum(case when YEAR(T.DOCDATE) = 2007 then T.Amount else 0 end) [2007 Sales],
sum(T.Amount) [Total Sales]

FROM -- all posted RM transactions, exclude voids
(SELECT  CUSTNMBR, DOCDATE, GLPOSTDT, DOCNUMBR,
 case when RMDTYPAL in (1,3,4) then (SLSAMNT + MISCAMNT - TRDISAMT)
	  when RMDTYPAL in (7,8) then -1*(SLSAMNT + MISCAMNT - TRDISAMT)
	  else 0 end Amount
 FROM RM20101
 WHERE VOIDSTTS = 0
UNION ALL
 SELECT  CUSTNMBR, DOCDATE, GLPOSTDT, DOCNUMBR,
 case when RMDTYPAL in (1,3,4) then (SLSAMNT + MISCAMNT - TRDISAMT)
	  when RMDTYPAL in (7,8) then -1*(SLSAMNT + MISCAMNT - TRDISAMT)
	  else 0 end Amount
 FROM RM30101
 WHERE VOIDSTTS = 0) T

LEFT OUTER JOIN RM00101 C  -- customer master
     ON T.CUSTNMBR = C.CUSTNMBR

GROUP BY T.CUSTNMBR, C.CUSTNAME, C.CUSTCLAS

GO
GRANT SELECT ON view_Customer_Totals_by_Year TO DYNGRP
</pre></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a>, <a href='http://victoriayudin.com/tag/year-end-close/'>year end close</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3947/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3947&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/09/sql-view-for-customer-yearly-totals-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/calculator.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/calculator.jpg?w=96" medium="image">
			<media:title type="html">calculator</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Customer shipping addresses in Dynamics GP</title>
		<link>http://victoriayudin.com/2011/02/18/customer-shipping-addresses-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2011/02/18/customer-shipping-addresses-in-dynamics-gp/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 13:26:36 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3513</guid>
		<description><![CDATA[Need to see a list of all the shipping addresses for your Dynamics GP customers? You can use the view below which pulls out the ship to address and the associated tax schedule, shipping method , salesperson, etc. To see other SQL views for Dynamics GP receivables data, take a look at the Receivables SQL Views page. For [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3513&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Need to see a list of all the shipping addresses for your Dynamics GP customers? You can use the view below which pulls out the ship to address and the associated tax schedule, shipping method , salesperson, etc.</p>
<p style="text-align:justify;">To see other SQL views for Dynamics GP receivables data, take a look at the <a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/">Receivables SQL Views page</a>. For other Dynamics GP views and reporting reporting information, check out the <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports page</a>.</p>
<p style="text-align:center;"><span style="color:#888888;">﻿~~~~~</span></p>
<pre>CREATE VIEW view_Customer_Ship_To_Addresses
AS

<span style="color:#888888;">/********************************************************************
view_Customer_Ship_To_Addresses
Created on Feb. 18, 2011 by Victoria Yudin - Flexible Solutions, Inc.
For updates visit http://victoriayudin.com/gp-reports/
********************************************************************/

</span>SELECT 	M.CUSTNMBR Customer_ID,
	M.CUSTNAME Customer_Name,
	M.CUSTCLAS Class_ID,
	M.CPRCSTNM Parent_ID,
	M.PRSTADCD Ship_To_Address_ID,
	A.CNTCPRSN Contact,
	A.ADDRESS1 Address_1,
	A.ADDRESS2 Address_2,
	A.ADDRESS3 Address_3,
	A.CITY City,
	A.[STATE] [State],
	A.ZIP Zip,
	A.COUNTRY Country,
	A.PHONE1 Phone_1,
	A.PHONE2 Phone_2,
	A.PHONE3 Phone_3,
	A.FAX Fax,
	A.UPSZONE UPS_Zone,
	A.SHIPMTHD Shipping_Method,
	A.TAXSCHID Tax_Schedule_ID,
	A.LOCNCODE Site_ID,
	A.SLPRSNID Salesperson_ID,
	A.SALSTERR Territory_ID,
	A.USERDEF1 [User-Defined_1],
	A.USERDEF2 [User-Defined_2],
	A.MODIFDT Modified_Date,
	A.CREATDDT Created_Date

FROM RM00101 M  <span style="color:#339966;">--customer master

</span>INNER JOIN RM00102 A  <span style="color:#339966;">--addresses
</span>	ON M.CUSTNMBR = A.CUSTNMBR
	AND M.PRSTADCD = A.ADRSCODE

<span style="color:#339966;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>
GO
GRANT SELECT ON view_Customer_Ship_To_Addresses to DYNGRP</pre>
<p style="text-align:center;"><span style="color:#888888;"> </span></p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3513/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3513/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3513&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/02/18/customer-shipping-addresses-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/01/boxes.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/01/boxes.jpg?w=96" medium="image">
			<media:title type="html">boxes</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view with AR apply detail</title>
		<link>http://victoriayudin.com/2010/02/15/sql-view-with-ar-apply-detail/</link>
		<comments>http://victoriayudin.com/2010/02/15/sql-view-with-ar-apply-detail/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 12:24:52 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2214</guid>
		<description><![CDATA[This has been a hot topic in the newsgroups lately and several people have asked me if I have any code for Receivables (AR) apply information in Dynamics GP. Below is a view that should help you get started if you&#8217;re building a report to show AR apply information in Dynamics GP. For more views like this, check out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=2214&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">This has been a hot topic in the newsgroups lately and several people have asked me if I have any code for Receivables (AR) apply information in Dynamics GP. Below is a view that should help you get started if you&#8217;re building a report to show AR apply information in Dynamics GP.</p>
<p style="text-align:justify;">For more views like this, check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports</a> page.</p>
<p style="text-align:justify;">For help with using this in SmartList Builder, take a look at my post on <a title="Permanent Link to How to use a SQL view in SmartList Builder" rel="bookmark" href="http://victoriayudin.com/2009/04/20/how-to-use-a-sql-view-in-smartlist-builder/">How to use a SQL view in SmartList Builder</a>.</p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<pre>CREATE VIEW view_AR_Apply_Detail
AS

<span style="color:#888888;">/*******************************************************************
view_AR_Apply_Detail
Created on Feb 15, 2010 by Victoria Yudin - Flexible Solutions, Inc.
For updates visit http://victoriayudin.com/gp-reports/
Returns apply detail for all posted receivables transactions.
Only shows functional currency amounts.
Credit documents applied to more than one debit document
	will return multiple lines.
Tables used:
RM00101 – Customer Master
RM20101 - Open Transactions
RM20201 – Open Transactions Apply
RM30101 – Historical Transactions
RM30201 – Historical Transactions Apply
Updated on Aug 12, 2010 to add original total of Applied to Doc and
     Applied To Doc Paid Off date.
Updated on Mar 23, 2011 to add unapplied amount of Applied to Doc.
*******************************************************************/</span>

SELECT  T.CUSTNMBR Customer_ID,
	CM.CUSTNAME Customer_Name,
	T.DOCDATE Document_Date,
	T.GLPOSTDT GL_Posting_Date,
	CASE T.RMDTYPAL
              WHEN 7 THEN 'Credit Memo'
              WHEN 8 THEN 'Return'
              WHEN 9 THEN 'Payment'
              END AS RM_Doc_Type,
	T.docTypeNum Document_Type_and_Number,
	T.DOCNUMBR Document_Number,
	T.ORTRXAMT Original_Trx_Amount,
	T.CURTRXAM Current_Trx_Amount,
	T.amountApplied Total_Applied_Amount,
	A.APPTOAMT Amount_Applied,
	A.APTODCTY Applied_to_Doc_Type,
	A.debitType Applied_to_Doc_Type_Name,
	A.APTODCNM  Applied_to_Doc_Number,
	A.APTODCDT Applied_to_Document_Date,
	A.ApplyToGLPostDate Applied_to_GL_Posting_Date,
	A.DISTKNAM Discount,
	A.WROFAMNT Writeoff,
	A.DATE1 Apply_Document_Date,
	A.GLPOSTDT Apply_GL_Posting_Date,
	D.ORTRXAMT Applied_To_Doc_Total,
	D.DINVPDOF Applied_To_Date_Paid_Off,
	D.CURTRXAM Applied_To_Doc_Unapplied_Amount

FROM (SELECT CUSTNMBR, DOCDATE, GLPOSTDT, RMDTYPAL,
	CASE RMDTYPAL
	  WHEN 7 THEN 'Credit Memo'
	  WHEN 8 THEN 'Return'
	  WHEN 9 THEN
	    CASE CSHRCTYP
	      WHEN 0 THEN 'Payment - Check ' +
   	        CASE CHEKNMBR
	          WHEN '' THEN ''
		 ELSE '#' + CHEKNMBR
		 END
	      WHEN 1 THEN 'Payment - Cash'
	      WHEN 2 THEN 'Payment - Credit Card'
	      END
	  END AS docTypeNum,
	DOCNUMBR, ORTRXAMT, CURTRXAM,
	ORTRXAMT - CURTRXAM amountApplied 

	FROM RM20101
	WHERE (RMDTYPAL &gt; 6) and (VOIDSTTS = 0) 

	UNION 

	SELECT CUSTNMBR, DOCDATE, GLPOSTDT, RMDTYPAL,
	CASE RMDTYPAL
	  WHEN 7 THEN 'Credit Memo'
	  WHEN 8 THEN 'Return'
	  WHEN 9 THEN
	    CASE CSHRCTYP
	      WHEN 0 THEN 'Payment - Check ' +
	        CASE CHEKNMBR
		 WHEN '' THEN ''
		 ELSE '#' + CHEKNMBR
		 END
	        WHEN 1 THEN 'Payment - Cash'
	        WHEN 2 THEN 'Payment - Credit Card'
	        END
	  END AS docTypeNum,
	DOCNUMBR, ORTRXAMT, CURTRXAM,
	ORTRXAMT - CURTRXAM amountApplied 

	FROM RM30101
	WHERE (RMDTYPAL &gt; 6) and (VOIDSTTS = 0)) T 

INNER JOIN RM00101 CM
	ON T.CUSTNMBR = CM.CUSTNMBR 

INNER JOIN
	(SELECT tO1.CUSTNMBR, APTODCTY, APTODCNM,
	APFRDCTY,APFRDCNM,
	CASE APTODCTY
	  WHEN 1 THEN 'Sale / Invoice'
	  WHEN 2 THEN 'Scheduled Payment'
	  WHEN 3 THEN 'Debit Memo'
	  WHEN 4 THEN 'Finance Charge'
	  WHEN 5 THEN 'Service Repair'
	  WHEN 6 THEN 'Warranty'
	  END as debitType,
	APPTOAMT, ApplyToGLPostDate, APTODCDT, tO2.DISTKNAM,
	tO2.WROFAMNT, tO2.DATE1, tO2.GLPOSTDT 

	FROM RM20201 tO2 

	INNER JOIN RM20101 tO1
	ON tO2.APTODCTY = tO1.RMDTYPAL
           AND tO2.APTODCNM = tO1.DOCNUMBR 

	UNION 

	SELECT tH1.CUSTNMBR, APTODCTY, APTODCNM,
	APFRDCTY, APFRDCNM,
	CASE APTODCTY
	  WHEN 1 THEN 'Sale / Invoice'
	  WHEN 2 THEN 'Scheduled Payment'
	  WHEN 3 THEN 'Debit Memo'
	  WHEN 4 THEN 'Finance Charge'
	  WHEN 5 THEN 'Service Repair'
	  WHEN 6 THEN 'Warranty'
	  END AS debitType,
	APPTOAMT, ApplyToGLPostDate, APTODCDT, tH2.DISTKNAM,
         tH2.WROFAMNT, tH2.DATE1, tH2.GLPOSTDT
	FROM RM30201 tH2 

	INNER JOIN RM30101 tH1
	ON tH2.APTODCTY = tH1.RMDTYPAL
	  AND tH2.APTODCNM = tH1.DOCNUMBR) A 

ON A.APFRDCTY = T.RMDTYPAL and A.APFRDCNM = T.DOCNUMBR

INNER JOIN
	(SELECT RMDTYPAL, DOCNUMBR, ORTRXAMT, DINVPDOF, CURTRXAM
	 FROM RM20101

	UNION 

	 SELECT RMDTYPAL, DOCNUMBR, ORTRXAMT, DINVPDOF, CURTRXAM = 0
	 FROM RM30101) D

ON A.APTODCTY = D.RMDTYPAL and A.APTODCNM = D.DOCNUMBR

<span style="color:#3366ff;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
GO
GRANT SELECT ON view_AR_Apply_Detail TO DYNGRP</span></pre>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/2214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/2214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=2214&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2010/02/15/sql-view-with-ar-apply-detail/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view with all GL distributions for AR transactions</title>
		<link>http://victoriayudin.com/2010/02/10/sql-view-with-all-gl-distributions-for-ar-transactions/</link>
		<comments>http://victoriayudin.com/2010/02/10/sql-view-with-all-gl-distributions-for-ar-transactions/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 11:24:50 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GL SQL code]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[General Ledger]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2204</guid>
		<description><![CDATA[As a corollary to my SQL view with all posted Receivables transactions, below is a view that will add all the General Ledger distributions to the AR transactions. I made a few changes to the original AR transactions view, primarily to remove some columns that are typically not needed and add underscores to the column names so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=2204&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">As a corollary to my <a title="SQL view with all posted Receivables transactions" href="http://victoriayudin.com/2009/04/24/sql-view-with-all-posted-receivables-transactions/" target="_blank">SQL view with all posted Receivables transactions</a>, below is a view that will add all the General Ledger distributions to the AR transactions. I made a few changes to the original AR transactions view, primarily to remove some columns that are typically not needed and add underscores to the column names so that this can be used with SmartList Builder without having to change column names.</p>
<p style="text-align:justify;">For more views like this, check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports</a> page.</p>
<p style="text-align:justify;">For help with using this in SmartList Builder, take a look at my post on <a title="Permanent Link to How to use a SQL view in SmartList Builder" rel="bookmark" href="http://victoriayudin.com/2009/04/20/how-to-use-a-sql-view-in-smartlist-builder/">How to use a SQL view in SmartList Builder</a>.</p>
<p style="text-align:center;"><span style="color:#c0c0c0;">~~~~~</span></p>
<pre>CREATE VIEW view_RM_Trx_Distributions
AS

<span style="color:#888888;">/*******************************************************************
view_RM_Trx_Distributions
Created on Feb 10, 2010 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
Returns all posted (open and history) Receivables transactions
with their GL distributions. All amounts are functional.
Tables used:
RO: RM20101 - Open Transactions
RH: RM30101 – Historical Transactions
DO: RM10101 - Work and Open Distributions
DH: RM30301 - Historical Distributions
G: GL00105 - Account Index Master
*******************************************************************/
</span>
SELECT RO.CUSTNMBR Customer_ID,
       RO.CPRCSTNM Parent_Customer,
       RO.RMDTYPAL Doc_Type_Number,
       CASE RO.RMDTYPAL
         WHEN 0 THEN 'Reserved'
         WHEN 1 THEN 'Invoice'
         WHEN 2 THEN 'Scheduled Pmt'
         WHEN 3 THEN 'Debit Memo'
         WHEN 4 THEN 'Finance Charge'
         WHEN 5 THEN 'Service Repair'
         WHEN 6 THEN 'Warranty'
         WHEN 7 THEN 'Credit Memo'
         WHEN 8 THEN 'Return'
         WHEN 9 THEN 'Payment'
         ELSE ''
         END Document_Type,
       RO.DOCNUMBR Document_Number,
       RO.CHEKNMBR Check_Number,
       RO.BACHNUMB Batch_ID,
       RO.BCHSOURC Batch_Source,
       RO.TRXSORCE Trx_Source,
       CASE RO.CSHRCTYP
         WHEN 0 THEN 'Check'
         WHEN 1 THEN 'Cash'
         WHEN 2 THEN 'Credit Card'
         ELSE ''
         END Cash_Receipt_Type,
       RO.DUEDATE Due_Date,
       RO.DOCDATE Document_Date,
       RO.POSTDATE Posted_Date,
       RO.PSTUSRID Post_User_ID,
       RO.GLPOSTDT GL_Posting_Date,
       RO.LSTEDTDT Last_Edit_Date,
       RO.LSTUSRED Last_User_To_Edit,
       RO.ORTRXAMT Original_Trx_Amount,
       RO.CURTRXAM Current_Trx_Amount,
       RO.SLSAMNT Sales_Amount,
       RO.COSTAMNT Cost_Amount,
       RO.FRTAMNT Freight_Amount,
       RO.MISCAMNT Misc_Amount,
       RO.TAXAMNT Tax_Amount,
       RO.COMDLRAM Commission_Amount,
       RO.CASHAMNT Cash_Amount,
       RO.DISTKNAM Discount_Taken_Amount,
       RO.DISAVAMT Discount_Avail_Amount,
       RO.DISCRTND Discount_Returned,
       RO.DISCDATE Discount_Date,
       RO.DSCDLRAM Discount_Dollar_Amount,
       RO.DSCPCTAM Discount_Percent_Amount,
       RO.WROFAMNT Write_Off_Amount,
       RO.TRXDSCRN Trx_Description,
       RO.CSPORNBR Customer_PO,
       RO.SLPRSNID Salesperson_ID,
       RO.SLSTERCD Sales_Territory,
       RO.DINVPDOF Date_Inv_Paid_Off,
       RO.PPSAMDED PPS_Amount_Deducted,
       RO.GSTDSAMT GST_Discount_Amount,
       CASE RO.VOIDSTTS
         WHEN 0 THEN 'Not Voided'
         WHEN 1 THEN 'Voided'
         WHEN 2 THEN 'NSF check'
         WHEN 3 THEN 'Waived finance charge'
         ELSE ''
         END VoidS_tatus,
       RO.VOIDDATE Void_Date,
       RO.TAXSCHID Tax_Schedule_ID,
       RO.CURNCYID Currency_ID,
       RO.PYMTRMID Payment_Terms_ID,
       RO.SHIPMTHD Shipping_Method,
       RO.TRDISAMT Trade_Discount_Amount,
       RO.NOTEINDX Note_Index,
       RO.Tax_Date Tax_Date,
       coalesce(G.ACTNUMST,'') Account_Number,
       CASE DO.DISTTYPE
         WHEN 1 THEN 'Cash'
         WHEN 2 THEN 'Terms Taken'
         WHEN 3 THEN 'Accounts Receivable'
         WHEN 4 THEN 'Writeoffs'
         WHEN 5 THEN 'Terms Available'
         WHEN 6 THEN 'GST'
         WHEN 7 THEN 'PPS'
         WHEN 8 THEN 'Other'
         WHEN 9 THEN 'Sales'
         WHEN 10 THEN 'Trade'
         WHEN 11 THEN 'Frieght'
         WHEN 12 THEN 'Miscellaneous'
         WHEN 13 THEN 'Taxes'
         WHEN 14 THEN 'COGS'
         WHEN 15 THEN 'Inventory'
         WHEN 16 THEN 'Finance Charges'
         WHEN 17 THEN 'Returns'
         WHEN 18 THEN 'Debit Memo'
         WHEN 19 THEN 'Credit Memo'
         WHEN 20 THEN 'Service'
         WHEN 21 THEN 'Warranty Expense'
         WHEN 22 THEN 'Warranty Sales'
         WHEN 23 THEN 'Commissions Expense'
         WHEN 24 THEN 'Commissions Payable'
         WHEN 25 THEN 'Unit Account'
         WHEN 26 THEN 'Rounding'
         WHEN 27 THEN 'Realized Gain'
         WHEN 28 THEN 'Realized Loss'
         WHEN 29 THEN 'Unrealized Gain'
         WHEN 30 THEN 'Unrealized Loss'
         ELSE ''
         END 'Distribution_Type',
       coalesce(DO.DEBITAMT,0) Debit_Amount,
       coalesce(DO.CRDTAMNT,0) Credit_Amount,
       coalesce(DO.DistRef,'') Distribution_Reference

FROM RM20101 RO
    LEFT OUTER JOIN
       RM10101 DO
       ON RO.RMDTYPAL = DO.RMDTYPAL
       AND RO.DOCNUMBR = DO.DOCNUMBR
    LEFT OUTER JOIN
       GL00105 G
       ON DO.DSTINDX = G.ACTINDX

UNION ALL

SELECT RH.CUSTNMBR Customer_ID,
       RH.CPRCSTNM Parent_Customer,
       RH.RMDTYPAL Doc_Type_Number,
       CASE RH.RMDTYPAL
         WHEN 0 THEN 'Reserved'
         WHEN 1 THEN 'Invoice'
         WHEN 2 THEN 'Scheduled Pmt'
         WHEN 3 THEN 'Debit Memo'
         WHEN 4 THEN 'Finance Charge'
         WHEN 5 THEN 'Service Repair'
         WHEN 6 THEN 'Warranty'
         WHEN 7 THEN 'Credit Memo'
         WHEN 8 THEN 'Return'
         WHEN 9 THEN 'Payment'
         ELSE ''
         END Document_Type,
       RH.DOCNUMBR Document_Number,
       RH.CHEKNMBR Check_Number,
       RH.BACHNUMB Batch_ID,
       RH.BCHSOURC Batch_Source,
       RH.TRXSORCE Trx_Source,
       CASE RH.CSHRCTYP
         WHEN 0 THEN 'Check'
         WHEN 1 THEN 'Cash'
         WHEN 2 THEN 'Credit Card'
         ELSE ''
         END Cash_Receipt_Type,
       RH.DUEDATE Due_Date,
       RH.DOCDATE Document_Date,
       RH.POSTDATE Posted_Date,
       RH.PSTUSRID Post_User_ID,
       RH.GLPOSTDT GL_Posting_Date,
       RH.LSTEDTDT Last_Edit_Date,
       RH.LSTUSRED Last_User_To_Edit,
       RH.ORTRXAMT Original_Trx_Amount,
       RH.CURTRXAM Current_Trx_Amount,
       RH.SLSAMNT Sales_Amount,
       RH.COSTAMNT Cost_Amount,
       RH.FRTAMNT Freight_Amount,
       RH.MISCAMNT Misc_Amount,
       RH.TAXAMNT Tax_Amount,
       RH.COMDLRAM Commission_Amount,
       RH.CASHAMNT Cash_Amount,
       RH.DISTKNAM Discount_Taken_Amount,
       RH.DISAVAMT Discount_Avail_Amount,
       RH.DISCRTND Discount_Returned,
       RH.DISCDATE Discount_Date,
       RH.DSCDLRAM Discount_Dollar_Amount,
       RH.DSCPCTAM Discount_Percent_Amount,
       RH.WROFAMNT Write_Off_Amount,
       RH.TRXDSCRN Trx_Description,
       RH.CSPORNBR Customer_PO,
       RH.SLPRSNID Salesperson_ID,
       RH.SLSTERCD Sales_Territory,
       RH.DINVPDOF Date_Inv_Paid_Off,
       RH.PPSAMDED PPS_Amount_Deducted,
       RH.GSTDSAMT GST_Discount_Amount,
       CASE RH.VOIDSTTS
         WHEN 0 THEN 'Not Voided'
         WHEN 1 THEN 'Voided'
         WHEN 2 THEN 'NSF check'
         WHEN 3 THEN 'Waived finance charge'
         ELSE ''
         END Void_Status,
       RH.VOIDDATE Void_Date,
       RH.TAXSCHID Tax_Schedule_ID,
       RH.CURNCYID Currency_ID,
       RH.PYMTRMID Payment_Terms_ID,
       RH.SHIPMTHD Shipping_Method,
       RH.TRDISAMT Trade_Discount_Amount,
       RH.NOTEINDX Note_Index,
       RH.Tax_Date Tax_Date,
       coalesce(G.ACTNUMST,'') Account_Number,
       CASE DH.DISTTYPE
         WHEN 1 THEN 'Cash'
         WHEN 2 THEN 'Terms Taken'
         WHEN 3 THEN 'Accounts Receivable'
         WHEN 4 THEN 'Writeoffs'
         WHEN 5 THEN 'Terms Available'
         WHEN 6 THEN 'GST'
         WHEN 7 THEN 'PPS'
         WHEN 8 THEN 'Other'
         WHEN 9 THEN 'Sales'
         WHEN 10 THEN 'Trade'
         WHEN 11 THEN 'Frieght'
         WHEN 12 THEN 'Miscellaneous'
         WHEN 13 THEN 'Taxes'
         WHEN 14 THEN 'COGS'
         WHEN 15 THEN 'Inventory'
         WHEN 16 THEN 'Finance Charges'
         WHEN 17 THEN 'Returns'
         WHEN 18 THEN 'Debit Memo'
         WHEN 19 THEN 'Credit Memo'
         WHEN 20 THEN 'Service'
         WHEN 21 THEN 'Warranty Expense'
         WHEN 22 THEN 'Warranty Sales'
         WHEN 23 THEN 'Commissions Expense'
         WHEN 24 THEN 'Commissions Payable'
         WHEN 25 THEN 'Unit Account'
         WHEN 26 THEN 'Rounding'
         WHEN 27 THEN 'Realized Gain'
         WHEN 28 THEN 'Realized Loss'
         WHEN 29 THEN 'Unrealized Gain'
         WHEN 30 THEN 'Unrealized Loss'
         ELSE ''
         END 'Distribution_Type',
       coalesce(DH.DEBITAMT,0) Debit_Amount,
       coalesce(DH.CRDTAMNT,0) Credit_Amount,
       coalesce(DH.DistRef,'') Distribution_Reference

FROM RM30101 RH
    LEFT OUTER JOIN
       RM30301 DH
       ON RH.RMDTYPAL = DH.RMDTYPAL
       AND RH.DOCNUMBR = DH.DOCNUMBR
    LEFT OUTER JOIN
       GL00105 G
       ON DH.DSTINDX = G.ACTINDX

<span style="color:#3366ff;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>GO
GRANT SELECT ON view_RM_Trx_Distributions TO DYNGRP</pre>
<p style="text-align:center;"><span style="color:#c0c0c0;">~~~~~</span></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/gl-sql-code/'>GL SQL code</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/general-ledger/'>General Ledger</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/2204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/2204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=2204&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2010/02/10/sql-view-with-all-gl-distributions-for-ar-transactions/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>What’s with all these dates?</title>
		<link>http://victoriayudin.com/2009/09/08/whats-with-all-these-dates/</link>
		<comments>http://victoriayudin.com/2009/09/08/whats-with-all-these-dates/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:59:20 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Bank Reconciliation]]></category>
		<category><![CDATA[General Ledger]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[Purchase Order Processing]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[Sales Order Processing]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1935</guid>
		<description><![CDATA[There are many different dates stored in Dynamics GP. This is typically a good thing, my philosophy is that it is always better to have more data than you need and not the other way around. However, it can get confusing rather quickly since a lot of the labels for the dates sound very similar. I will attempt [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=1935&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">There are many different dates stored in Dynamics GP. This is typically a good thing, my philosophy is that it is always better to have more data than you need and not the other way around. However, it can get confusing rather quickly since a lot of the labels for the dates sound very similar. I will attempt to shed some light on the more common dates in a &#8216;generic&#8217; way, so that it can be applied to just about any module in GP, although the primary modules I am looking at are: Payables, Receivables, Sales Order Processing (SOP), Bank Reconciliation, Purchase Order Processing (POP) and General Ledger. </p>
<ul style="text-align:justify;">
<li style="text-align:justify;padding-bottom:10px;"><strong>Document Date</strong> or <strong>Date</strong>: the subledger date. For most companies this is the actual date on the invoice that they receive from a vendor or send to a customer. In the Bank Reconciliation module this date is called <strong>Transaction Date</strong> or <strong>TRX Date</strong>.</li>
<li style="text-align:justify;padding-bottom:10px;"><strong>Posting Date</strong> or <strong>GL Posting Date</strong>: the date the transaction will post to the General Ledger and thus the date that determines when the transaction will show up on your financial statements. This becomes the Transaction Date in the General Ledger.</li>
<li style="text-align:justify;padding-bottom:10px;"><strong>General Ledger Transaction Date</strong>: the date that determines the period the transaction will show up for on your financial statements. This is the same as the Posting Date or GL Posting Date that is found in the subledgers.</li>
<li style="text-align:justify;padding-bottom:10px;"><strong>Post<span style="color:#000000;"><span style="text-decoration:underline;">ed</span></span> Date</strong>: the date the transaction was actually posted. This will be the system date, not the &#8216;GP User Date&#8217; at the time of the posting.</li>
<li style="text-align:justify;padding-bottom:10px;"><strong>Apply Date</strong>: the subledger apply date. This will be used when running aging reports using the Document Date and will be the subledger date for any transactions created during the apply process.  Will also be used for the Date Invoice Paid Off (see below).</li>
<li style="text-align:justify;padding-bottom:10px;"><strong>Apply Posting Date</strong>: the General Ledger apply date. Will be used when running aging reports using the GL Posting Date and will be the General Ledger Transaction Date for any transactions created during the apply process.</li>
<li style="text-align:justify;"><strong>Date Invoice Paid Off</strong>: the date an invoice was fully applied (using the Apply Date).</li>
</ul>
<p style="text-align:justify;"> </p>
<br />Posted in Dynamics GP Tagged: Bank Reconciliation, Dynamics GP, General Ledger, Payables, Purchase Order Processing, Receivables, Sales Order Processing <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1935/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=1935&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/09/08/whats-with-all-these-dates/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for all unapplied Receivables transactions in Dynamics GP</title>
		<link>http://victoriayudin.com/2009/09/05/sql-view-for-all-unapplied-receivables-transactions-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2009/09/05/sql-view-for-all-unapplied-receivables-transactions-in-dynamics-gp/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 15:38:20 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1923</guid>
		<description><![CDATA[Here is a SQL view that will return all unapplied Receivables transactions in Dynamics GP. This will calculate how many days overdue unapplied transaction are. If something is not overdue, or if it is a credit transaction (payment, credit or return) the Days_Past_Due will be zero. For other SQL code, please visit my GP Reports page. ~~~~~ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=1923&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Here is a SQL view that will return all unapplied Receivables transactions in Dynamics GP. This will calculate how many days overdue unapplied transaction are. If something is not overdue, or if it is a credit transaction (payment, credit or return) the Days_Past_Due will be zero. For other SQL code, please visit my <a title="GP Reports page" href="http://victoriayudin.com/gp-reports/" target="_self">GP Reports page</a>.</p>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<pre>CREATE VIEW view_Unapplied_AR_Trx
AS

<span style="color:#808080;">/****************************************************************
view_Unapplied_AR_Trx
Created Sep 05, 2009 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
Shows all unapplied Receivables transactions
     in Functional Currency only
Tables used:
     CM - RM00101 - Customer Master
     CS - RM00103 – Customer Master Summary
     RM - RM20101 - Open Transactions
****************************************************************/
</span>
SELECT CM.CUSTNMBR Customer_ID,
       CM.CUSTNAME Customer_Name,
       CM.PYMTRMID Customer_Terms,
       CM.CUSTCLAS Customer_Class,
       CM.PRCLEVEL Price_Level,
       CASE RM.RMDTYPAL
          WHEN 1 THEN 'Sale / Invoice'
          WHEN 3 THEN 'Debit Memo'
          WHEN 4 THEN 'Finance Charge'
          WHEN 5 THEN 'Service Repair'
          WHEN 6 THEN 'Warranty'
          WHEN 7 THEN 'Credit Memo'
          WHEN 8 THEN 'Return'
          WHEN 9 THEN 'Payment'
          ELSE 'Other'
          END Document_Type,
       RM.DOCNUMBR Document_Number,
       RM.DOCDATE Document_Date,
       RM.DUEDATE Due_Date,
       RM.ORTRXAMT Document_Amount,
       RM.CURTRXAM Unapplied_Amount,
       CASE
          WHEN RM.DUEDATE &gt;= GETDATE() THEN 0
          WHEN RM.RMDTYPAL in (7,8,9) THEN 0
          ELSE DATEDIFF(DD, RM.DUEDATE, GETDATE())
          END Days_Past_Due,
       CS.LASTPYDT Last_Payment_Date,
       CS.LPYMTAMT Last_Payment_Amount

FROM   RM20101 RM
     INNER JOIN
       RM00101 CM
       ON RM.CUSTNMBR = CM.CUSTNMBR
     INNER JOIN
       RM00103 CS
       ON RM.CUSTNMBR = CS.CUSTNMBR
WHERE  RM.VOIDSTTS = 0 AND RM.CURTRXAM &lt;&gt; 0

<span style="color:#008000;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>GO
GRANT SELECT ON view_Unapplied_AR_Trx TO DYNGRP</pre>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Posted in Dynamics GP, GP Reports code, GP SQL scripts, Receivables SQL code Tagged: GP Reports code, GP SQL view, Receivables, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/1923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/1923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1923/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=1923&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/09/05/sql-view-for-all-unapplied-receivables-transactions-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view with all posted Receivables transactions</title>
		<link>http://victoriayudin.com/2009/04/24/sql-view-with-all-posted-receivables-transactions/</link>
		<comments>http://victoriayudin.com/2009/04/24/sql-view-with-all-posted-receivables-transactions/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 10:26:33 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1655</guid>
		<description><![CDATA[Below is code to create a SQL view that returns all the posted Receivables transactions in Dynamics GP. I have had an abbreviated version of this view on my GP Reports page for a while, but I cleaned it up a bit and gave it some more friendly column names. I also added values for the commonly used [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=1655&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Below is code to create a SQL view that returns all the posted Receivables transactions in Dynamics GP. I have had an abbreviated version of this view on my <a title="GP Reports page" href="http://victoriayudin.com/gp-reports/" target="_self">GP Reports page</a> for a while, but I cleaned it up a bit and gave it some more friendly column names. I also added values for the commonly used fields such as Void Status and Document Type. There may be a lot more fields than are needed for most reports in here, but it is difficult to know who is using what fields. If you have a large number of records in your database you can probably improve performance by taking out the fields you are not using.</p>
<p style="text-align:justify;">This view will work with either SmartList Builder or Crystal Reports, however for SmartList Builder you may want to add spaces in the column names to make it more user-friendly.</p>
<p style="text-align:center;"><span style="color:#c0c0c0;">~~~~~</span></p>
<p><code>CREATE VIEW view_RM_Transactions<br />
AS</code><br />
<code><br />
<span style="color:#008000;"><code>/*******************************************************************</code></span><br />
<span style="color:#008000;"><code>view_RM_Transactions </code></span><br />
<span style="color:#008000;"><code>Created on Apr. 24 2008 by Victoria Yudin - Flexible Solutions, Inc. </code></span><br />
<span style="color:#008000;"><code>For updates see http://victoriayudin.com/gp-reports/ </code></span><br />
<span style="color:#008000;"><code>Contains all posted (open and history) Receivables transactions. </code></span><br />
<span style="color:#008000;"><code>Returns all fields that are the same from RM20101 and RM30101 tables </code></span><br />
<span style="color:#008000;"><code>with friendlier column names.</code></span><br />
<span style="color:#008000;"><code>Updated May 19, 2011 to add Customer Name</code> <code>*******************************************************************/</code></span></code></p>
<pre>SELECT  T.CUSTNMBR CustomerID,
	CUSTNAME CustomerName,
	T.CPRCSTNM ParentCustomer,
	RMDTYPAL DocTypeNumber,
	CASE RMDTYPAL
		WHEN 0 THEN 'Reserved'
		WHEN 1 THEN 'Invoice'
		WHEN 2 THEN 'Scheduled Pmt'
		WHEN 3 THEN 'Debit Memo'
		WHEN 4 THEN 'Finance Charge'
		WHEN 5 THEN 'Service Repair'
		WHEN 6 THEN 'Warranty'
		WHEN 7 THEN 'Credit Memo'
		WHEN 8 THEN 'Return'
		WHEN 9 THEN 'Payment'
		ELSE ''
		END DocType,
	DOCNUMBR DocumentNumber,
	CHEKNMBR CheckNumber,
	BACHNUMB BatchID,
	BCHSOURC BatchSource,
	TRXSORCE TrxSource,
	CASE CSHRCTYP
		WHEN 0 THEN 'Check'
		WHEN 1 THEN 'Cash'
		WHEN 2 THEN 'Credit Card'
		ELSE ''
		END CashReceiptType,
	DUEDATE DueDate,
	DOCDATE DocumentDate,
	POSTDATE PostedDate,
	PSTUSRID PostUserID,
	GLPOSTDT GLPostingDate,
	LSTEDTDT LastEditDate,
	LSTUSRED LastUserToEdit,
	ORTRXAMT OriginalTrxAmount,
	CURTRXAM CurrentTrxAmount,
	SLSAMNT SalesAmount,
	COSTAMNT CostAmount,
	FRTAMNT FreightAmount,
	MISCAMNT MiscAmount,
	TAXAMNT TaxAmount,
	COMDLRAM CommissionAmount,
	CASHAMNT CashAmount,
	DISTKNAM DiscountTakenAmount,
	DISAVAMT DiscountAvailAmount,
	DISCRTND DiscountReturned,
	DISCDATE DiscountDate,
	DSCDLRAM DiscountDollarAmount,
	DSCPCTAM DiscountPercentAmount,
	WROFAMNT WriteOffAmount,
	TRXDSCRN TrxDescription,
	CSPORNBR CustomerPO,
	T.SLPRSNID SalespersonID,
	SLSTERCD SalesTerritory,
	DINVPDOF DateInvPaidOff,
	PPSAMDED PPSAmountDeducted,
	GSTDSAMT GSTDiscountAmount,
	DELETE1 [Delete],
	CASE VOIDSTTS
		WHEN 0 THEN 'Not Voided'
		WHEN 1 THEN 'Voided'
		WHEN 2 THEN 'NSF check'
		WHEN 3 THEN 'Waived finance charge'
		ELSE ''
		END VoidStatus,
	VOIDDATE VoidDate,
	T.TAXSCHID TaxScheduleID,
	T.CURNCYID CurrencyID,
	T.PYMTRMID PaymentTermsID,
	T.SHIPMTHD ShippingMethod,
	TRDISAMT TradeDiscountAmount,
	SLSCHDID SalesScheduleID,
	FRTSCHID FreightScheduleID,
	MSCSCHID MiscScheduleID,
	T.NOTEINDX NoteIndex,
	Tax_Date TaxDate,
	APLYWITH ApplyWithholding,
	SALEDATE SaleDate,
	CORRCTN Correction,
	SIMPLIFD Simplified, Electronic,
	ECTRX ECTransaction,
	BKTSLSAM BackoutSalesAmount,
	BKTFRTAM BackoutFreightAmount,
	BKTMSCAM BackoutMiscAmount,
	BackoutTradeDisc BackoutTradeDiscAmount,
	Factoring,
	DIRECTDEBIT DirectDebit

FROM RM20101 T
LEFT OUTER JOIN RM00101 C
     ON T.CUSTNMBR = C.CUSTNMBR

UNION ALL

SELECT  T.CUSTNMBR CustomerID,
	CUSTNAME CustomerName,
	T.CPRCSTNM ParentCustomer,
	RMDTYPAL DocTypeNumber,
	CASE RMDTYPAL
		WHEN 0 THEN 'Reserved'
		WHEN 1 THEN 'Invoice'
		WHEN 2 THEN 'Scheduled Pmt'
		WHEN 3 THEN 'Debit Memo'
		WHEN 4 THEN 'Finance Charge'
		WHEN 5 THEN 'Service Repair'
		WHEN 6 THEN 'Warranty'
		WHEN 7 THEN 'Credit Memo'
		WHEN 8 THEN 'Return'
		WHEN 9 THEN 'Payment'
		ELSE ''
		END DocType,
	DOCNUMBR DocumentNumber,
	CHEKNMBR CheckNumber,
	BACHNUMB BatchID,
	BCHSOURC BatchSource,
	TRXSORCE TrxSource,
	CASE CSHRCTYP
		WHEN 0 THEN 'Check'
		WHEN 1 THEN 'Cash'
		WHEN 2 THEN 'Credit Card'
		ELSE ''
		END CashReceiptType,
	DUEDATE DueDate,
	DOCDATE DocumentDate,
	POSTDATE PostedDate,
	PSTUSRID PostUserID,
	GLPOSTDT GLPostingDate,
	LSTEDTDT LastEditDate,
	LSTUSRED LastUserToEdit,
	ORTRXAMT OriginalTrxAmount,
	CURTRXAM CurrentTrxAmount,
	SLSAMNT SalesAmount,
	COSTAMNT CostAmount,
	FRTAMNT FreightAmount,
	MISCAMNT MiscAmount,
	TAXAMNT TaxAmount,
	COMDLRAM CommissionAmount,
	CASHAMNT CashAmount,
	DISTKNAM DiscountTakenAmount,
	DISAVAMT DiscountAvailAmount,
	DISCRTND DiscountReturned,
	DISCDATE DiscountDate,
	DSCDLRAM DiscountDollarAmount,
	DSCPCTAM DiscountPercentAmount,
	WROFAMNT WriteOffAmount,
	TRXDSCRN TrxDescription,
	CSPORNBR CustomerPO,
	T.SLPRSNID SalespersonID,
	SLSTERCD SalesTerritory,
	DINVPDOF DateInvPaidOff,
	PPSAMDED PPSAmountDeducted,
	GSTDSAMT GSTDiscountAmount,
	DELETE1 [Delete],
	CASE VOIDSTTS
		WHEN 0 THEN 'Not Voided'
		WHEN 1 THEN 'Voided'
		WHEN 2 THEN 'NSF check'
		WHEN 3 THEN 'Waived finance charge'
		ELSE ''
		END VoidStatus,
	VOIDDATE VoidDate,
	T.TAXSCHID TaxScheduleID,
	T.CURNCYID CurrencyID,
	T.PYMTRMID PaymentTermsID,
	T.SHIPMTHD ShippingMethod,
	TRDISAMT TradeDiscountAmount,
	SLSCHDID SalesScheduleID,
	FRTSCHID FreightScheduleID,
	MSCSCHID MiscScheduleID,
	T.NOTEINDX NoteIndex,
	Tax_Date TaxDate,
	APLYWITH ApplyWithholding,
	SALEDATE SaleDate,
	CORRCTN Correction,
	SIMPLIFD Simplified, Electronic,
	ECTRX ECTransaction,
	BKTSLSAM BackoutSalesAmount,
	BKTFRTAM BackoutFreightAmount,
	BKTMSCAM BackoutMiscAmount,
	BackoutTradeDisc BackoutTradeDiscAmount,
	Factoring,
	DIRECTDEBIT DirectDebit

FROM RM30101 T
LEFT OUTER JOIN RM00101 C
     ON T.CUSTNMBR = C.CUSTNMBR
 </pre>
<p><span style="color:#008000;"><code>/** the following will grant permissions to this view to DYNGRP,</code></span><br />
<span style="color:#008000;"><code>leave this section off if you do not want to grant permissions **/ </code></span><br />
<code>GO</code><br />
<code>GRANT SELECT ON view_RM_Transactions TO DYNGRP</code></p>
<p style="text-align:center;"><span style="color:#3366ff;"><span style="color:#c0c0c0;">~~~~~</span></span></p>
<p style="text-align:justify;"><span style="color:#3366ff;"><span style="color:#c0c0c0;"><em><span style="color:#000000;">Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</span></em></span></span></p>
<br />Posted in Dynamics GP, GP Reports code, GP SQL scripts, Receivables SQL code Tagged: GP Reports code, GP SQL view, Receivables, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/1655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/1655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1655/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1655/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1655/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=1655&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/04/24/sql-view-with-all-posted-receivables-transactions/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Year end close in Dynamics GP</title>
		<link>http://victoriayudin.com/2008/11/14/year-end-close-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2008/11/14/year-end-close-in-dynamics-gp/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 11:32:17 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Fixed Assets]]></category>
		<category><![CDATA[General Ledger]]></category>
		<category><![CDATA[Inventory]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[Payroll]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[year end close]]></category>

		<guid isPermaLink="false">http://victoriayudin.wordpress.com/?p=602</guid>
		<description><![CDATA[Every year we get a slew of phone calls about closing the year in GP.  Usually these start in December and I  thought I would beat the rush this year. Here are some resources and notes I have compiled over the years on the year end close. I will add to this post as I find more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=602&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Every year we get a slew of phone calls about closing the year in GP.  Usually these start in December and I  thought I would beat the rush this year. Here are some resources and notes I have compiled over the years on the year end close. I will add to this post as I find more resources or if I get additional questions, so you can always find updated information here.</p>
<h3 style="text-align:center;">GP KnowledgeBase Articles</h3>
<p style="text-align:justify;">Microsoft publishes and updates articles that explain in great detail how the year end close should be done and all the implications and timing issues.  Here is order that the modules should be closed in and the related articles:</p>
<ul>
<li>
<div style="text-align:left;"><a title="Inventory year end close" href="https://mbs.microsoft.com/customersource/documentation/howtodocuments/msdgpinvencontmod.htm?printpage=false&amp;stext=inventory year end close" target="_blank">Inventory</a></div>
</li>
<li>
<div style="text-align:left;">Receivables Management &#8211; <a title="RM year end close KB 857444" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb$en-us$857444" target="_blank">KB 857444</a></div>
</li>
<li>
<div style="text-align:left;">Payables Management &#8211; <a title="PM year end close - KB 875169" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;875169" target="_blank">KB 875169</a></div>
</li>
<li>
<div style="text-align:left;">Fixed Assets &#8211; <a title="Fixed Assets year end close - KB 865653" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;865653" target="_blank">KB 865653</a></div>
</li>
<li>
<div style="text-align:left;">General Ledger &#8211; <a title="GL year end close - KB 888003" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;888003" target="_blank">KB 888003</a></div>
</li>
<li>
<div style="text-align:left;">Payroll &#8211; <a title="Payroll year end close - KB 850663" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;850663" target="_blank">KB 850663</a> or Canadian Payroll &#8211; <a title="Canadian Payroll year end close - KB 861506" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;861806" target="_blank">KB 861806</a></div>
</li>
</ul>
<p style="text-align:left;">
<h3 style="text-align:center;">Other Resources</h3>
<ul>
<li>
<div style="text-align:justify;">Mark Polino&#8217;s Dynamics Sherpa <a title="Dynamics Sherpa Year End Close" href="http://www.youtube.com/watch?v=mL4oNyr8eAs" target="_blank">Year End Close video</a></div>
</li>
<li>
<div style="text-align:justify;"><a title="Accolade Publications" href="http://www.accoladepublications.com/" target="_self">Accolade Publications</a> Year/Period End Procedures <em>(click on Great Plains on the bottom, then Year/Period End Procedures on the right)</em></div>
</li>
<li>
<div style="text-align:justify;">Information about performing the year-end closing procedure in Receivables Management in Microsoft Dynamics GP after December 31 &#8211; <a title="KB 851140" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;851140" target="_blank">KB 851140</a></div>
</li>
<li>
<div style="text-align:justify;">Each Dynamics GP manual will all have a section on the year end close if it is applicable for that  particular module</div>
</li>
<li>
<div style="text-align:justify;">GP 9.0 &#8211; <a title="GP 9.0 - 2008 US Payroll Year End Update" href="https://mbs.microsoft.com/customersource/downloads/taxupdates/usgpye9.htm" target="_blank">2008 US Payroll Year End Update</a></div>
</li>
<li>
<div style="text-align:left;">GP 10.0 &#8211; <a title="GP 10.0 - 2008 US Payroll Year End Update" href="https://mbs.microsoft.com/customersource/downloads/taxupdates/usgpye10.htm" target="_blank">2008 US Payroll Year End Update</a></div>
</li>
<li>
<div style="text-align:left;">Mariano Gomez: <a title="Applying 2008 Year End updates for Microsoft Dynamics GP 9.0 and 10.0 " href="http://dynamicsgpblogster.blogspot.com/2008/12/urgent-applying-2008-year-end-updates.html" target="_blank">Applying 2008 Year End updates for Microsoft Dynamics GP 9.0 and 10.0</a></div>
</li>
<li>
<div style="text-align:justify;">Mariano Gomez: <a title="2008 Year End Update and Microsoft Great Plains 8.0 " href="http://dynamicsgpblogster.blogspot.com/2008/12/urgent-2008-year-end-update-and.html" target="_blank">2008 Year End Update and Microsoft Great Plains 8.0</a></div>
</li>
<li>
<div style="text-align:justify;">Christina Phillips of Dynamics GP Land: <a title="Year End 2008 Tips and Tricks" href="http://dynamicsgpland.blogspot.com/2009/01/year-end-2008-tips-and-tricks.html" target="_blank">Year End 2008 Tips and Tricks</a></div>
</li>
<li>
<div style="text-align:justify;">Doug Pitcher of Rose Business Solutons: <a title="2008 Payroll year end close update Dynamics 10.0" href="http://rbsgp.blogspot.com/2009/01/2008-year-end-close-update-dynamics-100.html" target="_blank">2008 Payroll year end close update Dynamics 10.0</a></div>
</li>
</ul>
<p style="text-align:left;">
<h3 style="text-align:center;">General Ledger &#8211; Common Questions</h3>
<p style="text-align:justify;"><span style="color:#963;"><strong><span style="color:#993300;">When?</span> </strong> </span>The biggest question we get on the General Ledger close is when to do it.  On one hand you don&#8217;t want to close the GL before all your adjustments are in and/or the audit is done.  On the other hand, you hate not being able to see beginning balances for the GL accounts and having to use alternate FRx reports to add in last year&#8217;s numbers.  Since you can post to the last fiscal year even if it is closed there is no harm in closing the fiscal year sooner than later.  However, make sure that you won&#8217;t need to post to years prior to the last closed year, since you won&#8217;t be able to do it.  (In other words, once you close 2008, you can still update 2008, but 2007 is done at that point.)</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong><span style="color:#993300;">I said I won&#8217;t need to, but how do I post to 2005?</span></strong></span>  If you absolutely positively have to post to more than one prior year, it is possible, but it will cost you.  The Microsoft Professional Services team has a procedure they can run on your system that will re-open prior years.  The cost will depend on the size of your data, how many companies and years you need to open and when you need to do this.  We have used this service a number of times and have never had an issue, so it definitely works.  To get more information on this, contact your GP Partner and show them <a title="GL Year End Open for GP" href="https://mbs.microsoft.com/downloads/customer/APSS/Final_OpenGL_DS.pdf?wa=wsignin1.0" target="_blank">this link</a>.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong><span style="color:#993300;">How do I actually post to the last closed year?</span></strong></span>  Here are the steps:</p>
<ol>
<li>
<div style="text-align:left;">Go to <em>Tools &gt; Setup &gt; Company &gt; Fiscal Periods</em> and make sure the period you want to post to is open (unchecked).</div>
</li>
<li>
<div style="text-align:left;">Go to <em>Tools &gt; Setup &gt; Financial &gt; General Ledger</em> and make sure Allow Posting to History is checked.</div>
</li>
<li>
<div style="text-align:left;">Enter and post your transaction.  <span style="color:#800000;"><strong><span style="color:#993300;">Read this before you look at your posting journal:</span></strong></span> the entry will look like it is posted twice.  It&#8217;s showing up on the report twice because it&#8217;s updating last year&#8217;s balances and then updating this year&#8217;s beginning balances.  This is ok.</div>
</li>
<li>
<div style="text-align:left;">Go to <em>Tools &gt; Setup &gt; Financial &gt; General Ledger</em> and uncheck Allow Posting to History.  While it is ok to leave this checked, I recommend disallowing posting to history to avoid mistakes.</div>
</li>
<li>
<div>Go to <em>Tools &gt; Setup &gt; Company &gt; Fiscal Periods</em> and close (check) the period you opened in step 1.  Again, you can leave the period open if you want.</div>
</li>
</ol>
<p style="text-align:justify;"><span style="color:#800000;"><strong><span style="color:#993300;">What if one of my Balance Sheet accounts was set up as a P&amp;L account?</span></strong></span>  If one of your accounts was set up with the wrong Posting Type and you did not catch this before performing the year close, you can use <a title="KB 864913" href="https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?scid=kb;en-us;864913" target="_blank">KB article 864913</a> to correct the problem.</p>
<p style="text-align:left;">
<h3 style="text-align:center;">Other Common Questions / My 2 Cents</h3>
<p style="text-align:left;"><strong> </strong></p>
<p style="text-align:justify;"><span style="color:#800000;"><strong><span style="color:#993300;">Payables and Receivables &#8211; to close or not to close?</span></strong>  </span>Most companies we work with do not close the Payables and Receivables modules anymore.  Since it is virtually impossible to have a clean cut off between transactions for two years, it really does not add any value to perform the year end close for these modules.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong><span style="color:#993300;">Backups &#8211; do we really need them?</span></strong></span> <strong> </strong>As far as I am concerned, one of the most important parts of the year end close is making a backup before starting.  I have only actually needed this backup twice, but we were sure glad we had it those two times.</p>
<p style="text-align:justify;"><span style="color:#800000;"><strong><span style="color:#993300;">What is the close procedure for other modules, like Bank Rec or SOP?</span></strong></span>  Most other modules do not have a &#8216;year end close&#8217; process.  The only recommendation for them is to make sure everything for the year being closed is posted prior to closing the year in the modules that do have a year end close process.</p>
<p style="text-align:justify;">
<p><span style="color:#888888;"><em><strong>Updates:</strong></em></span><br />
<span style="color:#888888;"><em>01.08.2009: added link to Doug Pitcher&#8217;s blog post under Other Resources<br />
01.07.2009: added link to Dynamicd GP Land blog under Other Resources<br />
12.24.2008: added links to Mariano Gomez&#8217;s blog posts under Other Resources<br />
11.17.2008: added links to the year end payroll updates under Other Resources<br />
08.04.2010: added link to the GL Year End Open Service from Microsoft</em></span></p>
<br />Posted in Dynamics GP Tagged: Dynamics GP, featured, Fixed Assets, General Ledger, Inventory, Payables, Payroll, Receivables, year end close <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/602/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/602/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/602/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=602&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2008/11/14/year-end-close-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/01/officechairguy.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/01/officechairguy.jpg?w=96" medium="image">
			<media:title type="html">officechairguy</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>GP Table Information</title>
		<link>http://victoriayudin.com/2008/10/03/table-information/</link>
		<comments>http://victoriayudin.com/2008/10/03/table-information/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 22:25:14 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP table information]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[Receivables]]></category>

		<guid isPermaLink="false">http://victoriayudin.wordpress.com/?p=136</guid>
		<description><![CDATA[We have been collecting a lot of information while creating reports with GP for all these years. Some of it is stored in our overworked and under-rested brains (well, most of it)&#8230;but a bit here and there we&#8217;ve actually committed to some sort of electronic format. I will be adding to it over time, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=136&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">We have been collecting a lot of information while creating reports with GP for all these years. Some of it is stored in our overworked and under-rested brains (well, most of it)&#8230;but a bit here and there we&#8217;ve actually committed to some sort of electronic format. I will be adding to it over time, but I&#8217;ve got <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_self">a few pages</a> ready for public consumption that list out some commonly needed codes in GP tables:</p>
<ul>
<li><a title="GP RM Tables" href="http://victoriayudin.wordpress.com/gp-reports/rm-tables/" target="_self">RM Tables</a></li>
<li><a title="GP PM Tables" href="http://victoriayudin.wordpress.com/gp-reports/pm-tables/" target="_self">PM Tables</a></li>
<li><a title="GP Company/System Tables" href="http://victoriayudin.com/gp-reports/companysystem-tables/" target="_self">Company/System Tables</a></li>
</ul>
<br />Posted in Dynamics GP Tagged: GP Reports code, GP table information, Payables, Receivables <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=136&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2008/10/03/table-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
	</channel>
</rss>
