<?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</title>
	<atom:link href="http://victoriayudin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://victoriayudin.com</link>
	<description>Ramblings and musings of a Dynamics GP MVP</description>
	<lastBuildDate>Wed, 19 Jun 2013 19:10:35 +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</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 sales quantities by item by site by month in Dynamics GP</title>
		<link>http://victoriayudin.com/2013/06/14/sql-view-for-sales-quantities-by-item-by-site-by-month-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2013/06/14/sql-view-for-sales-quantities-by-item-by-site-by-month-in-dynamics-gp/#comments</comments>
		<pubDate>Fri, 14 Jun 2013 10: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[SOP SQL code]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4684</guid>
		<description><![CDATA[As many variations for item quantity summaries as I think I have posted on this blog, there is always another one to be had. A request from a reader brings us a monthly version of my Sales Quantities by Item by Year. The view below shows the total item quantity sold by site by month for [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4684&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">As many variations for item quantity summaries as I think I have posted on this blog, there is always another one to be had. A request from a reader brings us a monthly version of my <a title="SQL view for sales quantities by item by year" href="http://victoriayudin.com/2012/01/23/sql-view-for-sales-quantities-by-item-by-year-2/">Sales Quantities by Item by Year</a><em></em>. The view below shows the total item quantity sold by site by month for a hard-coded year. I am making a number of assumptions (listed in the view comments in green), and there is also an overall yearly total column at the end. You can easily change the year as needed on line 64.</p>
<p style="text-align:justify;">Some additional resources:</p>
<ul>
<li><a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/" target="_blank">Sales Order Processing (SOP) SQL views</a></li>
<li><a title="Dynamics GP SOP Tables" href="http://victoriayudin.com/gp-tables/sop-tables/" target="_blank">Sales Order Processing (SOP) commonly used tables</a></li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">Other GP Reporting links</a></li>
</ul>
<pre class="brush: sql; title: ; notranslate">
create view view_Sales_Qty_by_Item_Site_Month
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
--view_Sales_Qty_by_Item_Site_Month
--Created Jun 14, 2013 by Victoria Yudin - Flexible Solutions Inc
--For updates see http://victoriayudin.com/gp-reports/
--Returns total sales quantities fulfilled (SOP invoices less
--  returns) for each item by month for hardcoded year
--Calendar months and Document Dates are used
--Only posted invoices and returns are included
--Quantity is calculated by multiplying by QTYBSUOM column in
--  case other UofM's are used on transations
--Voided transations are excluded
--Item Description is taken from Inventory Item Maintenance
--  for all inventory items
--  and from SOP line items for non-inventory items
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

select
d.ITEMNMBR Item_Number, d.Item_Description,
d.LOCNCODE Site_ID,
sum(case when month(d.DOCDATE) = 1
    then d.Qty else 0 end) as Jan_Qty,
sum(case when month(d.DOCDATE) = 2
    then d.Qty else 0 end) as Feb_Qty,
sum(case when month(d.DOCDATE) = 3
    then d.Qty else 0 end) as Mar_Qty,
sum(case when month(d.DOCDATE) = 4
    then d.Qty else 0 end) as Apr_Qty,
sum(case when month(d.DOCDATE) = 5
    then d.Qty else 0 end) as May_Qty,
sum(case when month(d.DOCDATE) = 6
    then d.Qty else 0 end) as Jun_Qty,
sum(case when month(d.DOCDATE) = 7
    then d.Qty else 0 end) as Jul_Qty,
sum(case when month(d.DOCDATE) = 8
    then d.Qty else 0 end) as Aug_Qty,
sum(case when month(d.DOCDATE) = 9
    then d.Qty else 0 end) as Sep_Qty,
sum(case when month(d.DOCDATE) = 10
    then d.Qty else 0 end) as Oct_Qty,
sum(case when month(d.DOCDATE) = 11
    then d.Qty else 0 end) as Nov_Qty,
sum(case when month(d.DOCDATE) = 12
    then d.Qty else 0 end) as Dec_Qty,
sum(d.Qty) Total_Qty

from
(select sh.DOCDATE, sd.ITEMNMBR, sd.LOCNCODE,
 coalesce(I.ITEMDESC, sd.ITEMDESC) Item_Description,
 case sd.SOPTYPE
     when 3 then sd.QTYFULFI*QTYBSUOM
     when 4 then sd.QUANTITY*QTYBSUOM*-1
     end Qty
 from SOP30200 sh
 inner join SOP30300 sd
     on sd.SOPNUMBE = sh.SOPNUMBE
     and sd.SOPTYPE = sh.SOPTYPE
 left outer join IV00101 I
     on I.ITEMNMBR = sd.ITEMNMBR
 where sh.VOIDSTTS = 0
     and sh.SOPTYPE in (3,4)
	 and year(sh.DOCDATE) = 2013 --change year as needed
     and sd.ITEMNMBR not like 'XXXXXXXXXXXXXXX%') d

group by d.ITEMNMBR, d.Item_Description, d.LOCNCODE

go
grant select on view_Sales_Qty_by_Item_Site_Month to DYNGRP
</pre>
<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/sop-sql-code/'>SOP 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/sales-order-processing/'>Sales Order Processing</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/4684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4684/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4684&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/06/14/sql-view-for-sales-quantities-by-item-by-site-by-month-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/06/boxes2.jpg?w=65" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/06/boxes2.jpg?w=65" medium="image" />

		<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 SOP sales by customer by month</title>
		<link>http://victoriayudin.com/2013/06/07/sql-view-for-sop-sales-by-customer-by-month/</link>
		<comments>http://victoriayudin.com/2013/06/07/sql-view-for-sop-sales-by-customer-by-month/#comments</comments>
		<pubDate>Fri, 07 Jun 2013 18:48:35 +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[SOP SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Sales Order Processing]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4672</guid>
		<description><![CDATA[Someone asked me for code to get monthly SOP sales and I could have sworn I already had that. But I searched and didn&#8217;t come up with anything, so here is a new view to show SOP sales (the total of SOP invoices less returns) by month. As usual, I am making a few assumptions (listed [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4672&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Someone asked me for code to get monthly SOP sales and I could have sworn I already had that. But I searched and didn&#8217;t come up with anything, so here is a new view to show SOP sales (the total of SOP invoices less returns) by month. As usual, I am making a few assumptions (listed in the view comments), and am hard coding one year at a time (2013 in this example). You can easily change the year as needed on line 59.</p>
<pre class="brush: sql; title: ; notranslate">
create view view_Sales_by_Customer_by_Month
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Sales_by_Customer_by_Month
-- Created June 7, 2013
--    by Victoria Yudin - Flexible Solutions, Inc.
-- For updates see http://victoriayudin.com/gp-reports/
-- Returns total sales (invoices - returns) for each customer
--    by month (for the specified year)
-- Amount used is the invoice total (including freight,
--    taxes, discounts, etc.)
-- Only posted invoices and returns are included
-- Shows functional currency
-- Voided transactions are excluded
-- Document Date is used (not GL Posting Date)
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

select
d.CUSTNMBR Customer_ID,
d.CUSTNAME Customer_Name,
sum(case when month(d.DOCDATE) = 1
  then d.SALES else 0 end) Jan_Sales,
sum(case when month(d.DOCDATE) = 2
  then d.SALES else 0 end) Feb_Sales,
sum(case when month(d.DOCDATE) = 3
  then d.SALES else 0 end) Mar_Sales,
sum(case when month(d.DOCDATE) = 4
  then d.SALES else 0 end) Apr_Sales,
sum(case when month(d.DOCDATE) = 5
  then d.SALES else 0 end) May_Sales,
sum(case when month(d.DOCDATE) = 6
  then d.SALES else 0 end) Jun_Sales,
sum(case when month(d.DOCDATE) = 7
  then d.SALES else 0 end) Jul_Sales,
sum(case when month(d.DOCDATE) = 8
  then d.SALES else 0 end) Aug_Sales,
sum(case when month(d.DOCDATE) = 9
  then d.SALES else 0 end) Sep_Sales,
sum(case when month(d.DOCDATE) = 10
  then d.SALES else 0 end) Oct_Sales,
sum(case when month(d.DOCDATE) = 11
  then d.SALES else 0 end) Nov_Sales,
sum(case when month(d.DOCDATE) = 12
  then d.SALES else 0 end) Dec_Sales,
sum(d.SALES) Yearly_Total

from
(select s.DOCDATE, s.CUSTNMBR, c.CUSTNAME,
 case s.SOPTYPE
   when 3 then s.DOCAMNT
   when 4 then s.DOCAMNT*-1
   end SALES
 from SOP30200 s
 left outer join RM00101 c
   on s.CUSTNMBR = c.CUSTNMBR
 where s.VOIDSTTS = 0
   and s.SOPTYPE in (3,4)
   and year(s.DOCDATE) = 2013 --change year as needed
 ) d

group by d.CUSTNMBR, d.CUSTNAME

-- add permissions for DYNGRP
go
grant select on view_Sales_by_Customer_by_Month to DYNGRP
</pre>
<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/sop-sql-code/'>SOP 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/sales-order-processing/'>Sales Order Processing</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4672/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4672&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/06/07/sql-view-for-sop-sales-by-customer-by-month/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/06/gold-coin.jpg?w=62" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/06/gold-coin.jpg?w=62" medium="image" />

		<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>Assign sequential numbers in SQL Server</title>
		<link>http://victoriayudin.com/2013/05/07/assign-sequential-numbers-in-sql-server/</link>
		<comments>http://victoriayudin.com/2013/05/07/assign-sequential-numbers-in-sql-server/#comments</comments>
		<pubDate>Tue, 07 May 2013 13:54:54 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[SOP SQL code]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4645</guid>
		<description><![CDATA[Here is a cool little SQL Server tip from the April GP Reports Viewer newsletter. Say you have a list of rows and you want to assign sequential numbers to them, so that you always know which one is first, second, etc. Or so that you can display line numbers. This is often a need [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4645&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Here is a cool little SQL Server tip from the April GP Reports Viewer newsletter. Say you have a list of rows and you want to assign sequential numbers to them, so that you always know which one is first, second, etc. Or so that you can display line numbers. This is often a need for Dynamics GP Sales Order Processing (SOP) transactions because they use line item sequence numbers that are very spread out to allow for inserting rows in-between them. (<a title="Mariano Gomez - Microsoft Dynamics GP Scrolling Windows and Line Sequence Numbers" href="http://dynamicsgpblogster.blogspot.com/2008/07/scrolling-windows-and-line-sequence.html" target="_blank">More detail on this from Dynamics GP MVP Mariano Gomez</a>.)</p>
<p style="text-align:justify;">Here is an example of an SOP transaction in GP:<a href="http://victoriayudin.files.wordpress.com/2013/05/linenumbers01.png"><img class="aligncenter size-full wp-image-4646" alt="SOP Transaction example" src="http://victoriayudin.files.wordpress.com/2013/05/linenumbers01.png?w=450&#038;h=306" width="450" height="306" /></a></p>
<p style="text-align:justify;">Using the following SQL code you can see this data in SQL:</p>
<pre class="brush: sql; title: ; notranslate">
select SOPTYPE, SOPNUMBE, LNITMSEQ, ITEMNMBR
from SOP10200 where SOPNUMBE = 'ORDST2227'
</pre>
<p>The results look like this:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2013/05/linenumbers021.png"><img class="aligncenter size-full wp-image-4648" alt="SQL Results - original" src="http://victoriayudin.files.wordpress.com/2013/05/linenumbers021.png?w=450"   /></a></p>
<p style="text-align:justify;">The LNITMSEQ column is what determines the order of the lines. If you wanted to know which line is 1st, 2nd, 3rd, that would be a little difficult. The code below will add a sequential line number to this data using the line item sequence to determine the order of the lines:</p>
<pre class="brush: sql; title: ; notranslate">
select
row_number() over (partition by SOPNUMBE, SOPTYPE
 order by LNITMSEQ) LineNumber,
SOPTYPE, SOPNUMBE, LNITMSEQ, ITEMNMBR
from SOP10200
where SOPNUMBE = 'ORDST2227'
</pre>
<p style="text-align:justify;">Now your results will include a line number column:<br />
<a href="http://victoriayudin.files.wordpress.com/2013/05/sql-final-results.png"><img class="aligncenter size-full wp-image-4653" alt="SQL Final Results" src="http://victoriayudin.files.wordpress.com/2013/05/sql-final-results.png?w=450"   /></a></p>
<p style="text-align:justify;">For more tips like this <a title="sign up for the GP Reports Viewer newsletters" href="http://visitor.r20.constantcontact.com/d.jsp?llr=yzzurvcab&amp;p=oi&amp;m=1102382262072" target="_blank">sign up for the GP Reports Viewer newsletters</a>. You can see <a title="GP Reports Viewer newletters" href="http://www.GPReportsViewer.com/Newsletters-Tips-And-Tricks" target="_blank">past newsletters</a> on the <a title="GP Reports Viewer" href="http://www.GPReportsViewer.com" target="_blank">GP Reports Viewer website</a>.</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/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sop-sql-code/'>SOP SQL code</a>, <a href='http://victoriayudin.com/category/sql-server/'>SQL Server</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-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</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/4645/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4645/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4645&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/05/07/assign-sequential-numbers-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/05/winner.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/05/winner.jpg?w=96" medium="image">
			<media:title type="html">winner</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/05/linenumbers01.png" medium="image">
			<media:title type="html">SOP Transaction example</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/05/linenumbers021.png" medium="image">
			<media:title type="html">SQL Results - original</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/05/sql-final-results.png" medium="image">
			<media:title type="html">SQL Final Results</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for current Receivables aging detail in Dynamics GP</title>
		<link>http://victoriayudin.com/2013/05/01/sql-view-for-current-receivables-aging-detail-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2013/05/01/sql-view-for-current-receivables-aging-detail-in-dynamics-gp/#comments</comments>
		<pubDate>Wed, 01 May 2013 21:47:21 +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=4633</guid>
		<description><![CDATA[Another reader request brings us this new script. Below is a view for current Receivables aging in detail. This code is only looking at functional currency and will return one row per open (unpaid) receivables transaction. I am hard-coding the aging using the following buckets and aging by due date: Current 31 to 60 Days 61 to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4633&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Another reader request brings us this new script. Below is a view for current Receivables aging in detail. This code is only looking at functional currency and will return one row per open (unpaid) receivables transaction. I am hard-coding the aging using the following buckets and aging by due date:</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 and change the labels and number of days.</p>
<p style="text-align:justify;">Additional resources:</p>
<ul>
<li><a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/" target="_blank"><span style="line-height:13px;">Receivables SQL views</span></a></li>
<li><a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/" target="_blank">Receivables</a> module commonly used tables</li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">Other Dynamics GP reporting links</a></li>
</ul>
<hr />
<pre class="brush: sql; title: ; notranslate">
create view view_Current_Receivables_Aging_Detail
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Current_Receivables_Aging_Detail
-- Created May 1, 2012 by Victoria Yudin, Flexible Solutions Inc
-- For updates see http://victoriayudin.com/gp-reports/
-- Shows current AR aging in detail w/ hard-coded aging buckets
-- Tables used:
--     CM - RM00101 - Customer Master
--     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,
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,
case
  when RM.RMDTYPAL &lt; 7 then RM.ORTRXAMT
  else RM.ORTRXAMT * -1
  end Document_Amount,
case
  when RM.RMDTYPAL &lt; 7 then RM.CURTRXAM
  else RM.CURTRXAM * -1
  end Unapplied_Amount,
case
  when DATEDIFF(d, RM.DUEDATE, getdate()) &lt; 31
     and RM.RMDTYPAL &lt; 7 then RM.CURTRXAM
  when DATEDIFF(d, RM.DOCDATE, getdate()) &lt; 31
     and RM.RMDTYPAL &gt; 6 then RM.CURTRXAM *-1
  else 0
  end [Current],
case
  when DATEDIFF(d, RM.DUEDATE, getdate()) between 31 and 60
     and RM.RMDTYPAL &lt; 7 then RM.CURTRXAM
  when DATEDIFF(d, RM.DOCDATE, getdate()) between 31 and 60
     and RM.RMDTYPAL &gt; 6 then RM.CURTRXAM * -1
  else 0
  end [31_to_60_Days],
case
  when DATEDIFF(d, RM.DUEDATE, getdate()) between 61 and 90
     and RM.RMDTYPAL &lt; 7 then RM.CURTRXAM
  when DATEDIFF(d, RM.DOCDATE, getdate()) between 61 and 90
     and RM.RMDTYPAL &gt; 6 then RM.CURTRXAM * -1
  else 0
  end [61_to_90_Days],
case
  when DATEDIFF(d, RM.DUEDATE, getdate()) &gt; 90
     and RM.RMDTYPAL &lt; 7 then RM.CURTRXAM
  when DATEDIFF(d, RM.DOCDATE, getdate()) &gt; 90
     and RM.RMDTYPAL &gt; 6 then RM.CURTRXAM *-1
  else 0
  end [91_and_Over]

from RM20101 RM

inner join RM00101 CM
     on RM.CUSTNMBR = CM.CUSTNMBR

where RM.VOIDSTTS = 0 and RM.CURTRXAM &lt;&gt; 0

-- add permissions for DYNGRP
GO
grant select on view_Current_Receivables_Aging_Detail to DYNGRP
</pre>
<hr />
<p style="text-align:left;"><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/4633/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4633/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4633&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/05/01/sql-view-for-current-receivables-aging-detail-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/02/briefcaseinvoice.jpg?w=85" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/02/briefcaseinvoice.jpg?w=85" medium="image">
			<media:title type="html">briefcase invoice</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 current Payables aging detail in Dynamics GP</title>
		<link>http://victoriayudin.com/2013/04/24/sql-view-for-current-payables-aging-detail-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2013/04/24/sql-view-for-current-payables-aging-detail-in-dynamics-gp/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 12:33:06 +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[Payables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4618</guid>
		<description><![CDATA[I have received a few requests for a detailed version my Current Payables Aging Summary view. Here it is. This code is only looking at functional currency and will return one row per open (unpaid) payables transaction. I am hard-coding the aging using the default aging setup installed with GP, which is aging by due date and using the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4618&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">I have received a few requests for a detailed version my <a title="SQL view for current Payables aging in Dynamics GP" href="http://victoriayudin.com/2011/09/30/sql-view-for-current-payables-aging-in-dynamics-gp/">Current Payables Aging Summary</a> view. Here it is. This code is only looking at functional currency and will return one row per open (unpaid) payables transaction. 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 and change the labels and number of days.</p>
<p style="text-align:justify;">Additional resources:</p>
<ul>
<li><a title="Payables SQL Views" href="http://victoriayudin.com/gp-reports/payables-sql-views/" target="_blank"><span style="line-height:13px;">Payables SQL views</span></a></li>
<li><a title="PM Tables" href="http://victoriayudin.com/gp-tables/pm-tables/" target="_blank">Payables module commonly used tables</a></li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">Other Dynamics GP reporting links</a></li>
</ul>
<hr />
<pre class="brush: sql; title: ; notranslate">
create view view_Current_Payables_Aging_Detail
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Current_Payables_Aging_Detail
-- Apr 24, 2013 - Victoria Yudin, Flexible Solutions, Inc.
-- Shows current AP aging
-- Functional currency only
-- Aging by due date
-- For updates please see:
--	 http://victoriayudin.com/gp-reports/
-- For other payables SQL scripts:
--	 http://victoriayudin.com/gp-reports/payables-sql-views/
-- Updated Apr 25, 2013 to fix aging buckets for credit docs
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

select
VM.VendORID Vendor_ID,
VM.VendNAME Vendor_Name,
VM.VNDCLSID Vendor_Class,
VM.PYMTRMID Vendor_Terms,
case P.DOCTYPE
  when 1 then 'Invoice'
  when 2 then 'Finance Charge'
  when 3 then 'Misc Charge'
  when 4 then 'Return'
  when 5 then 'Credit Memo'
  when 6 then 'Payment'
  end Document_Type,
P.DOCNUMBR Document_Number,
P.DOCDATE Document_Date,
P.PSTGDATE GL_Posting_Date,
P.DUEDATE Due_Date,

P.TRXDSCRN [Description],

case
  when P.DOCTYPE &lt; 4 then P.DOCAMNT
  else P.DOCAMNT * -1
  end Document_Amount,

case
  when P.DOCTYPE &lt; 4 then P.CURTRXAM
  else P.CURTRXAM * -1
  end Unapplied_Amount,

case
  when datediff(d, P.DUEDATE, getdate()) &lt; 31
       and P.DOCTYPE &lt; 4 then P.CURTRXAM
  when datediff(d, P.DOCDATE, getdate()) &lt; 31
       and P.DOCTYPE &gt; 3 then P.CURTRXAM * -1
  else 0
  end [Current],

case
  when datediff(d, P.DUEDATE, getdate()) between 31 and 60
       and P.DOCTYPE &lt; 4 then P.CURTRXAM
  when datediff(d, P.DOCDATE, getdate()) between 31 and 60
       and P.DOCTYPE &gt; 3 then P.CURTRXAM * -1
  else 0
  end [31_to_60_Days],

case
  when datediff(d, P.DUEDATE, getdate()) between 61 and 90
       and P.DOCTYPE &lt; 4 then P.CURTRXAM
  when datediff(d, P.DOCDATE, getdate()) between 61 and 90
       and P.DOCTYPE &gt; 3 then P.CURTRXAM * -1
  else 0
  end [61_to_90_Days],

case
  when datediff(d, P.DUEDATE, getdate()) &gt; 90
       and P.DOCTYPE &lt; 4 then P.CURTRXAM
  when datediff(d, P.DOCDATE, getdate()) &gt; 90
       and P.DOCTYPE &gt; 3 then P.CURTRXAM * -1
  else 0
  end [91_and_Over]

from PM00200 VM  --vendor master
inner join PM20000 P  --open payables
   on P.VENDORID = VM.VENDORID

where P.CURTRXAM &lt;&gt; 0 and P.VOIDED = 0

-- add permissions for DYNGRP
GO
grant select on view_Current_Payables_Aging_Detail to DYNGRP
</pre>
<p style="text-align:left;"><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/payables-sql-code/'>Payables 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/payables/'>Payables</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/4618/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4618/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4618&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/04/24/sql-view-for-current-payables-aging-detail-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/04/approved-stamp.jpg?w=86" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/04/approved-stamp.jpg?w=86" medium="image">
			<media:title type="html">approved stamp</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>Changing part of a string in SQL Server using REPLACE</title>
		<link>http://victoriayudin.com/2013/03/11/changing-part-of-a-string-in-sql-server-using-replace/</link>
		<comments>http://victoriayudin.com/2013/03/11/changing-part-of-a-string-in-sql-server-using-replace/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 14:03:28 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[SQL coding]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4561</guid>
		<description><![CDATA[This latest SQL Server tip comes from the Feb/March 2013 GP Reports Viewer newsletter. Have you ever needed to change part of a string in SQL Server? I have seen this come up in a variety of situations, like needing to change account names in the General Ledger or needing to show something differently when [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4561&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">This latest SQL Server tip comes from the Feb/March 2013 GP Reports Viewer newsletter. Have you ever needed to change part of a string in SQL Server? I have seen this come up in a variety of situations, like needing to change account names in the General Ledger or needing to show something differently when reporting. The basic code is as follows:</p>
<p style="text-align:left;"><strong><span style="color:#333399;">REPLACE(YourString, &#8216;text to replace&#8217;, &#8216;replace with text&#8217;)</span></strong></p>
<p>Below is a practical example of how useful this can be.</p>
<p style="text-align:justify;">Mass Modify in Dynamics GP allows you to quickly create new General Ledger accounts by copying from existing accounts. However, the names of the accounts either get created from the segment setup, which is not always optimal or correct, or the existing account names get copied. Most of the time, I use the latter option and have the account names copy from the exiting accounts. Here is an example of a list of account numbers for the Sales department (first segment 300) in the Dynamics GP sample company:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2013/03/300-accounts1.png"><img class="size-full wp-image-4567 aligncenter" alt="300 accounts" src="http://victoriayudin.files.wordpress.com/2013/03/300-accounts1.png?w=450"   /></a></p>
<p style="text-align:justify;">If you copy all of these accounts to create a new accounts for the Marketing department (first segment 350) choosing &#8216;Use Account Description From Existing Accounts&#8217; the account numbers will be new, but the account names will still be the same:</p>
<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2013/03/350-accounts.png"><img class="aligncenter size-full wp-image-4565" alt="350 accounts" src="http://victoriayudin.files.wordpress.com/2013/03/350-accounts.png?w=450"   /></a></p>
<p style="text-align:justify;">Using REPLACE in SQL Server, you can quickly update the account names to reflect the correct department name. If you want to preview what the new account names will be, you can execute this script against your GP company database:</p>
<pre class="brush: sql; title: ; notranslate">
select b.ACTNUMST Account, a.ACTDESCR Old_Name,
REPLACE(a.ACTDESCR, 'Sales', 'Marketing') New_Name
from GL00100 a
inner join GL00105 b
on a.ACTINDX = b.ACTINDX
where a.ACTNUMBR_1 = '350'
</pre>
<p>Below are the results using my example:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2013/03/preview-changes.png"><img class="aligncenter size-full wp-image-4578" alt="preview changes" src="http://victoriayudin.files.wordpress.com/2013/03/preview-changes.png?w=450"   /></a></p>
<p>If you&#8217;re ready to make the change, execute the following script against the company database:</p>
<pre class="brush: sql; title: ; notranslate">
update GL00100
set ACTDESCR = REPLACE(ACTDESCR, 'Sales', 'Marketing')
where ACTNUMBR_1 = '350'
</pre>
<p><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:13px;line-height:19px;">Your new account numbers now have updated names in GP:</span></p>
<p><a href="http://victoriayudin.files.wordpress.com/2013/03/new-350-names.png"><img class="aligncenter size-full wp-image-4572" alt="new 350 names" src="http://victoriayudin.files.wordpress.com/2013/03/new-350-names.png?w=450"   /></a></p>
<p>To see more tips and tricks for GP Reports Viewer, SQL , SSRS and Crystal Reports, take a look at the <a title="GP Reports Viewer newsletters" href="http://www.GPReportsViewer.com/Newsletters-Tips-And-Tricks" target="_blank">GP Reports Viewer newsletters</a>. There are also more <a title="SQL Server Coding Tips" href="http://victoriayudin.com/gp-reports/sql-server-coding-tips/" target="_blank">SQL Server coding tips on this blog</a>.</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/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sql-coding/'>SQL coding</a>, <a href='http://victoriayudin.com/category/sql-server/'>SQL Server</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</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/4561/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4561/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4561&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/03/11/changing-part-of-a-string-in-sql-server-using-replace/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/03/cook.jpg?w=65" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/03/cook.jpg?w=65" medium="image">
			<media:title type="html">cook</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/03/300-accounts1.png" medium="image">
			<media:title type="html">300 accounts</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/03/350-accounts.png" medium="image">
			<media:title type="html">350 accounts</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/03/preview-changes.png" medium="image">
			<media:title type="html">preview changes</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2013/03/new-350-names.png" medium="image">
			<media:title type="html">new 350 names</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for sales quantities by item by site by year</title>
		<link>http://victoriayudin.com/2013/02/28/sql-view-for-sales-quantities-by-item-by-site-by-year/</link>
		<comments>http://victoriayudin.com/2013/02/28/sql-view-for-sales-quantities-by-item-by-site-by-year/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 21:00: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[SOP SQL code]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4542</guid>
		<description><![CDATA[Below is another variation on my view for sales by item by year and view for sales quantities by item by year. This one shows the total item quantity sold by site by year. The view below makes a number of assumptions (listed in the view comments in green), and I am hard coding years from 2006 through 2013 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4542&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Below is another variation on my <a title="SQL view for sales by item by year" href="http://victoriayudin.com/2011/08/11/sql-view-for-sales-by-item-by-year/">view for sales by item by year</a> and <a title="SQL view for sales quantities by item by year" href="http://victoriayudin.com/2012/01/23/sql-view-for-sales-quantities-by-item-by-year-2/" target="_blank">view for sales quantities by item by year</a>. This one shows the total item quantity sold by site by year. The view below makes a number of assumptions (listed in the view comments in green), and I am hard coding years from 2006 through 2013 as well as adding an overall total column at the end. You can easily change the years or add new ones by following the example in my code.</p>
<p style="text-align:justify;">Some additional resources:</p>
<ul>
<li><a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/" target="_blank">Sales Order Processing (SOP) SQL views</a></li>
<li><a title="Dynamics GP SOP Tables" href="http://victoriayudin.com/gp-tables/sop-tables/" target="_blank">Sales Order Processing (SOP) commonly used tables</a></li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">Other GP Reporting links</a></li>
</ul>
<pre class="brush: sql; title: ; notranslate">
CREATE VIEW view_Sales_Qty_by_Item_Site_Year
AS

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Sales_Qty_by_Item_Site_Year
-- Created Feb 28, 2013 by Victoria Yudin, Flexible Solutions Inc
-- For updates see http://victoriayudin.com/gp-reports/
-- Returns total sales quantities fulfilled (invoices less 
--    returns) for each item by site by year
-- Only posted invoices and returns are included
-- Quantity is calculated by multiplying by QTYBSUOM column in 
--    case other UofM's are used on transactions
-- Voided transactions are excluded
-- Item Description is taken from Inventory Item Maintenance  
--    for all inventory items and from SOP line items  
--    for non-inventory items
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 

select
D.ITEMNMBR Item_Number, 
D.Item_Description, 
D.LOCNCODE Site_ID,
sum(case when year(D.DOCDATE) = 2006 
    then D.Qty else 0 end) [2006_Qty],
sum(case when year(D.DOCDATE) = 2007 
    then D.Qty else 0 end) [2007_Qty],
sum(case when year(D.DOCDATE) = 2008 
    then D.Qty else 0 end) [2008_Qty],
sum(case when year(D.DOCDATE) = 2009 
    then D.Qty else 0 end) [2009_Qty],
sum(case when year(D.DOCDATE) = 2010 
    then D.Qty else 0 end) [2010_Qty],
sum(case when year(D.DOCDATE) = 2011 
    then D.Qty else 0 end) [2011_Qty],
sum(case when year(D.DOCDATE) = 2012 
    then D.Qty else 0 end) [2012_Qty],
sum(case when year(D.DOCDATE) = 2013 
    then D.Qty else 0 end) [2013_Qty],
sum(D.Qty) Total_Qty

from 
(select SH.DOCDATE, SD.ITEMNMBR, SD.LOCNCODE,
 coalesce(I.ITEMDESC, SD.ITEMDESC) Item_Description,
 case SD.SOPTYPE
 when 3 then SD.QTYFULFI*QTYBSUOM
 when 4 then SD.QUANTITY*QTYBSUOM*-1
 end Qty
 from SOP30200 SH
 inner join SOP30300 SD
   on SD.SOPNUMBE = SH.SOPNUMBE
   and SD.SOPTYPE = SH.SOPTYPE
 left outer join IV00101 I
   on I.ITEMNMBR = SD.ITEMNMBR
 where SH.VOIDSTTS = 0
   and SH.SOPTYPE IN (3,4)
   and SD.ITEMNMBR not like 'XXXXXXXXXXXXXXX%') D

group by D.ITEMNMBR, D.Item_Description, D.LOCNCODE

go
grant select on view_Sales_Qty_by_Item_Site_Year to DYNGRP
</pre>
<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/sop-sql-code/'>SOP SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</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/4542/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4542/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4542&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/02/28/sql-view-for-sales-quantities-by-item-by-site-by-year/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/02/forklift.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/02/forklift.jpg?w=96" medium="image">
			<media:title type="html">forklift</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 Fixed Allocation Accounts in Dynamics GP</title>
		<link>http://victoriayudin.com/2013/01/23/sql-view-for-fixed-allocation-accounts-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2013/01/23/sql-view-for-fixed-allocation-accounts-in-dynamics-gp/#comments</comments>
		<pubDate>Wed, 23 Jan 2013 14:31:33 +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[General Ledger]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4518</guid>
		<description><![CDATA[Below is a view that will return a list of the distribution accounts and percentages for all active fixed  allocation accounts in your Dynamics GP. Nothing fancy, but sometimes it is easier to have a report of these rather than have to look at them on the screen, especially when you have a lot of [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4518&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Below is a view that will return a list of the distribution accounts and percentages for all active fixed  allocation accounts in your Dynamics GP. Nothing fancy, but sometimes it is easier to have a report of these rather than have to look at them on the screen, especially when you have a lot of them.</p>
<p>Related code and table information:</p>
<ul>
<li><a title="GL Tables" href="http://victoriayudin.com/gp-tables/gl-tables/">General Ledger tables</a></li>
<li><a title="SQL view for Variable Allocation Accounts in Dynamics GP" href="http://victoriayudin.com/2012/08/23/sql-view-for-variable-allocation-accounts-in-dynamics-gp/" target="_blank">Variable Allocation Accounts</a></li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports</a> (there is a section for General Ledger reports under Dynamics GP SQL Scripts)</li>
</ul>
<pre class="brush: sql; title: ; notranslate">
create view view_Fixed_Allocation_Accounts
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Fixed_Allocation_Accounts
-- Created on Jan. 23, 2013 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please see http://victoriayudin.com/gp-reports/
-- Shows only active fixed allocation accounts
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

select
an.ACTNUMST Fixed_Allocation_Account,
a.ACTDESCR Fixed_Allocation_Account_Name,
da.ACTNUMST Distribution_Account,
dn.ACTDESCR Distribution_Account_Name,
f.PRCNTAGE Distribution_Percentage

from GL00100 a --account master

inner join GL00105 an --account number
on a.ACTINDX = an.ACTINDX

inner join GL00103 f --fixed allocation account setup
on a.ACTINDX = f.ACTINDX

inner join GL00105 da --distribution account
on f.DSTINDX = da.ACTINDX

inner join GL00100 dn --distribution account name
on f.DSTINDX = dn.ACTINDX

where a.ACCTTYPE = 3 and a.ACTIVE = 1
and a.ACTINDX not in (select ACTINDX from GL00104)

go
grant select on view_Fixed_Allocation_Accounts to DYNGRP
</pre>
<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/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> 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/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4518/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4518/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4518&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/01/23/sql-view-for-fixed-allocation-accounts-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2013/01/percent.jpg?w=128" />
		<media:content url="http://victoriayudin.files.wordpress.com/2013/01/percent.jpg?w=128" medium="image">
			<media:title type="html">percent symbol</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>Happy New Year &#8211; 2013</title>
		<link>http://victoriayudin.com/2013/01/01/happy-new-year-2013/</link>
		<comments>http://victoriayudin.com/2013/01/01/happy-new-year-2013/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 15:29:31 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[awards]]></category>
		<category><![CDATA[Microsoft MVP]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4502</guid>
		<description><![CDATA[It&#8217;s now become a little tradition of mine to sit in front of the computer when I get up on New Year&#8217;s Day, sipping coffee and checking my email&#8230;hoping that I once again can write a little blog post like this one. I just got that email I was waiting for, letting me know that [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4502&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">It&#8217;s now become a little tradition of mine to sit in front of the computer when I get up on New Year&#8217;s Day, sipping coffee and checking my email&#8230;hoping that I once again can write a little blog post like this one.</p>
<p style="text-align:justify;">I just got that email I was waiting for, letting me know that I have received the 2013 Microsoft® MVP Award for Dynamics GP! This makes my 9th year as a Dynamics GP MVP and I am honored. Thank you to everyone reading this - I could not have done it without you, so this award is for you, as well.</p>
<p style="text-align:justify;">For those curious, the <a title="About the Microsoft MVP Program" href="http://mvp.microsoft.com/en-US/about-mvp/Pages/default.aspx" target="_blank">Microsoft MVP program</a> has been in place since the early 1990′s and currently has about 4,000 MVPs worldwide. You can <a title="search for Microsoft MVPs" href="http://mvp.microsoft.com/en-US/findanmvp/Pages/advanced-search.aspx" target="_blank">search for MVPs</a> or take a look at the list of <a title="current Dynamics GP MVPs" href="http://mvp.microsoft.com/en-US/findanmvp/Pages/profile-results.aspx?ty=a&amp;tx=Dynamics%20GP&amp;so=n&amp;pa=1" target="_blank">current Dynamics GP MVPs</a>.</p>
<p style="text-align:justify;">Happy, healthy and prosperous 2013 to all of you!</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/microsoft/'>Microsoft</a> Tagged: <a href='http://victoriayudin.com/tag/awards/'>awards</a>, <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/microsoft-mvp/'>Microsoft MVP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4502&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2013/01/01/happy-new-year-2013/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/mvp-logo1.jpg?w=128" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/mvp-logo1.jpg?w=128" medium="image">
			<media:title type="html">MVP Logo</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>How to add a sparkline to a report in SSRS</title>
		<link>http://victoriayudin.com/2012/11/27/how-to-add-a-sparkline-to-a-report-in-ssrs/</link>
		<comments>http://victoriayudin.com/2012/11/27/how-to-add-a-sparkline-to-a-report-in-ssrs/#comments</comments>
		<pubDate>Tue, 27 Nov 2012 14:24:22 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4430</guid>
		<description><![CDATA[Introduction: This blog post is written by my friend and colleague Mickie Stamm. Mickie is a fabulous Dexterity, SQL and application developer and is one of the great minds behind GP Reports Viewer. By Mickie Stamm: In the last GP Reports Viewer newsletter I wrote about using rectangles as containers in SQL Server Reporting Services [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4430&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;"><em><strong>Introduction:</strong> </em>This blog post is written by my friend and colleague Mickie Stamm. Mickie is a fabulous Dexterity, SQL and application developer and is one of the great minds behind <a title="GP Reports Viewer" href="http://www.GPReportsViewer.com/gpreports.html" target="_blank">GP Reports Viewer</a>.</p>
<hr />
<p style="text-align:justify;"><em><strong>By Mickie Stamm:</strong></em></p>
<p style="text-align:justify;">In the <a title="GP Reports Viewer September 2012 Newsletter" href="http://archive.constantcontact.com/fs072/1102382262072/archive/1111089720250.html" target="_blank">last GP Reports Viewer newsletter</a> I wrote about using rectangles as containers in SQL Server Reporting Services reports. In this post I would like to demonstrate another example of using rectangles in conjunction with something that I think adds a lot of punch to reports – sparklines. Sparklines were introduced with SSRS 2008 R2, however you can simulate them in 2008 and 2005 by using a regular line chart and removing a lot of the surrounding elements like the chart title, legend, category and value axes, etc.</p>
<p style="text-align:justify;">Sparklines are great little charts that help you to see the trend of your data over a period of time. They are useful in a table, matrix or list because you can view them together and compare them to more easily see which rows in your data are performing better than the others.</p>
<p style="text-align:justify;">The steps below will walk you through building an SSRS report with a sparkline in the 2008 R2 Business Intelligence Development Studio (BIDS).</p>
<p style="text-align:justify;">Our report is going to use the following query to get data from a Dynamics GP company database:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT DATENAME(m, SH.DOCDATE) Month_Name, MONTH(SH.DOCDATE) as Month_Number,
       SD.ITEMNMBR Item_Number, COALESCE(I.ITEMDESC, SD.ITEMDESC) Item_Description,
       SUM(CASE SD.SOPTYPE
          WHEN 3 THEN SD.XTNDPRCE
          WHEN 4 THEN SD.XTNDPRCE*-1
          END) Sales
FROM SOP30200 SH
INNER JOIN
     SOP30300 SD
     ON SD.SOPNUMBE = SH.SOPNUMBE
     AND SD.SOPTYPE = SH.SOPTYPE
LEFT OUTER JOIN
     IV00101 I
     ON I.ITEMNMBR = SD.ITEMNMBR
WHERE SH.VOIDSTTS = 0
     AND SH.SOPTYPE IN (3,4)
     AND SD.XTNDPRCE &lt;&gt; 0
     AND SD.ITEMNMBR not like 'XXXXXXXXXXXXXXX%'
     AND YEAR(SH.DOCDATE) = @year
GROUP BY DATENAME(m, SH.DOCDATE), MONTH(SH.DOCDATE), SD.ITEMNMBR,
         COALESCE(I.ITEMDESC, SD.ITEMDESC)
</pre>
<h4 style="text-align:center;"></h4>
<h4 style="text-align:center;">To create the report:</h4>
<ol>
<li style="text-align:justify;">Start by right-clicking on your report project and choose <b>Add New Report</b> to start the Report Wizard: <a href="http://victoriayudin.files.wordpress.com/2012/11/scr1.png"><img class="aligncenter size-full wp-image-4438" title="scr1" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr1.png?w=450"   /></a></li>
<li style="text-align:justify;">Select an existing shared data source or enter in new datasource information and click <b>Next</b>.</li>
<li style="text-align:justify;">Enter in the query string above on the following screen and click <b>Next</b>.</li>
<li style="text-align:justify;">For the report type on the next screen choose the radio button for <b>Matrix</b>.</li>
<li style="text-align:justify;">Design the Matrix as follows: <a href="http://victoriayudin.files.wordpress.com/2012/11/scr2.png"><img class="aligncenter size-full wp-image-4439" title="scr2" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr2.png?w=450"   /></a></li>
<li style="text-align:justify;">Choose a style for the matrix on the following screen (I chose the <b>Corporate</b> theme) and click <b>Finish</b>.</li>
<li style="text-align:justify;">Give your report a Name (I chose <i>Sales by Item</i>) and click <b>Finish</b>.</li>
<li style="text-align:justify;">Run the report and your results should look like this: <a href="http://victoriayudin.files.wordpress.com/2012/11/scr3.png"><img class="aligncenter size-full wp-image-4440" title="scr3" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr3.png?w=450"   /></a></li>
<li style="text-align:justify;">Make the columns for Item Number and Item Description wider.</li>
<li style="text-align:justify;">Click on the textbox for Sum(Sales) and then right-click and choose <b>Add Total</b> &gt; <b>Column</b>. <a href="http://victoriayudin.files.wordpress.com/2012/11/scr4.png"><img class="aligncenter size-full wp-image-4441" title="scr4" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr4.png?w=450"   /></a></li>
<li style="text-align:justify;">Click on the Month_Name column header to select the column and then right-click and choose <b>Insert Column</b> &gt; <b>Outside Group – Right</b>. <a href="http://victoriayudin.files.wordpress.com/2012/11/scr5.png"><img class="aligncenter size-full wp-image-4442" title="scr5" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr5.png?w=450"   /></a></li>
<li style="text-align:justify;">Click on the Month_Name column header to select the column and then right-click and choose <b>Delete Columns</b>.  Choose <b>Yes</b> when prompted if you want to delete columns and associated groups.</li>
<li style="text-align:justify;">Click on the textbox in the header row of the new column you added in Step 11 and then right-click and choose <b>Expression…</b>and enter the following expression:  
<pre class="brush: plain; light: true; title: ; notranslate"> =Parameters!year.Value &amp; &quot; Sales&quot; </pre>
</li>
<li style="text-align:justify;">Click on the textbox in the details row of the new column you added in Step 11 and then right-click and choose <b>Insert</b> &gt; <b>Rectangle</b>. <a href="http://victoriayudin.files.wordpress.com/2012/11/scr6.png"><img class="aligncenter size-full wp-image-4443" title="scr6" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr6.png?w=450"   /></a></li>
<li style="text-align:justify;">Next, right-click on the rectangle you added in the last step and choose <b>Insert</b> &gt; <b>Sparkline</b>.</li>
<li style="text-align:justify;">Choose a chart type (I chose the default column chart type) and click <b>OK</b>.</li>
<li style="text-align:justify;">Set your chart <b>Values</b> to be <i>Sales</i> and <b>Category Groups</b> to be <i>Month_Number</i>. <a href="http://victoriayudin.files.wordpress.com/2012/11/scr7.png"><img class="aligncenter size-full wp-image-4444" title="scr7" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr7.png?w=450"   /></a></li>
<li style="text-align:justify;">Make the chart wider and shorter and adjust the row height to be shorter as well so that it looks something like this: <a href="http://victoriayudin.files.wordpress.com/2012/11/scr8.png"><img class="aligncenter size-full wp-image-4445" title="scr8" alt="" src="http://victoriayudin.files.wordpress.com/2012/11/scr8.png?w=450"   /></a></li>
<li style="text-align:justify;">Now, when you run the report you will notice that the sparkline chart doesn’t look quite right if the items don’t have sales in certain months. To resolve this issue, go back to design mode, right-click on your sparkline and choose <b>Horizontal Axis Properties…</b> and mark the checkbox for <b>Align axes in:</b> and select the name of your matrix (in my case it is the default name <b>matrix1</b>) from the dropdownlist and click <b>OK</b>.</li>
<li style="text-align:justify;">This will make the bars line up in the right places horizontally, however the next issue we run into is that the vertical maximum is the same height in each row no matter what the sales amount is. To resolve this issue, go back to design mode, right-click on your sparkline and this time choose <b>Vertical Axis Properties…</b> and mark the checkbox for <b>Align axes in:</b> and select the name of your matrix (in my case it is the default name <b>matrix1</b>) from the dropdownlist. Set the Minimum value to 0 (zero) and click <b>OK</b>.</li>
<li style="text-align:justify;">To add tooltips for the individual bars of the sparkline, in design mode click on one of the bar columns of the Sales Chart Series and enter in the following expression the under ToolTip property: 
<pre class="brush: plain; light: true; title: ; notranslate"> =Fields!Month_Name.Value &amp; &quot; : &quot; &amp; Format(Fields!Sales.Value,&quot;C2&quot;) </pre>
</li>
</ol>
<p style="text-align:justify;">Those are the basics to setting up a sparkline embedded in a rectangle in your SSRS report. You can explore the other chart properties and tweak things like colors, markers, etc. and even provide actions such as jumping to a detail report for a given line item. The report created with the steps above can be downloaded <a title="Sales By Item sample report" href="http://gpreportsviewer.com/samplereports/SalesByItem.zip" target="_blank">here</a>.</p>
<p style="text-align:justify;">For more GP Reports Viewer news and Dynamics GP reporting tips, <a title="sign up for the GP Reports Viewer newsletter" href="http://visitor.r20.constantcontact.com/d.jsp?llr=yzzurvcab&amp;p=oi&amp;m=1102382262072" target="_blank">sign up for the GP Reports Viewer newsletter</a>. For additional SQL code, take a look at the <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a> on this blog.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/category/ssrs/'>SSRS</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/tag/sql-server/'>SQL Server</a>, <a href='http://victoriayudin.com/tag/ssrs/'>SSRS</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4430/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4430&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/11/27/how-to-add-a-sparkline-to-a-report-in-ssrs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/11/mechanism.jpg?w=117" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/mechanism.jpg?w=117" medium="image">
			<media:title type="html">mechanism</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr1.png" medium="image">
			<media:title type="html">scr1</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr2.png" medium="image">
			<media:title type="html">scr2</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr3.png" medium="image">
			<media:title type="html">scr3</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr4.png" medium="image">
			<media:title type="html">scr4</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr5.png" medium="image">
			<media:title type="html">scr5</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr6.png" medium="image">
			<media:title type="html">scr6</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr7.png" medium="image">
			<media:title type="html">scr7</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/11/scr8.png" medium="image">
			<media:title type="html">scr8</media:title>
		</media:content>
	</item>
		<item>
		<title>Voiding a partially applied Payables transaction in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/10/11/voiding-a-partially-applied-payables-transaction-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/10/11/voiding-a-partially-applied-payables-transaction-in-dynamics-gp/#comments</comments>
		<pubDate>Thu, 11 Oct 2012 11:34:51 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP 10.0]]></category>
		<category><![CDATA[GP 2010]]></category>
		<category><![CDATA[GP 2013]]></category>
		<category><![CDATA[GP 8.0]]></category>
		<category><![CDATA[GP 9.0]]></category>
		<category><![CDATA[Payables]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4402</guid>
		<description><![CDATA[Periodically I get calls or see questions online about how to void a partially applied Payables transaction in Dynamics GP. This is one area where the Payables module differs drastically from the Receivables module and you have to jump through some hoops to actually accomplish this. The issue is that when you go to void [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4402&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Periodically I get calls or see questions online about how to void a partially applied Payables transaction in Dynamics GP. This is one area where the Payables module differs drastically from the Receivables module and you have to jump through some hoops to actually accomplish this.</p>
<p style="text-align:justify;">The issue is that when you go to void a partially applied Payables transaction you receive the following message:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2012/10/void01.png"><img class="aligncenter  wp-image-4403" title="void01" alt="" src="http://victoriayudin.files.wordpress.com/2012/10/void01.png?w=505&#038;h=205" height="205" width="505" /></a></p>
<p style="text-align:justify;">Your only option here is to click OK. So is it possible to void a partially applied Payables transaction? The short answer is no. The long answer is that there is a workaround by following the steps below:</p>
<ol style="text-align:justify;">
<li>Fully apply the transaction. (This might involve creating a &#8216;dummy&#8217; invoice if there is nothing else to apply it to.)</li>
<li>Void the now historical transaction. (And void the &#8216;dummy&#8217; invoice if you had to create one.)</li>
</ol>
<p style="text-align:justify;">Below are details on these steps:</p>
<h3 style="text-align:center;">Step 1: Fully apply the transaction</h3>
<p style="text-align:justify;">In my example, I have a credit memo for $200 and $142.32 of it is still unapplied:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2012/10/void02.png"><img class="aligncenter  wp-image-4404" title="void02" alt="" src="http://victoriayudin.files.wordpress.com/2012/10/void02.png?w=620&#038;h=282" height="282" width="620" /></a></p>
<p style="text-align:justify;">Let&#8217;s look at the more complicated option, where I do not have anything else open for this vendor and I need to void this credit memo. To be able to fully apply this credit memo, I first need to create a &#8216;dummy&#8217; invoice for the unapplied amount on the credit memo:</p>
<ul>
<li>Go to  Transactions | Purchasing | Transaction Entry</li>
<li style="text-align:justify;">Select either Invoice or Misc Charge for the Document Type</li>
<li style="text-align:justify;">Enter the Vendor and Doc. Date  (the date doesn&#8217;t much matter, as we will be voiding this a few steps down)</li>
<li style="text-align:justify;">Enter the unapplied amount of the credit memo under Purchases (in my example, $142.32)</li>
<li style="text-align:justify;">The GL distributions do not matter here either, as again, we will be voiding this, however you do want to make sure they are all there so there is no issue with posting this transaction</li>
</ul>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2012/10/void031.png"><img class="aligncenter  wp-image-4406" style="margin-top:5px;margin-bottom:5px;" title="void03" alt="" src="http://victoriayudin.files.wordpress.com/2012/10/void031.png?w=606&#038;h=472" height="472" width="606" /></a></p>
<ul>
<li style="text-align:justify;">Post this transaction</li>
</ul>
<p style="text-align:justify;">Now you can fully apply the credit memo:</p>
<ul>
<li style="text-align:justify;">Go to Transactions | Purchasing | Apply Payables Documents</li>
<li style="text-align:justify;">Select the Vendor</li>
<li style="text-align:justify;">Click on the looking glass icon next to the Document No. at the top right and select the credit memo</li>
<li style="text-align:justify;">Apply it to the invoice you just posted: <a href="http://victoriayudin.files.wordpress.com/2012/10/void04.png"><img class="aligncenter  wp-image-4407" style="margin-top:5px;margin-bottom:5px;" title="void04" alt="" src="http://victoriayudin.files.wordpress.com/2012/10/void04.png?w=527&#038;h=409" height="409" width="527" /></a></li>
<li style="text-align:justify;">Click OK to close the Apply window and now we&#8217;re ready for step 2:</li>
</ul>
<h3 style="text-align:center;">Step 2: Void</h3>
<p style="text-align:justify;">Since the credit memo is now fully applied, it is in history. To void it:</p>
<ul>
<li style="text-align:justify;">Go to Transactions | Purchasing | Void Historical Transactions</li>
<li style="text-align:justify;">Select the transaction, change the date(s) if needed, and Void:<a href="http://victoriayudin.files.wordpress.com/2012/10/void05.png"><img class="aligncenter  wp-image-4418" style="margin-top:5px;margin-bottom:5px;" title="void05" alt="" src="http://victoriayudin.files.wordpress.com/2012/10/void05.png?w=505&#038;h=314" height="314" width="505" /></a></li>
</ul>
<p style="text-align:justify;">Now the &#8216;dummy&#8217; invoice is unapplied (and is thus Open), to void it:</p>
<ul style="text-align:justify;">
<li>Go to Transactions | Purchasing | Void Open Transactions</li>
<li>Select the Vendor and the &#8216;dummy&#8217; invoice and Void</li>
</ul>
<p style="text-align:justify;">That should do it on the Payables side. Depending on your settings, you might have some General Ledger postings to complete from transactions this generated.</p>
<p style="text-align:justify;">Now you have a reference for the steps to follow next time you have to void a partially applied Payables transaction in Dynamics GP.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-100/'>GP 10.0</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-2010/'>GP 2010</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-2013/'>GP 2013</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-80/'>GP 8.0</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-90/'>GP 9.0</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/payables/'>Payables</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4402&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/10/11/voiding-a-partially-applied-payables-transaction-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/10/weightlifting.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/weightlifting.jpg?w=96" medium="image">
			<media:title type="html">weightlifting</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/void01.png" medium="image">
			<media:title type="html">void01</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/void02.png" medium="image">
			<media:title type="html">void02</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/void031.png" medium="image">
			<media:title type="html">void03</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/void04.png" medium="image">
			<media:title type="html">void04</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/void05.png" medium="image">
			<media:title type="html">void05</media:title>
		</media:content>
	</item>
		<item>
		<title>Big announcement for Microsoft Dynamics GP&#8217;s Extender module</title>
		<link>http://victoriayudin.com/2012/10/08/big-annoucement-for-microsoft-dynamics-gps-extender-module/</link>
		<comments>http://victoriayudin.com/2012/10/08/big-annoucement-for-microsoft-dynamics-gps-extender-module/#comments</comments>
		<pubDate>Mon, 08 Oct 2012 12:22:54 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Extender]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4372</guid>
		<description><![CDATA[Last week, while searching for something on Microsoft&#8217;s PartnerSource, I came across an announcement that Microsoft is discontinuing sales of the Extender module and that both sales and support of Extender will revert back to eOne Solutions, the original developer of Extender, starting February 1, 2013. Please note that eOne has always sold a more [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4372&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Last week, while searching for something on Microsoft&#8217;s PartnerSource, I came across an announcement that Microsoft is discontinuing sales of the Extender module and that both sales and support of Extender will revert back to <a title="eOne Solutions" href="http://www.eonesolutions.com.au/" target="_blank">eOne Solutions</a>, the original developer of Extender, starting February 1, 2013.</p>
<p style="text-align:justify;">Please note that eOne has always sold a more advanced version of Extender, called Extender Enterprise. Everything in this post is talking about the Extender module that is currently sold by Microsoft as a Dynamics GP module. This is sometimes referred to as &#8216;Extender Standard&#8217;, however, I am simply calling it &#8216;Extender&#8217; since that is how most partners and customers refer to it.</p>
<p style="text-align:justify;">I think this announcement is a pretty big deal because there are many Microsoft Dynamics GP users out there with Extender and because Extender is such a terrific and useful module. For Dynamics GP Partners who want to see all the details and Q&amp;A, you can read <a title="Microsoft Dynamics GP Extender Discontinuation Announcement" href="https://mbs.microsoft.com/partnersource/pricing/announcements/msdgpextenderdiscontinuation.htm?printpage=false&amp;sid=vi0emq4funqvdlgopdbjspqt&amp;stext=Extender%20Discontinuation" target="_blank">the entire Microsoft announcement</a> on PartnerSource. I have not been able to find a similar announcement on CustomerSource yet. For those who do not have PartnerSource access, or just want a few highlights, they are below:</p>
<ul>
<li style="text-align:justify;padding-bottom:5px;">Effective February 1, 2013, the Extender module for Microsoft Dynamics GP will no longer be sold by Microsoft and will be removed from the Microsoft Dynamics GP price lists.</li>
<li style="text-align:justify;padding-bottom:5px;">eOne Solutions will continue to support existing Extender customers.</li>
<li style="text-align:justify;padding-bottom:5px;">New or existing customers who wish to purchase Extender can purchase it from eOne through their GP Partner. (Customers not working with a partner can work with eOne directly.)</li>
<li style="text-align:justify;padding-bottom:5px;">Starting February 1, 2013, Microsoft Dynamics GP customers who previously obtained a license for Extender from Microsoft will receive a reduction in their Protected List Price and will not be charged annual maintenance fees for Extender on their next Dynamics GP renewal. The license keys for Extender will remain on existing customers’ accounts, allowing the continued use of Extender.</li>
<li style="text-align:justify;">Any customer that owns Extender as of December 1, 2012 and is current on a maintenance plan will get license rights for Extender for Dynamics GP 2013. However, registration keys and the installation media will need to be obtained from eOne. After Dynamics GP 2013 customers will need to be on an eOne maintenance plan to receive new Extender versions and updates.</li>
</ul>
<p style="text-align:justify;">I spoke to Abbey Cooper from eOne Solutions and she was wonderful about explaining all the options for partners and customers and answering all the questions I had. If you are a partner supporting customers with Extender, <a title="email eOne" href="sales@eonesolutions.net" target="_blank">email eOne Solutions</a> to get signed up with them. If you are a customer using Extender or considering it for the future, talk to your GP Partner about any concerns or questions you might have.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/dynamics-gp/extender-dynamics-gp/'>Extender</a>, <a href='http://victoriayudin.com/category/microsoft/'>Microsoft</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/extender/'>Extender</a>, <a href='http://victoriayudin.com/tag/microsoft/'>Microsoft</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4372/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4372&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/10/08/big-annoucement-for-microsoft-dynamics-gps-extender-module/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/10/exclamation.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/10/exclamation.jpg?w=96" medium="image">
			<media:title type="html">exclamation mark</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>Coding for specific dates in Crystal Reports</title>
		<link>http://victoriayudin.com/2012/09/18/coding-for-specific-dates-in-crystal-reports/</link>
		<comments>http://victoriayudin.com/2012/09/18/coding-for-specific-dates-in-crystal-reports/#comments</comments>
		<pubDate>Tue, 18 Sep 2012 13:17:49 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Crystal tips for GP]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[GP Reports code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4348</guid>
		<description><![CDATA[Below is an old tip from one of the GP Reports Viewer monthly newsletters. In the past few months I have had to look this up several times, because I just cannot seem to remember the syntax, so I thought I would put it on my blog, where it will be easier for to find [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4348&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Below is an old tip from one of the <a title="GP Reports Viewer July 2011 Newsletter" href="http://archive.constantcontact.com/fs072/1102382262072/archive/1106848222922.html" target="_blank">GP Reports Viewer monthly newsletters</a>. In the past few months I have had to look this up several times, because I just cannot seem to remember the syntax, so I thought I would put it on my blog, where it will be easier for to find for everyone, including me.  :-)</p>
<p style="text-align:justify;">The situation where I last needed this was when I was creating a Crystal Report and wanted to hide a date field if it returns &#8217;1/1/1900&#8242;, the equivalent of a NULL in Dynamics GP data. To do this, follow the steps below:</p>
<ol>
<li>Right click on the date field on the report and choose <strong>Format Field</strong></li>
<li>On the <strong>Common</strong> tab click on the formula button next to <strong>Suppress</strong>: <a href="http://victoriayudin.files.wordpress.com/2012/09/coding-dates-01.png"><img class="aligncenter size-full wp-image-4349" title="coding dates 01" alt="" src="http://victoriayudin.files.wordpress.com/2012/09/coding-dates-01.png?w=450&#038;h=203" width="450" height="203" /></a></li>
<li>Add the following formula, replacing <em>DateField </em>with yours: <span style="color:#0000ff;"><strong>{<em>DateField</em>} = #1/1/1900#</strong></span></li>
<li>Click <strong>Save and Close</strong>, then <strong>OK</strong>.</li>
</ol>
<p style="text-align:justify;">If you would like to receive monthly tips like this, please <a title="subscribe to the GP Reports Viewer newsletter" href="http://visitor.r20.constantcontact.com/d.jsp?llr=yzzurvcab&amp;p=oi&amp;m=1102382262072" target="_blank">subscribe to the GP Reports Viewer newsletter</a>. And if you are looking to use Crystal Reports with Microsoft Dynamics GP, please check out <a title="GP Reports Viewer" href="http://www.GPReportsViewer.com/GP-Reports-Viewer" target="_blank">GP Reports Viewer</a> &#8211; it can make using Crystal Reports (or SSRS) in Dynamics GP a breeze.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/crystal-reports/'>Crystal Reports</a>, <a href='http://victoriayudin.com/category/gp-reports-code/crystal-tips-for-gp/'>Crystal tips for GP</a>, <a href='http://victoriayudin.com/category/gp-reports-viewer/'>GP Reports Viewer</a> Tagged: <a href='http://victoriayudin.com/tag/crystal-reports/'>Crystal Reports</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4348/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4348&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/09/18/coding-for-specific-dates-in-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/09/tablet-pc.jpg?w=72" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/09/tablet-pc.jpg?w=72" medium="image">
			<media:title type="html">3d small people with tablet pc</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/09/coding-dates-01.png" medium="image">
			<media:title type="html">coding dates 01</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for rolling 12 months of sales by item in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/08/27/sql-view-for-rolling-12-months-of-sales-by-item-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/08/27/sql-view-for-rolling-12-months-of-sales-by-item-in-dynamics-gp/#comments</comments>
		<pubDate>Mon, 27 Aug 2012 13:05:32 +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[Inventory SQL code]]></category>
		<category><![CDATA[SOP SQL code]]></category>
		<category><![CDATA[Inventory]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4332</guid>
		<description><![CDATA[Rolling twelve month reports are not always very easy to create,  and I have been seeing more requests for them, so I thought I would show an example of one way to do this. The view below is a variation of my sales by item by month view, however instead of specifying all months in [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4332&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Rolling twelve month reports are not always very easy to create,  and I have been seeing more requests for them, so I thought I would show an example of one way to do this. The view below is a variation of my <a title="SQL view for sales by item by month" href="http://victoriayudin.com/2011/08/29/sql-view-for-sales-by-item-by-month/" target="_blank">sales by item by month view</a>, however instead of specifying all months in a year, this will return the last 12 months, not including the current month. Note that this will be using the current date on the SQL server, not the user date specified in GP. As usual, I am making some assumptions which are listed in the view comments.</p>
<p>Related code and table information:</p>
<ul>
<li><a title="SOP Tables" href="http://victoriayudin.com/gp-tables/sop-tables/" target="_blank">Sales Order Processing (SOP) tables</a></li>
<li><a title="Inventory Tables" href="http://victoriayudin.com/gp-tables/inventory-tables/" target="_blank">Inventory tables</a></li>
<li><a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/" target="_blank">Sales Order Processing (SOP) SQL views</a></li>
<li><a title="Inventory SQL Views" href="http://victoriayudin.com/gp-reports/inventory-sql-views/" target="_blank">Inventory SQL views</a></li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports</a> (there is a section for General Ledger reports under Dynamics GP SQL Scripts)</li>
</ul>
<pre class="brush: sql; title: ; notranslate">
create view view_Rolling_12_Mo_Sales_by_Item
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Rolling_12_Mo_Sales_by_Item
-- Created Aug 27, 2012 by Victoria Yudin, Flexible Solutions
-- For updates see http://victoriayudin.com/gp-reports/
-- Returns total sales (invoices - returns) for each item for 
--   the last 12 months. Current month is not included, 
--   even if it is the last day of the month.
-- Only posted invoices and returns are included.
-- Voided transactions are excluded.
-- Item Description is taken from Inventory Item Maintenance 
--   for all inventory items, and from SOP line items
--   for non-inventory items.
-- Document Date is used (not GL Posting Date).
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 

SELECT
D.ITEMNMBR Item_Number,
D.Item_Description,
D.Generic_Description,
D.Item_Class,
D.User_Category_1,
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -12, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -12, GETDATE()))
  then D.SALES else 0 end) as [Sales_12_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -11, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -11, GETDATE()))
  then D.SALES else 0 end) as [Sales_11_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -10, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -10, GETDATE()))
  then D.SALES else 0 end) as [Sales_10_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -9, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -9, GETDATE()))
  then D.SALES else 0 end) as [Sales_9_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -8, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -8, GETDATE()))
  then D.SALES else 0 end) as [Sales_8_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -7, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -7, GETDATE()))
  then D.SALES else 0 end) as [Sales_7_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -6, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -6, GETDATE()))
  then D.SALES else 0 end) as [Sales_6_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -5, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -5, GETDATE()))
  then D.SALES else 0 end) as [Sales_5_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -4, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -4, GETDATE()))
  then D.SALES else 0 end) as [Sales_4_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -3, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -3, GETDATE()))
  then D.SALES else 0 end) as [Sales_3_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -2, GETDATE()))
  and year(D.DOCDATE) = year(DATEADD(m, -2, GETDATE()))
  then D.SALES else 0 end) as [Sales_2_mo_ago],
sum(case when month(D.DOCDATE) = 
  month(DATEADD(m, -1, GETDATE()))
  and YEAR(D.DOCDATE) = year(DATEADD(m, -1, GETDATE()))
  then D.SALES else 0 end) as [Sales_1_mo_ago]

FROM
(SELECT SH.DOCDATE, SD.ITEMNMBR,
 coalesce(I.ITEMDESC, SD.ITEMDESC) Item_Description,
 coalesce(I.ITMGEDSC, '') Generic_Description,
 coalesce(I.ITMCLSCD,'') Item_Class,
 coalesce(I.USCATVLS_1,'') User_Category_1,
 case SD.SOPTYPE
     WHEN 3 THEN SD.XTNDPRCE
     WHEN 4 THEN SD.XTNDPRCE*-1
     END SALES
 FROM SOP30200 SH  -- SOP header
 INNER JOIN
     SOP30300 SD  -- SOP lines
     ON SD.SOPNUMBE = SH.SOPNUMBE
     AND SD.SOPTYPE = SH.SOPTYPE
 LEFT OUTER JOIN
     IV00101 I  -- item master
     ON I.ITEMNMBR = SD.ITEMNMBR
 WHERE SH.VOIDSTTS = 0   -- not voided
     AND SH.SOPTYPE IN (3,4) -- only invoices and returns
     AND SD.XTNDPRCE &lt;&gt; 0   -- excludes zero price
     AND SD.ITEMNMBR not like 'XXXXXXXXXXXXXXX%'  
     ) D

GROUP BY D.ITEMNMBR, D.Item_Description, 
  D.Generic_Description, D.Item_Class, D.User_Category_1

-- add permissions for DYNGRP
GO
GRANT SELECT ON view_Rolling_12_Mo_Sales_by_Item TO DYNGRP
</pre>
<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/inventory-sql-code/'>Inventory SQL code</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sop-sql-code/'>SOP SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/inventory/'>Inventory</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</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/4332/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4332/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4332&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/08/27/sql-view-for-rolling-12-months-of-sales-by-item-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/08/diagram.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/08/diagram.jpg?w=96" medium="image">
			<media:title type="html">3d small people - diagram</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 Variable Allocation Accounts in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/08/23/sql-view-for-variable-allocation-accounts-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/08/23/sql-view-for-variable-allocation-accounts-in-dynamics-gp/#comments</comments>
		<pubDate>Thu, 23 Aug 2012 13:01:19 +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[General Ledger]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4320</guid>
		<description><![CDATA[Below is a view that will return a list of the distribution and breakdown accounts for all active variable allocation accounts in your Dynamics GP. Nothing fancy, but sometimes it is easier to have a report of these rather than have to look at them on the screen, specially since you have to click on [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4320&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Below is a view that will return a list of the distribution and breakdown accounts for all active variable allocation accounts in your Dynamics GP. Nothing fancy, but sometimes it is easier to have a report of these rather than have to look at them on the screen, specially since you have to click on each distribution account one at a time to see what breakdown account they are using.</p>
<p>Related code and table information:</p>
<ul>
<li><a title="GL Tables" href="http://victoriayudin.com/gp-tables/gl-tables/">General Ledger tables</a></li>
<li><a title="SQL view for Fixed Allocation Accounts in Dynamics GP" href="http://victoriayudin.com/2013/01/23/sql-view-for-fixed-allocation-accounts-in-dynamics-gp/" target="_blank">Fixed Allocation Accounts</a></li>
<li><a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports</a> (there is a section for General Ledger reports under Dynamics GP SQL Scripts)</li>
</ul>
<pre class="brush: sql; title: ; notranslate">
create view view_Variable_Allocation_Accounts
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Variable_Allocation_Accounts
-- Created on Aug. 23, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please see http://victoriayudin.com/gp-reports/
-- Shows only active variable allocation accounts
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

select
an.ACTNUMST Variable_Allocation_Account,
a.ACTDESCR Variable_Allocation_Account_Name,
d.ACTNUMST Distribution_Account,
dn.ACTDESCR Distribution_Account_Name,
b.ACTNUMST Breakdown_Account,
bn.ACTDESCR Breakdown_Account_Name

from GL00100 a --account master

inner join GL00105 an --account number
on a.ACTINDX = an.ACTINDX

inner join GL00104 v --variable allocation account setup
on a.ACTINDX = v.ACTINDX

inner join GL00105 d --distribution acct number
on v.DSTINDX = d.ACTINDX

inner join GL00100 dn --distribution account name
on v.DSTINDX = dn.ACTINDX

inner join GL00105 b --breakdown account number
on v.BDNINDX = b.ACTINDX

inner join GL00100 bn --breakdown account name
on v.BDNINDX = bn.ACTINDX

where a.ACCTTYPE = 3 and a.ACTIVE = 1

go
grant select on view_Variable_Allocation_Accounts to DYNGRP

</pre>
<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/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> 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/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4320&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/08/23/sql-view-for-variable-allocation-accounts-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/08/puzzle-pieces.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/08/puzzle-pieces.jpg?w=96" medium="image">
			<media:title type="html">3d small people - team with the puzzles</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 commissions details in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/07/19/sql-view-for-commissions-details-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/07/19/sql-view-for-commissions-details-in-dynamics-gp/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 09:16:34 +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[SOP SQL code]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4284</guid>
		<description><![CDATA[Commissions are typically difficult to create generic reports for, as many companies have unique commission structures. We find that out-of-the-box functionality in GP does not really work for most companies and often the commissions are recorded in ways other than what was intended. That said, if you find that you are using the commissions functionality [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4284&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Commissions are typically difficult to create generic reports for, as many companies have unique commission structures. We find that out-of-the-box functionality in GP does not really work for most companies and often the commissions are recorded in ways other than what was intended. That said, if you find that you are using the commissions functionality in any capacity at all, you may find yourself needing to report on the commissions data in the GP tables.</p>
<p style="text-align:justify;">The view below returns all the commissions from the SOP (Sales Order Processing) module and also includes commissions from RM (Receivables Management) transactions that did not come from SOP. Both posted and unposted transactions are included, but I have added a column called Posted to show the posting status so you can easily exclude the unposted transactions if you need to. More notes are found in the comments in the view. This code was tested on a few different sets of data, however, it may be that this will not work for your specific data &#8211; before using this to base commissions on, please <strong>test</strong> the results.</p>
<p>Related code and table information:</p>
<ul>
<li><a title="RM Tables" href="http://victoriayudin.com/gp-tables/rm-tables/" target="_blank">Receivables Management tables</a></li>
<li><a title="SOP Tables" href="http://victoriayudin.com/gp-tables/sop-tables/" target="_blank">Sales Order Processing tables</a></li>
<li><a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/" target="_blank">Receivables SQL views</a></li>
<li><a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/" target="_blank">S</a><a title="SOP Tables" href="http://victoriayudin.com/gp-tables/sop-tables/" target="_blank">OP</a><a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/" target="_blank"> SQL views</a></li>
</ul>
<pre class="brush: sql; title: ; notranslate">

CREATE VIEW view_Commissions_Details
AS

--***********************************************************************************
-- view_Commissions_Details
-- Created July 19, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates see http://victoriayudin.com/gp-reports/
-- Returns all commissions details for SOP transactions (invoices and returns only)
--     and also adds in non-SOP transactions commissions from RM tables
-- Only shows functional amounts
-- Excludes voided transactions
--***********************************************************************************

select CUSTNMBR Customer_ID, DOCDATE Document_Date, GLPOSTDT GL_Posting_Date, Data_Source,
case RMDTYPAL 
 when 1 then 'Invoice'
 when 3 then 'Debit Memo'
 when 5 then 'Service / Repair'
 when 7 then 'Credit Memo'
 when 8 then 'Return'
 end Document_Type,
DOCNUMBR Document_Number, SEQNUMBR Sequence_Number,
TRXSORCE Trx_Source, SLPRSNID Salesperson, SALSTERR Territory, 
case when RMDTYPAL &lt; 7 then Sales_Amount else Sales_Amount*-1 end Sales_Amount, 
case when RMDTYPAL &lt; 7 then Non_Comm_Amount else Non_Comm_Amount*-1 end Non_Comm_Amount,
cast(PRCTOSAL as numeric)/100 Percent_of_Sale, 
case when RMDTYPAL &lt; 7 then Commission_Amount else Commission_Amount*-1 end Commission_Amount,
cast(COMPRCNT as numeric)/100 Commission_Percent, 
case POSTED when 0 then 'No' else 'Yes' end Posted
 
from

(select r.CUSTNMBR, r.DOCDATE, r.GLPOSTDT, c.*
from
(select 
 Data_Source = 'RM History', RMDTYPAL, DOCNUMBR, SEQNUMBR, TRXSORCE, SLPRSNID, 
 SALSTERR, SLSAMNT Sales_Amount, NCOMAMNT Non_Comm_Amount, PRCTOSAL, 
 COMDLRAM Commission_Amount, COMPRCNT, POSTED
 from RM30501 -- RM Commission History
 where left(TRXSORCE,5) &lt;&gt; 'SLSTE'
  union all
 select 
 Data_Source = 'RM Work', RMDTYPAL, DOCNUMBR, SEQNUMBR, TRXSORCE, SLPRSNID, 
 SALSTERR, SLSAMNT Sales_Amount, NCOMAMNT Non_Comm_Amount, PRCTOSAL, 
 COMDLRAM Commission_Amount, COMPRCNT, POSTED
 from rm10501 -- RM Commission Work 
 where left(TRXSORCE,5) &lt;&gt; 'SLSTE') c -- RM commissions

inner join 
(select RMDTYPAL, DOCNUMBR, DOCDATE, GLPOSTDT, CUSTNMBR 
 from RM10301 --RM Work
  union 
 select RMDTYPAL, DOCNUMBR, DOCDATE, GLPOSTDT, CUSTNMBR 
 from RM20101 --RM Open
 where VOIDSTTS = 0
  union 
 select RMDTYPAL, DOCNUMBR, DOCDATE, GLPOSTDT, CUSTNMBR 
 from RM30101 --RM History
 where VOIDSTTS = 0) r --all RM transactions
 on r.RMDTYPAL = c.RMDTYPAL and r.DOCNUMBR = c.DOCNUMBR

union all
select
s.CUSTNMBR, s.DOCDATE, s.GLPOSTDT, Data_Source = 'SOP',  
case c.SOPTYPE when 3 then 1 else 8 end RMDTYPAL,
c.SOPNUMBE DOCNUMBR, c.SEQNUMBR, c.TRXSORCE, c.SLPRSNID, 
c.SALSTERR, c.ACTSLAMT Sales_Amount, c.NCOMAMNT Non_Comm_Amount, 
c.PRCTOSAL, c.COMMAMNT Commission_Amount, c.COMPRCNT, 
case c.TRXSORCE when '' then 0 else 1 end POSTED
from SOP10101 c --SOP commissions (work and history)

inner join 
(select SOPTYPE, SOPNUMBE, DOCDATE, GLPOSTDT, CUSTNMBR
 from SOP10100 
 where SOPTYPE in (3,4) and VOIDSTTS = 0
  union 
 select SOPTYPE, SOPNUMBE, DOCDATE, GLPOSTDT, CUSTNMBR
 from SOP30200
 where SOPTYPE in (3,4) and VOIDSTTS = 0) s --SOP transactions
 on s.SOPTYPE = c.SOPTYPE and s.SOPNUMBE = c.SOPNUMBE
where c.SOPTYPE in (3,4)) a --all data

GO
GRANT SELECT ON view_Commissions_Details to DYNGRP

</pre>
<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>, <a href='http://victoriayudin.com/category/gp-reports-code/sop-sql-code/'>SOP SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</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/4284/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4284/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4284&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/07/19/sql-view-for-commissions-details-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/07/money-bags.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/07/money-bags.jpg?w=96" medium="image">
			<media:title type="html">money</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>Dynamics GP SOP line items with serial numbers and comments</title>
		<link>http://victoriayudin.com/2012/06/04/dynamics-gp-sop-line-items-with-serial-numbers-and-comments/</link>
		<comments>http://victoriayudin.com/2012/06/04/dynamics-gp-sop-line-items-with-serial-numbers-and-comments/#comments</comments>
		<pubDate>Mon, 04 Jun 2012 12:22: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[SOP SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4249</guid>
		<description><![CDATA[Based on some reader requests, this new view is a combination of  my All SOP Line Items view and the recently posted script showing how to get a concatenated list of serial numbers in SQL. This new view will return all posted (history) or unposted (open) Sales Order Processing line items with the associated serial numbers (or lot numbers). [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4249&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Based on some reader requests, this new view is a combination of  my <a title="Victoria Yudin - SQL view with all SOP line items in Dynamics GP" href="http://victoriayudin.com/2009/05/17/sql-view-with-all-sop-line-items/" target="_blank">All SOP Line Items view</a> and the recently posted <a title="Victoria Yudin - Concatenating strings in SQL Server" href="http://victoriayudin.com/2012/05/21/concatenating-strings-in-sql-server/" target="_blank">script showing how to get a concatenated list of serial numbers in SQL</a>. This new view will return all posted (history) or unposted (open) Sales Order Processing line items with the associated serial numbers (or lot numbers). The serial/lot numbers for each line will be concatenated into one field. The results will also include the header and line item comments.</p>
<p style="text-align:justify;">For more Dynamics GP SOP scripts please visit my <a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/" target="_blank">SOP SQL Views page</a>. Or take a look at my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a> for additional reporting links. SOP table information can be found on <a title="SOP Tables" href="http://victoriayudin.com/gp-tables/sop-tables/" target="_blank">this page</a>.</p>
<pre class="brush: sql; title: ; notranslate">
CREATE VIEW view_SOP_Line_Items_Serial
AS

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_SOP_Line_Items_Serial
-- Created on June 4, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please see http://victoriayudin.com/gp-reports/
-- All line items for posted and unposted SOP transactions with serial and/or lot numbers
-- Returns Functional amounts only
-- Component Items are not taken into consideration
-- Fields that can have different values on the document header and
-- line item are both returned prefaced by 'Header' or 'Line'
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

SELECT S.*,
coalesce(C.CMMTTEXT,'') Line_Item_Comment,
coalesce(SN.Serial_Lot_Numbers,'') Serial_Lot_Numbers,
coalesce(HC.CMMTTEXT,'') Header_Comment

FROM  --sop lines
(SELECT Doc_Status = 'Open',
H.SOPNUMBE SOP_Number, H.SOPTYPE SOP_Type,
H.DOCDATE Document_Date, H.GLPOSTDT GL_Posting_Date,
H.ORDRDATE Order_Date, H.DUEDATE Due_Date,
H.MSTRNUMB Master_Number,
CASE H.PSTGSTUS
  WHEN 0 THEN 'Unposted'
  WHEN 2 THEN 'Posted'
  ELSE 'Error'
  END Posting_Status,
H.CUSTNMBR Customer_ID, H.CUSTNAME Customer_Name,
H.CSTPONBR Customer_PO, H.BACHNUMB Batch_Number,
H.LOCNCODE Header_Site_ID, L.LOCNCODE Line_Site_ID,
CASE H.VOIDSTTS
  WHEN 0 THEN 'Not Voided'
  WHEN 1 THEN 'Voided'
  ELSE ''
  END Void_Status,
H.SLPRSNID Header_Salesperson, L.SLPRSNID Line_Salesperson,
H.SALSTERR Header_Territory, L.SALSTERR Line_Territory,
H.PYMTRMID Payment_Terms_ID,
H.SHIPMTHD Header_Shipping_Method, L.SHIPMTHD Line_Shipping_Method,
H.PRBTADCD Bill_To_Address_ID,
H.PRSTADCD Header_Ship_To_Address_ID, H.ShipToName Header_Ship_To_Name,
H.ADDRESS1 Header_Address_1, H.ADDRESS2 Header_Address_2,
H.ADDRESS3 Header_Address_3, H.CITY Header_City,
H.[STATE] Header_State, H.ZIPCODE Header_Zip_Code,
H.COUNTRY Header_Country,
L.PRSTADCD Line_Ship_To_Address_ID, L.ShipToName Line_Ship_To_Name,
L.ADDRESS1 Line_Address_1, L.ADDRESS2 Line_Address_2,
L.ADDRESS3 Line_Address_3, L.CITY Line_City,
L.[STATE] Line_State, L.ZIPCODE Line_Zip_Code,
L.COUNTRY Line_Country,
H.DOCAMNT Total_Document_Amount, H.MRKDNAMT Total_Markdown_Amount,
H.SUBTOTAL Document_Subtotal,
H.FRTAMNT Freight_Amount, H.MISCAMNT Misc_Amount,
H.TAXAMNT Tax_Amount, H.CURNCYID Currency_ID,
H.ReqShipDate Header_ReqShipDate, L.ReqShipDate Line_ReqShipDate,
H.USER2ENT User_to_Enter,
H.COMMNTID Header_Comment_ID, L.COMMNTID Line_Comment_ID,
L.LNITMSEQ Line_Item_Sequence, L.CMPNTSEQ Component_Sequence,
CASE L.NONINVEN
  WHEN 0 THEN 'Inventory'
  WHEN 1 THEN 'Non-Inventory'
  ELSE ''
  END Item_Type,
L.ITEMNMBR Item_Number, L.ITEMDESC Item_Description,
L.QUANTITY Quantity, L.UOFM U_of_M, L.QTYBSUOM Qty_in_Base_U_of_M,
L.QTYREMAI Qty_Remaining, L.UNITPRCE Unit_Price,
L.XTNDPRCE Extended_Price,
CASE L.MRKDNTYP
  WHEN 0 THEN 'Percentage'
  WHEN 1 THEN 'Amount'
  ELSE ''
  END Markdown_Type,
L.MRKDNAMT Markdown_Amount, L.MRKDNPCT/100 Markdown_Percentage,
L.TRDISAMT Trade_Discount_Amount,
L.UNITCOST Unit_Cost, L.EXTDCOST Extended_Cost

FROM SOP10100 H
INNER JOIN SOP10200 L
	ON H.SOPTYPE = L.SOPTYPE AND H.SOPNUMBE = L.SOPNUMBE

UNION

SELECT Doc_Status = 'History',
H.SOPNUMBE SOP_Number, H.SOPTYPE SOP_Type,
H.DOCDATE Document_Date, H.GLPOSTDT GL_Posting_Date,
H.ORDRDATE Order_Date, H.DUEDATE Due_Date,
H.MSTRNUMB Master_Number,
CASE H.PSTGSTUS
  WHEN 0 THEN 'Unposted'
  WHEN 2 THEN 'Posted'
  ELSE 'Error'
  END Posting_Status,
H.CUSTNMBR Customer_ID, H.CUSTNAME Customer_Name,
H.CSTPONBR Customer_PO, H.BACHNUMB Batch_Number,
H.LOCNCODE Header_Site_ID, L.LOCNCODE Line_Site_ID,
CASE H.VOIDSTTS
  WHEN 0 THEN 'Not Voided'
  WHEN 1 THEN 'Voided'
  ELSE ''
  END Void_Status,
H.SLPRSNID Header_Salesperson, L.SLPRSNID Line_Salesperson,
H.SALSTERR Header_Territory, L.SALSTERR Line_Territory,
H.PYMTRMID Payment_Terms_ID,
H.SHIPMTHD Header_Shipping_Method, L.SHIPMTHD Line_Shipping_Method,
H.PRBTADCD Bill_To_Address_ID,
H.PRSTADCD Header_Ship_To_Address_ID, H.ShipToName Header_Ship_To_Name,
H.ADDRESS1 Header_Address_1, H.ADDRESS2 Header_Address_2,
H.ADDRESS3 Header_Address_3, H.CITY Header_City,
H.[STATE] Header_State, H.ZIPCODE Header_Zip_Code,
H.COUNTRY Header_Country,
L.PRSTADCD Line_Ship_To_Address_ID, L.ShipToName Line_Ship_To_Name,
L.ADDRESS1 Line_Address_1, L.ADDRESS2 Line_Address_2,
L.ADDRESS3 Line_Address_3, L.CITY Line_City,
L.[STATE] Line_State, L.ZIPCODE Line_Zip_Code,
L.COUNTRY Line_Country,
H.DOCAMNT Total_Document_Amount, H.MRKDNAMT Total_Markdown_Amount,
H.SUBTOTAL Document_Subtotal,
H.FRTAMNT Freight_Amount, H.MISCAMNT Misc_Amount,
H.TAXAMNT Tax_Amount, H.CURNCYID Currency_ID,
H.ReqShipDate Header_ReqShipDate, L.ReqShipDate Line_ReqShipDate,
H.USER2ENT User_to_Enter,
H.COMMNTID Header_Comment_ID, L.COMMNTID Line_Comment_ID,
L.LNITMSEQ Line_Item_Sequence, L.CMPNTSEQ Component_Sequence,
CASE L.NONINVEN
  WHEN 0 THEN 'Inventory'
  WHEN 1 THEN 'Non-Inventory'
  ELSE ''
  END Item_Type,
L.ITEMNMBR Item_Number, L.ITEMDESC Item_Description,
L.QUANTITY Quantity, L.UOFM U_of_M, L.QTYBSUOM Qty_in_Base_U_of_M,
L.QTYREMAI Qty_Remaining, L.UNITPRCE Unit_Price,
L.XTNDPRCE Extended_Price,
CASE L.MRKDNTYP
  WHEN 0 THEN 'Percentage'
  WHEN 1 THEN 'Amount'
  ELSE ''
  END Markdown_Type,
L.MRKDNAMT Markdown_Amount, L.MRKDNPCT/100 Markdown_Percentage,
L.TRDISAMT Trade_Discount_Amount,
L.UNITCOST Unit_Cost, L.EXTDCOST Extended_Cost

FROM SOP30200 H
INNER JOIN SOP30300 L
	ON H.SOPTYPE = L.SOPTYPE AND H.SOPNUMBE = L.SOPNUMBE) S --sop lines

LEFT OUTER JOIN
(SELECT p.SOPNUMBE, p.SOPTYPE, p.LNITMSEQ,
LEFT(p.serial_numbers, len(p.serial_numbers)-1) Serial_Lot_Numbers
FROM
 (SELECT p1.SOPNUMBE, p1.SOPTYPE, p1.ITEMNMBR, p1.LNITMSEQ,
  (SELECT coalesce(rtrim(SERLTNUM) + ', ','')
   FROM SOP10201 p2
   WHERE p1.SOPNUMBE = p2.SOPNUMBE and p1.SOPTYPE = p2.SOPTYPE
      and p1.ITEMNMBR = p2.ITEMNMBR and p1.LNITMSEQ = p2.LNITMSEQ
   ORDER BY SOPNUMBE
   FOR XML PATH('')) serial_numbers
  FROM SOP10201 p1
 GROUP BY SOPNUMBE, SOPTYPE, ITEMNMBR, LNITMSEQ) p) SN --serial/lot numbers
ON SN.SOPNUMBE = S.SOP_Number AND SN.SOPTYPE = S.SOP_Type AND SN.LNITMSEQ = S.Line_Item_Sequence

LEFT OUTER JOIN SOP10202 C --line item comments
ON C.SOPNUMBE = S.SOP_Number AND C.SOPTYPE = S.SOP_Type AND C.LNITMSEQ = S.Line_Item_Sequence

LEFT OUTER JOIN SOP10106 HC --header comments
ON HC.SOPNUMBE = S.SOP_Number AND HC.SOPTYPE = S.SOP_Type

--add permissions
GO
GRANT SELECT ON view_SOP_Line_Items_Serial TO DYNGRP
</pre>
<p style="text-align:justify;"><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></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/sop-sql-code/'>SOP 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/sales-order-processing/'>Sales Order Processing</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/4249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4249&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/06/04/dynamics-gp-sop-line-items-with-serial-numbers-and-comments/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/06/gear.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/06/gear.jpg?w=96" medium="image">
			<media:title type="html">push the gear</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>Using Lookups in GP Reports Viewer to make parameter selection more user friendly</title>
		<link>http://victoriayudin.com/2012/05/31/using-lookups-in-gp-reports-viewer-to-make-parameter-selection-more-user-friendly/</link>
		<comments>http://victoriayudin.com/2012/05/31/using-lookups-in-gp-reports-viewer-to-make-parameter-selection-more-user-friendly/#comments</comments>
		<pubDate>Thu, 31 May 2012 13:01:52 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4200</guid>
		<description><![CDATA[One of the critical elements in reporting is parameter selection. During report creation it is essential to make sure that the proper parameters are added to the report to correctly filter on the data the users want to see. However, it doesn&#8217;t just stop there. To ensure user friendly reports it is also very important [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4200&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">One of the critical elements in reporting is parameter selection. During report creation it is essential to make sure that the proper parameters are added to the report to correctly filter on the data the users want to see. However, it doesn&#8217;t just stop there. To ensure user friendly reports it is also very important to make the parameter selection easy for users during report generation.</p>
<p style="text-align:justify;">One way GP Reports Viewer aids in this task is by allowing for three different options for parameter lookups: Dynamics GP Lookups, Custom Static Lookups and Custom Dynamic Lookups. I will go over these three options below in more detail.</p>
<h3 style="text-align:center;"><strong><span style="color:#800000;">Dynamics GP Lookups</span></strong></h3>
<p style="text-align:justify;">Out of the box, GP Reports Viewer includes default lookups for a number of common parameters including Customer ID, Vendor ID and Item Number:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/parameters01.png"><img class="aligncenter size-full wp-image-4204" title="parameters01" src="http://victoriayudin.files.wordpress.com/2012/05/parameters01.png?w=450&#038;h=317" alt="" width="450" height="317" /></a></p>
<p style="text-align:justify;">Choosing one of these will point to the default Dynamics GP lookup window for each option, with all the standard GP functionality enabled. The idea here is that when users are printing reports, they have a familiar look and feel for selecting their report parameters. For example, if you have a report with Customer ID as the parameter, you can choose the <span style="color:#333399;">Customer ID</span> Lookup when setting up your report in GP Reports Viewer. The users, when printing the report, simply click on the looking glass icon:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/parameters02.png"><img class="aligncenter size-full wp-image-4205" title="parameters02" src="http://victoriayudin.files.wordpress.com/2012/05/parameters02.png?w=450" alt=""   /></a></p>
<p>And are then presented with a window they already know for selecting a customer:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/parameters03.png"><img class="aligncenter size-full wp-image-4206" title="parameters03" src="http://victoriayudin.files.wordpress.com/2012/05/parameters03.png?w=450&#038;h=285" alt="" width="450" height="285" /></a></p>
<p style="text-align:justify;">One new addition GP Reports Viewer created for this is the <span style="color:#333399;">Calendar</span> Lookup, choosing this will result in the following pop up when users click the looking glass icon:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/parameters04.png"><img class="aligncenter size-full wp-image-4208" title="parameters04" src="http://victoriayudin.files.wordpress.com/2012/05/parameters04.png?w=450" alt=""   /></a></p>
<hr />
<h3 style="text-align:center;"></h3>
<h3 style="text-align:center;"><strong><span style="color:#800000;">Custom Static Lookups</span></strong></h3>
<p style="text-align:justify;">Sometimes, a parameter is a Yes/No choice, or something else requiring a short list of static options. For situations like this, you can create a Custom Static Lookup in GP Reports Viewer. Steps to do this:</p>
<ol>
<li>Navigate to <em><span style="color:#333399;">GP | Tools | GP Reports Viewer | Lookups</span></em>.</li>
<li style="text-align:justify;">The <span style="color:#333399;">Lookup ID</span> will automatically populate with the next available number.</li>
<li style="text-align:justify;">Type in a<span style="color:#333399;"> Lookup Name</span>. This is what you will see when assigning lookups to parameters on reports and what the users will see as the name of the lookup window.</li>
<li style="text-align:justify;">Choose a <span style="color:#333399;">Lookup Series</span> &#8211; this is simply for categorizing lookups, all lookups will be available on all reports.</li>
<li>Select <span style="color:#333399;">Static</span> for <span style="color:#333399;">Lookup Type</span>.<a href="http://victoriayudin.files.wordpress.com/2012/05/parameters05.png"><img class="aligncenter size-full wp-image-4209" title="parameters05" src="http://victoriayudin.files.wordpress.com/2012/05/parameters05.png?w=450&#038;h=143" alt="" width="450" height="143" /></a></li>
<li style="text-align:justify;">Enter column <span style="color:#333399;">Display Headings</span> and <span style="color:#333399;">Types</span> for your lookup &#8211; only the first one is required, you can leave the others blank.</li>
<li style="text-align:justify;">Enter <span style="color:#333399;">Values</span> for your columns, below is a lookup with only one column and a Yes/No option: <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters06.png"><img class="aligncenter size-full wp-image-4210" title="parameters06" src="http://victoriayudin.files.wordpress.com/2012/05/parameters06.png?w=450&#038;h=199" alt="" width="450" height="199" /></a></li>
<li style="text-align:justify;">If you click <span style="color:#333399;">Test Lookup</span> you will be prompted to <span style="color:#333399;">Save</span> and then shown the lookup you have just created:<a href="http://victoriayudin.files.wordpress.com/2012/05/parameters07.png"><img class="aligncenter size-full wp-image-4211" title="parameters07" src="http://victoriayudin.files.wordpress.com/2012/05/parameters07.png?w=450" alt=""   /></a></li>
</ol>
<div style="text-align:justify;">Obviously a Yes/No option is not something earth shattering, but it can be helpful so that users are not guessing at the format of the parameter (for example, should it be <span style="color:#333399;">Y</span> or <span style="color:#333399;">Yes</span>?) and is something quick and simple to set up.</div>
<hr />
<h3 style="text-align:center;"></h3>
<h3 style="text-align:center;"><strong><span style="color:#800000;">Custom Dynamic Lookups</span></strong></h3>
<p style="text-align:justify;">Now for the really cool option &#8211; with GP Reports Viewer you can create your own custom lookups that can be based on a SQL table, view or stored procedure. You can even point to data in a different database, it does not have to be the one that users are logged into.</p>
<p style="text-align:justify;">This option is often useful for setting up parameter choices where the data may change. Since this option is so robust, I would like to show two different examples of this. One is going to point directly to data in a table, another one will use a SQL view that is created specifically for this lookup.</p>
<h4 style="text-align:center;"></h4>
<h4 style="text-align:center;"><span style="color:#800000;">Example &#8211; using data directly from a table</span></h4>
<p style="text-align:justify;">This example will create a parameter lookup with a list of departments in GP. Department in this case is the third segment of the chart of accounts and it is assumed that the department names are populated in the GL already.</p>
<ol>
<li style="text-align:justify;">Navigate to <span style="color:#333399;"><em>GP | Tools | GP Reports Viewer | Lookups</em></span>.</li>
<li style="text-align:justify;">The <span style="color:#333399;">Lookup ID</span> will automatically populate with the next available number.</li>
<li style="text-align:justify;">Type in a <span style="color:#333399;">Lookup Name</span>. This is what you will see when assigning lookups to parameters on reports and what the users will see as the name of the lookup window.</li>
<li style="text-align:justify;">Choose a <span style="color:#333399;">Lookup Series</span> &#8211; this is simply for categorizing lookups, all lookups will be available on all reports.</li>
<li style="text-align:justify;">Select <span style="color:#333399;">Dynamic</span> for <span style="color:#333399;">Lookup Type</span>. <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters08.png"><img class="aligncenter size-full wp-image-4220" title="parameters08" src="http://victoriayudin.files.wordpress.com/2012/05/parameters08.png?w=450&#038;h=141" alt="" width="450" height="141" /></a></li>
<li style="text-align:justify;">Under <span style="color:#333399;">Database</span> select <span style="color:#333399;">Current Company Database.</span></li>
<li style="text-align:justify;"><span style="color:#333399;">Query Type</span> will default to <span style="color:#333399;">Select statement</span>. (If you&#8217;re curious, the other option there is <span style="color:#333399;">Stored procedure</span>.)</li>
<li style="text-align:justify;">For <span style="color:#333399;">Table</span> type in <span style="color:#333399;">GL40200</span>. (This is the Segment Description Master table.) <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters00.png"><img class="aligncenter size-full wp-image-4222" title="parameters00" src="http://victoriayudin.files.wordpress.com/2012/05/parameters00.png?w=450" alt=""   /></a></li>
<li style="text-align:justify;">You must have at least one column defined in your lookup and you can have up to three columns.  In this case, it makes sense to have two columns: department number and name. Below is what this would look like. Note that I deleted the <span style="color:#333399;">Display Heading</span> for <span style="color:#333399;">Column 3</span>, so that it simply shows up blank: <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters09.png"><img class="aligncenter size-full wp-image-4223" title="parameters09" src="http://victoriayudin.files.wordpress.com/2012/05/parameters09.png?w=450&#038;h=71" alt="" width="450" height="71" /></a></li>
<li style="text-align:justify;">We also need to restrict this to only look at the third segment, so add <span style="color:#333399;">SGMTNUMB = 3</span> to the <span style="color:#333399;">SQL Where Clause</span> field: <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters10.png"><img class="aligncenter size-full wp-image-4224" title="parameters10" src="http://victoriayudin.files.wordpress.com/2012/05/parameters10.png?w=450" alt=""   /></a></li>
<li><span style="text-align:justify;">Click </span><span style="text-align:justify;color:#333399;">Test Lookup</span><span style="text-align:justify;">, choose </span><span style="text-align:justify;color:#333399;">Yes</span><span style="text-align:justify;"> to save and you can now preview your lookup: </span></li>
</ol>
<p style="text-align:justify;"><a style="text-align:justify;" href="http://victoriayudin.files.wordpress.com/2012/05/parameters11.png"><img class="aligncenter size-full wp-image-4225" title="parameters11" src="http://victoriayudin.files.wordpress.com/2012/05/parameters11.png?w=450" alt=""   /></a><span style="text-align:justify;">Lookups that have more than one column will have a drop down option enabled to allow users to search by any of the available columns: <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters12.png"><img class="aligncenter size-full wp-image-4226" title="parameters12" src="http://victoriayudin.files.wordpress.com/2012/05/parameters12.png?w=450" alt=""   /></a></span></p>
<h4 style="text-align:center;"></h4>
<h4 style="text-align:center;"><span style="color:#800000;">Example &#8211; using a SQL view</span></h4>
<p style="text-align:justify;">Another common example where you might want to have a custom lookup is a list of all SOP invoices. There is a Dynamics GP lookup for SOP Numbers that is available in GP Reports Viewer, but if your report only has invoices, users may find it easier to have a shorter list to look through. I don&#8217;t think it is necessary to go through all the steps in detail, as they will be almost identical to the steps above, so I will simply show you what the setup looks like: <a href="http://victoriayudin.files.wordpress.com/2012/05/parameters13.png"><img class="aligncenter size-full wp-image-4227" title="parameters13" src="http://victoriayudin.files.wordpress.com/2012/05/parameters13.png?w=450&#038;h=341" alt="" width="450" height="341" /></a></p>
<p>The results of this lookup are as follows:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/parameters14.png"><img class="aligncenter size-full wp-image-4228" title="parameters14" src="http://victoriayudin.files.wordpress.com/2012/05/parameters14.png?w=450&#038;h=397" alt="" width="450" height="397" /></a></p>
<p>Below is the code for the SQL view I used in this lookup:</p>
<pre class="brush: sql; light: true; title: ; notranslate">
CREATE VIEW view_Sales_Invoices
AS
SELECT SOPNUMBE, CUSTNAME, DOCDATE
FROM SOP10100
WHERE VOIDSTTS = 0 AND SOPTYPE = 3
UNION
SELECT SOPNUMBE, CUSTNAME, DOCDATE
FROM SOP30200
WHERE VOIDSTTS = 0 AND SOPTYPE = 3
GO
GRANT SELECT ON view_Sales_Invoices TO DYNGRP
</pre>
<p>Now that you can create any lookups you need for your reports, you can make generating reports more user friendly by making sure each parameter on your GP Reports Viewer reports has a lookup.</p>
<p>For more information about GP Reports Viewer, please take a look at the <a title="GP Reports Viewer demo video" href="http://www.GPReportsViewer.com/videos/gprv_demomp4/gprv_demomp4.html" target="_blank">GP Reports Viewer demo video</a>.</p>
<p><em>Disclaimer: GP Reports Viewer is an add-on product for Dynamics GP that is created and sold by my company, Flexible Solutions. I may be slightly biased, but I think it is the best thing since sliced bread.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-viewer/'>GP Reports Viewer</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4200&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/05/31/using-lookups-in-gp-reports-viewer-to-make-parameter-selection-more-user-friendly/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/05/magnifier.jpg?w=78" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/magnifier.jpg?w=78" medium="image">
			<media:title type="html">magnifier</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters01.png" medium="image">
			<media:title type="html">parameters01</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters02.png" medium="image">
			<media:title type="html">parameters02</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters03.png" medium="image">
			<media:title type="html">parameters03</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters04.png" medium="image">
			<media:title type="html">parameters04</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters05.png" medium="image">
			<media:title type="html">parameters05</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters06.png" medium="image">
			<media:title type="html">parameters06</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters07.png" medium="image">
			<media:title type="html">parameters07</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters08.png" medium="image">
			<media:title type="html">parameters08</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters00.png" medium="image">
			<media:title type="html">parameters00</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters09.png" medium="image">
			<media:title type="html">parameters09</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters10.png" medium="image">
			<media:title type="html">parameters10</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters11.png" medium="image">
			<media:title type="html">parameters11</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters12.png" medium="image">
			<media:title type="html">parameters12</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters13.png" medium="image">
			<media:title type="html">parameters13</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/parameters14.png" medium="image">
			<media:title type="html">parameters14</media:title>
		</media:content>
	</item>
		<item>
		<title>Concatenating strings in SQL Server</title>
		<link>http://victoriayudin.com/2012/05/21/concatenating-strings-in-sql-server/</link>
		<comments>http://victoriayudin.com/2012/05/21/concatenating-strings-in-sql-server/#comments</comments>
		<pubDate>Mon, 21 May 2012 11:29:39 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[SQL coding]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4173</guid>
		<description><![CDATA[This SQL Server tip comes from the April 2012 edition of the GP Reports Viewer newsletter. A request that we have seen many times when creating SOP invoices for Dynamics GP is to concatenate serial numbers.  So if there is an item with serial numbers, instead of showing a list with one serial number per [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4173&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>This SQL Server tip comes from the <a title="GP Reports Viewer April 2012 newsletter" href="http://archive.constantcontact.com/fs072/1102382262072/archive/1109880296172.html" target="_blank">April 2012 edition</a> of the <a title="GP Reports Viewer" href="http://www.GPReportsViewer.com/GP-Reports-Viewer" target="_blank">GP Reports Viewer</a> newsletter.</p>
<p>A request that we have seen many times when creating SOP invoices for Dynamics GP is to concatenate serial numbers.  So if there is an item with serial numbers, instead of showing a list with one serial number per line under the item, which would look a little unwieldy with long list of serial numbers:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/concatenate-01.png"><img class="aligncenter size-full wp-image-4174" title="concatenate 01" alt="" src="http://victoriayudin.files.wordpress.com/2012/05/concatenate-01.png?w=450"   /></a></p>
<p>we want to show all the serial numbers on one line, separated by a comma. Below is the SQL code that will do this in SQL 2005 and 2008:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT
p.SOPNUMBE SOP_Number, p.SOPTYPE SOP_Type, p.ITEMNMBR Item, 
p.LNITMSEQ Line_Item_Sequence,
LEFT(p.serial_numbers, len(p.serial_numbers)-1) Serial_Numbers
FROM
 (SELECT p1.SOPNUMBE, p1.SOPTYPE, p1.ITEMNMBR, p1.LNITMSEQ,
  (SELECT coalesce(rtrim(SERLTNUM) + ', ','')
   FROM SOP10201 p2
   WHERE p1.SOPNUMBE = p2.SOPNUMBE 
      and p1.SOPTYPE = p2.SOPTYPE
      and p1.ITEMNMBR = p2.ITEMNMBR 
      and p1.LNITMSEQ = p2.LNITMSEQ
   ORDER BY SOPNUMBE
   FOR XML PATH('')) serial_numbers
  FROM SOP10201 p1
 GROUP BY SOPNUMBE, SOPTYPE, ITEMNMBR, LNITMSEQ) p
</pre>
<p>Using this code, the line item and serial numbers shown above can look like this:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2012/05/concatenate-02.png"><img class="aligncenter size-full wp-image-4178" title="concatenate 02" alt="" src="http://victoriayudin.files.wordpress.com/2012/05/concatenate-02.png?w=450"   /></a></p>
<p>This code can also be changed slightly for other uses, for example, to concatenate a list of invoices paid by a check in payables. Here is the code to do that using my <a title="Victoria Yudin - Payables Apply Detail view" href="http://victoriayudin.com/2009/10/22/sql-view-for-payables-payment-apply-detail-in-dynamics-gp/" target="_blank">Payables Apply Detail view</a>:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT
p.Vendor_ID, p.Payment_Voucher_Number, 
p.Payment_Date, p.Payment_Type,
p.Payment_Document_Number, 
LEFT(p.apply_docs, len(p.apply_docs)-1) Applied_To_Docs
FROM
 (SELECT p1.Vendor_ID, p1.Payment_Voucher_Number, 
  p1.Payment_Date, p1.Payment_Type,
  p1.Payment_Document_Number,
  (SELECT coalesce(rtrim(Apply_To_Doc_Number) + ', ','')
   FROM view_Payables_Apply_detail p2
   WHERE p1.Vendor_ID = p2.Vendor_ID
     and p1.Payment_Voucher_Number = p2.Payment_Voucher_Number
   ORDER BY Payment_Voucher_Number
   FOR XML PATH('')) apply_docs
  FROM view_Payables_Apply_detail p1
  GROUP BY Vendor_ID, Payment_Voucher_Number, Payment_Date, 
    Payment_Type, Payment_Document_Number) p
</pre>
<p>For more tips like this, take a look at my <a title="SQL Server Coding Tips" href="http://victoriayudin.com/gp-reports/sql-server-coding-tips/" target="_blank">SQL Server Coding Tips</a> page. To receive new tips as soon as they are published, <a title="Sign up for the GP Reports Viewer newsletter" href="http://visitor.r20.constantcontact.com/d.jsp?llr=yzzurvcab&amp;p=oi&amp;m=1102382262072" target="_blank">sign up for the GP Reports Viewer newsletter</a>.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sql-coding/'>SQL coding</a>, <a href='http://victoriayudin.com/category/sql-server/'>SQL Server</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</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/4173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4173&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/05/21/concatenating-strings-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/05/puzzle-guys.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/puzzle-guys.jpg?w=96" medium="image">
			<media:title type="html">red white puzzle</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/concatenate-01.png" medium="image">
			<media:title type="html">concatenate 01</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/concatenate-02.png" medium="image">
			<media:title type="html">concatenate 02</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding resources</title>
		<link>http://victoriayudin.com/2012/05/12/finding-resources/</link>
		<comments>http://victoriayudin.com/2012/05/12/finding-resources/#comments</comments>
		<pubDate>Sat, 12 May 2012 09:12:58 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[FRx]]></category>
		<category><![CDATA[Management Reporter]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=4139</guid>
		<description><![CDATA[Almost on a daily basis I find myself looking for things like system requirements, end of support dates, build numbers and downloads for the various products that I work with. Even though search engines have greatly improved over the last few years, I still often struggle to find this information. While I consider myself to [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4139&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p style="text-align:justify;">Almost on a daily basis I find myself looking for things like system requirements, end of support dates, build numbers and downloads for the various products that I work with. Even though search engines have greatly improved over the last few years, I still often struggle to find this information. While I consider myself to be a Google-ninja in training, I find that it is much easier to save links to resources as I find them rather than counting on being able to find them easily next time I need them.</p>
<p style="text-align:justify;">One of the reasons I originally started this blog was to create a place to keep and organize all these resources. Since there are a lot of new versions coming out (GP, SQL, MR) I have been updating the lists on this blog and wanted to post a little refresher for all my readers on how to find these resources.</p>
<p style="text-align:justify;">I have tried to organize by product and then version where applicable. I have also tried to put cross-links and menus everywhere I can. One of the easiest ways to find resources on my blog is to click on the Resources link at the top of this blog:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2012/05/resources-menu1.png"><img class="size-full wp-image-4161 aligncenter" title="resources menu" src="http://victoriayudin.files.wordpress.com/2012/05/resources-menu1.png?w=450&#038;h=283" alt="" width="450" height="283" /></a></p>
<p style="text-align:justify;">From here, if you are looking for a particular product, you can quickly choose an option and go directly to the page with links for it:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2012/05/gp-2010-page.png"><img class="size-full wp-image-4142 aligncenter" title="GP 2010 page" src="http://victoriayudin.files.wordpress.com/2012/05/gp-2010-page.png?w=450&#038;h=508" alt="" width="450" height="508" /></a></p>
<p style="text-align:justify;">If you&#8217;re looking for more generic Dynamics GP links, choose <a title="Dynamics GP Resources" href="http://victoriayudin.com/resources/dynamics-gp-resources/" target="_blank">Dynamics GP Resources</a> from the menu. There is also a page of links for <a title="SQL Server Resources" href="http://victoriayudin.com/resources/sql-server-resources/" target="_blank">SQL Server</a> and another for <a title="MR &amp; FRx Resources" href="http://victoriayudin.com/resources/mr-frx-resources/" target="_blank">Management Reporter &amp; FRx</a>.</p>
<p style="text-align:justify;">I will keep adding new useful links as I find them and adding new build numbers as they come out, but if you have useful links that you&#8217;d like to add to these lists, please let me know. In the meantime, some new, updated and useful links:</p>
<ul type="square">
<li style="padding-bottom:5px;"><a title="Dynamics GP support lifecycle" href="http://victoriayudin.com/2008/10/08/when-does-my-gp-products-support-end/" target="_self">Dynamics GP support lifecycle</a></li>
<li style="padding-bottom:5px;"><a title="GP 2013 Resources" href="http://victoriayudin.com/resources/gp-2013-resources/" target="_blank">Dynamics GP 2013 links</a></li>
<li style="padding-bottom:5px;"><a title="SQL Server versions" href="http://victoriayudin.com/2008/10/05/what-version-of-sql-server-am-i-running/" target="_self">SQL Server service packs and versions</a></li>
<li style="padding-bottom:5px;"><a title="SQL Server support lifecycle" href="http://victoriayudin.com/2008/10/29/when-does-my-sql-server-support-end/" target="_self">SQL Server support lifecycle</a></li>
<li style="padding-bottom:5px;"><a title="SQL 2012 Edition comparison" href="http://msdn.microsoft.com/en-us/library/cc645993.aspx" target="_blank">SQL 2012 edition comparison</a></li>
<li style="padding-bottom:5px;"><a title="SQL 2008 Hardware and Software Requirements" href="http://msdn.microsoft.com/en-us/library/ms143506.aspx" target="_blank">SQL 2012 hardware and software requirements</a></li>
<li style="padding-bottom:5px;"><a title="Microsoft Management Reporter 2012 Downloads" href="https://mbs.microsoft.com/customersource/downloads/servicepacks/MROverview.htm" target="_blank">Management Reporter 2012 downloads</a></li>
<li style="padding-bottom:5px;"><a title="Microsoft Management Reporter 2012: Installation, Migration, and Configuration Guides " href="http://www.microsoft.com/en-us/download/details.aspx?id=5916" target="_blank">Management Reporter 2012 installation, migration and configuration guides</a></li>
<li><a title="Management Reporter versions" href="http://victoriayudin.com/2011/07/04/management-reporter-versions/" target="_blank">Management Reporter versions</a></li>
</ul>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/frx/'>FRx</a>, <a href='http://victoriayudin.com/category/management-reporter/'>Management Reporter</a>, <a href='http://victoriayudin.com/category/sql-server/'>SQL Server</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/frx/'>FRx</a>, <a href='http://victoriayudin.com/tag/management-reporter/'>Management Reporter</a>, <a href='http://victoriayudin.com/tag/sql-server/'>SQL Server</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/4139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/4139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&#038;blog=4884873&#038;post=4139&#038;subd=victoriayudin&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/05/12/finding-resources/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/05/binocularsguy.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/binocularsguy.jpg?w=96" medium="image">
			<media:title type="html">binoculars</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>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/resources-menu1.png" medium="image">
			<media:title type="html">resources menu</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2012/05/gp-2010-page.png" medium="image">
			<media:title type="html">GP 2010 page</media:title>
		</media:content>
	</item>
	</channel>
</rss>
