<?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>Mon, 15 Feb 2010 13:29:58 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='victoriayudin.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3cb782884f1419245af3e8375b2a1bff?s=96&#038;d=http://s2.wp.com/i/buttonw-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 with AR apply detail</title>
		<link>http://victoriayudin.com/2010/02/15/sql-view-with-ar-apply-detail/</link>
		<comments>http://victoriayudin.com/2010/02/15/sql-view-with-ar-apply-detail/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 13:24:52 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

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

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

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

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

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

	UNION 

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

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

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

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

	FROM RM20201 tO2 

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

	UNION 

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

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

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

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

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

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

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

UNION ALL

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

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

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

		<guid isPermaLink="false">http://victoriayudin.com/?p=2197</guid>
		<description><![CDATA[I have joined the ranks of many fellow Dynamics GP MVP&#8217;s and experts and got an article published on MSDynamicsWorld.com.  It&#8217;s called The &#8220;Right&#8221; Way to Maximize the Growing Number of Online Resources for Microsoft Dynamics GP and talks  about how to get the most out of the many fabulous online resources available now for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2197&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I have joined the ranks of many fellow Dynamics GP MVP&#8217;s and experts and got an article published on <a title="MSDynamicsWorld.com" href="http://msdynamicsworld.com/" target="_blank">MSDynamicsWorld.com</a>.  It&#8217;s called <a title="The &quot;Right&quot; Way to Maximize the Growing Number of Online Resources for Microsoft Dynamics GP" href="http://msdynamicsworld.com/story/accounting/right-way-maximize-growing-number-online-resources-microsoft-dynamics-gp" target="_blank">The &#8220;Right&#8221; Way to Maximize the Growing Number of Online Resources for Microsoft Dynamics GP</a> and talks  about how to get the most out of the many fabulous online resources available now for Dynamics GP.  To read the entire article you&#8217;ll need to create a free login, but if you&#8217;re working with Dynamics GP, you should already be reading <a title="MSDynamicsWorld.com" href="http://msdynamicsworld.com/" target="_blank">MSDynamicsWorld.com</a>.  For a list of the online resources I am referring to, check out the links along the right hand side of this blog.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/msdynamicsworld/'>MSDynamicsWorld</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2197&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2010/02/02/maximizing-dynamics-gp-online-resources/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Selective highlighting in Crystal Reports</title>
		<link>http://victoriayudin.com/2010/01/15/selective-highlighting-in-crystal-reports/</link>
		<comments>http://victoriayudin.com/2010/01/15/selective-highlighting-in-crystal-reports/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 14:06:11 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[GP Reports]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2150</guid>
		<description><![CDATA[The Crystal Reports tip from Flexible Solutions GP Reports November newsletter shows how to selectively highlight values in a list without having to write a formula. 
Let&#8217;s say you have a customer list with balances:

Now what if you wanted to make all customers with balances of $50,000 or higher more visible?  Here are the steps to do this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2150&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The Crystal Reports tip from <a title="Flexible Solutions GP Reports" href="http://www.flex-solutions.com/gpreports.html" target="_blank">Flexible Solutions GP Reports</a> <a title="Flexible Solutions November 2009 GP Reports Newsletter" href="http://www.flex-solutions.com/newsletters/200911.html" target="_blank">November newsletter</a> shows how to selectively highlight values in a list without having to write a formula. </p>
<p style="text-align:justify;">Let&#8217;s say you have a customer list with balances:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2010/01/highlight02.png"><img class="aligncenter size-full wp-image-2154" title="highlight02" src="http://victoriayudin.files.wordpress.com/2010/01/highlight02.png?w=450&#038;h=298" alt="" width="450" height="298" /></a></p>
<p style="text-align:justify;">Now what if you wanted to make all customers with balances of $50,000 or higher more visible?  Here are the steps to do this using the Highlighting Expert in Crystal Reports (click on any of the screen shots to enlarge them):</p>
<ul>
<li style="text-align:justify;">Right click on the field you want to change the display for and choose Highlighting Expert (or click on the field and go to <em>Format &gt; Highlighting Expert</em>).</li>
<li style="text-align:justify;">Click <em>New</em> at the bottom of the <strong>Item list</strong>.</li>
<li style="text-align:justify;">Under <strong>Item editor</strong> select the conditions to check for and the color, font, background or border you want to display. Below is an example to simply highlight any amount $50,000 or greater in yellow:<a href="http://victoriayudin.files.wordpress.com/2010/01/highlight03.png"><img class="aligncenter size-full wp-image-2155" title="highlight03" src="http://victoriayudin.files.wordpress.com/2010/01/highlight03.png?w=450&#038;h=296" alt="" width="450" height="296" /></a><br />
Or to make the amounts show in red, bold and italics, it would look like this: <br />
<a href="http://victoriayudin.files.wordpress.com/2010/01/highlight05.png"><img class="alignleft size-full wp-image-2157" title="highlight05" src="http://victoriayudin.files.wordpress.com/2010/01/highlight05.png?w=450&#038;h=296" alt="" width="450" height="296" /></a><br />
Note that I set the Background to Default Color, so that my alternate line shading is preserved. (Check out my <a title="Alternating shading for lines in Crystal Reports" href="http://victoriayudin.com/2009/03/31/alternating-shading-for-lines-in-crystal-reports/" target="_self">Alternating shading for lines in Crystal Reports</a> to see how to set up alternate shading.)</li>
<li style="text-align:justify;">Click <em>OK</em> to close the Highlighting Expert window and your report will now look like this:  <a href="http://victoriayudin.files.wordpress.com/2010/01/highlight06.png"><img class="aligncenter size-full wp-image-2164" title="highlight06" src="http://victoriayudin.files.wordpress.com/2010/01/highlight06.png?w=450&#038;h=297" alt="" width="450" height="297" /></a></li>
<p style="text-align:justify;">If you want to highlight the entire line instead of just the amount, you can repeat the steps above for each field on your line, the only change would be under the <strong>Item editor </strong>section, where you would be testing the condition for your balance field, here is what that looks like:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2010/01/highlight07.png"><img class="aligncenter size-full wp-image-2167" title="highlight07" src="http://victoriayudin.files.wordpress.com/2010/01/highlight07.png?w=450&#038;h=296" alt="" width="450" height="296" /></a></p>
<p>And here is the final result, after adding the highlighting to each detail field:</p>
<p><a href="http://victoriayudin.files.wordpress.com/2010/01/highlight08.png"><img class="aligncenter size-full wp-image-2168" title="highlight08" src="http://victoriayudin.files.wordpress.com/2010/01/highlight08.png?w=450&#038;h=298" alt="" width="450" height="298" /></a></p>
<p>For more tips like this, <a title="sign up for the GP Reports Newsletter" href="http://visitor.constantcontact.com/d.jsp?m=1102382262072&amp;p=oi" target="_blank">sign up to receive GP Reports newsletters via e-mail</a>. Or check out the <a title="Flexible Solutions News &amp; Events" href="http://www.flex-solutions.com/news.html" target="_blank">newsletter archives on the Flexible Solutions website</a>.</ul>
<br />Posted in Crystal Reports Tagged: Crystal Reports, GP Reports <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2150/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2150/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2150/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2150&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2010/01/15/selective-highlighting-in-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/highlight02.png" medium="image">
			<media:title type="html">highlight02</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/highlight03.png" medium="image">
			<media:title type="html">highlight03</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/highlight05.png" medium="image">
			<media:title type="html">highlight05</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/highlight06.png" medium="image">
			<media:title type="html">highlight06</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/highlight07.png" medium="image">
			<media:title type="html">highlight07</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/highlight08.png" medium="image">
			<media:title type="html">highlight08</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy New Year</title>
		<link>http://victoriayudin.com/2010/01/02/happy-new-year/</link>
		<comments>http://victoriayudin.com/2010/01/02/happy-new-year/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 15:23:25 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft MVP]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2122</guid>
		<description><![CDATA[
I found out yesterday that I have been awarded with the Microsoft® Most Valuable Professional Award for Dynamics GP for another year. I first became a Dynamics GP MVP in 2005, so this will be my 6th year to receive the award and I could not have done it without the support of all of you reading this! 
I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2122&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2010/01/mvplogo1.gif"><img class="alignleft size-full wp-image-2125" title="MVPLogo" src="http://victoriayudin.files.wordpress.com/2010/01/mvplogo1.gif?w=115&#038;h=180" alt="" width="115" height="180" /></a></p>
<p style="text-align:justify;">I found out yesterday that I have been awarded with the Microsoft® Most Valuable Professional Award for Dynamics GP for another year. I first became a Dynamics GP MVP in 2005, so this will be my 6th year to receive the award and I could not have done it without the support of all of you reading this! </p>
<p style="text-align:justify;">I am honored to be recognized in this program, which has existed for 14 years and recognizes independent experts who actively share their knowledge with others in various technical communities. Take a look at the <a title="current list of Dynamics GP MVP's" href="https://mvp.support.microsoft.com/communities/mvp.aspx?product=1&amp;competency=Dynamics+GP" target="_blank">current list of Dynamics GP MVP&#8217;s</a> to find out more about all of us.</p>
<p style="text-align:justify;">Here is wishing a happy, healthy and prosperous 2010 to everyone!</p>
<br />Posted in Dynamics GP, Microsoft Tagged: Microsoft MVP <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2122&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2010/01/02/happy-new-year/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2010/01/mvplogo1.gif" medium="image">
			<media:title type="html">MVPLogo</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for inventory items and dates</title>
		<link>http://victoriayudin.com/2009/12/04/sql-view-for-inventory-items-and-dates/</link>
		<comments>http://victoriayudin.com/2009/12/04/sql-view-for-inventory-items-and-dates/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 12:09:02 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Inventory]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2079</guid>
		<description><![CDATA[This view is a little bit of a twist on my previous SQL view for inventory quantities on hand. The results of this view will give you a list of your Microsoft Dynamics GP inventory items, current quantities and the last sales and purchase dates along with the vendor.
For other SQL views on Dynamics GP data, please visit my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2079&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">This view is a little bit of a twist on my previous <a title="SQL view for inventory quantities on hand" href="http://victoriayudin.com/2009/06/18/sql-view-for-inventory-quantities-on-hand/" target="_blank">SQL view for inventory quantities on hand</a>. The results of this view will give you a list of your Microsoft Dynamics GP inventory items, current quantities and the last sales and purchase dates along with the vendor.</p>
<p style="text-align:justify;">For other SQL views on Dynamics GP data, please visit my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a>.</p>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p><code>CREATE VIEW view_Inventory_with_Dates<br />
AS</code></p>
<p><code><span style="color:#999999;">/********************************************************************<br />
view_Inventory_with_Dates<br />
Created on Dec 4, 2009 by Victoria Yudin - Flexible Solutions, Inc.<br />
For updates see http://victoriayudin.com/gp-reports/<br />
All inventory items with quantity on hand and last sale<br />
     and receipt dates<br />
Functional amounts only<br />
Tables used:<br />
I - IV00101 - Item Master<br />
S - IV30300 - Transaction Amounts History with DOCTYPE = 6 (sales)<br />
Q - IV00102 - Item Quantity Master<br />
U - IV40201 - U of M Schedule Header<br />
Updated Dec 22, 2009 to add WHERE clause at end</span></code><span style="color:#999999;"><br />
********************************************************************/</span></p>
<p><code>SELECT I.ITEMNMBR Item_Number,<br />
       I.ITEMDESC Item_Description,<br />
       Q.QTYONHND Quantity_on_Hand,<br />
       U.BASEUOFM U_of_M,<br />
       CASE I.ITEMTYPE<br />
          WHEN 1 THEN 'Sales Inventory'<br />
          WHEN 2 THEN 'Discontinued'<br />
          WHEN 3 THEN 'Kit'<br />
          WHEN 4 THEN 'Misc Charges'<br />
          WHEN 5 THEN 'Services'<br />
          WHEN 6 THEN 'Flat Fee'<br />
          END Item_Type,<br />
       I.CURRCOST Current_Cost,<br />
       I.ITMCLSCD Item_Class,<br />
       coalesce(S.LastSale,'1/1/1900') Last_Sale_Date,<br />
       coalesce(Q.LSRCPTDT,'1/1/1900') Last_Receipt_Date,<br />
       coalesce(Q.LSORDVND,'') Last_Vendor<br />
FROM IV00101 I<br />
INNER JOIN<br />
     (SELECT ITEMNMBR, MAX(DOCDATE) LastSale<br />
      FROM IV30300<br />
      WHERE DOCTYPE = 6<br />
      GROUP BY ITEMNMBR) S<br />
     ON I.ITEMNMBR = S.ITEMNMBR<br />
INNER JOIN<br />
     IV00102 Q<br />
     ON I.ITEMNMBR = Q.ITEMNMBR<br />
     AND RCRDTYPE = 1<br />
INNER JOIN<br />
     IV40201 U<br />
     ON U.UOMSCHDL = I.UOMSCHDL<br />
WHERE Q.QTYONHND &lt;&gt; 0</code></p>
<p><code>/<span style="color:#008000;">/** the following will grant permissions to this view to DYNGRP, leave this section off if you do not want to grant permissions **/<br />
</span>GO<br />
GRANT SELECT ON view_Inventory_with_Dates TO DYNGRP</code></p>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Posted in GP Reports, GP SQL scripts Tagged: Dynamics GP, GP Reports, Inventory, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2079/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2079/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2079/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2079/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2079/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2079/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2079&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/12/04/sql-view-for-inventory-items-and-dates/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Running Totals in Crystal Reports</title>
		<link>http://victoriayudin.com/2009/11/25/running-totals-in-crystal-reports/</link>
		<comments>http://victoriayudin.com/2009/11/25/running-totals-in-crystal-reports/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 10:52:25 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[GP Reports]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2033</guid>
		<description><![CDATA[Here is a tip from the Flexible Solutions GP Reports October newsletter on how to create a running total in Crystal Reports. 
Running totals are a great way to show totals that have a different calculation than a subtotal without having to write additional formulas. 
Let&#8217;s look at an example: You have a list of unapplied vendor transactions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2033&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2009/11/runningguy.jpg"><img class="alignleft size-full wp-image-2034" title="Running Totals" src="http://victoriayudin.files.wordpress.com/2009/11/runningguy.jpg?w=117&#038;h=116" alt="" width="117" height="116" /></a>Here is a tip from the <a title="Flexible Solutions GP Reports" href="http://www.flex-solutions.com/gpreports.html" target="_blank">Flexible Solutions GP Reports</a> <a title="Flexible Solutions October 2009 GP Reports Newsletter" href="http://www.flex-solutions.com/newsletters/200910.html" target="_blank">October newsletter</a> on how to create a running total in Crystal Reports. </p>
<p style="text-align:justify;">Running totals are a great way to show totals that have a different calculation than a subtotal without having to write additional formulas. </p>
<p style="text-align:justify;">Let&#8217;s look at an example: You have a list of unapplied vendor transactions grouped and subtotaled by vendor class. Below is an example of what this report looks like right now:</p>
<p style="text-align:justify;"> </p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2009/11/running-totals-013.png"><img class="aligncenter size-full wp-image-2049" title="running totals 01" src="http://victoriayudin.files.wordpress.com/2009/11/running-totals-013.png?w=450&#038;h=576" alt="" width="450" height="576" /></a> </p>
<p style="text-align:justify;">For each vendor class you already have a total due, but you also want to show the total credit limit so that you can compare the totals for each class. The credit limit is stored at the vendor level and because your report has more than one transaction per vendor, you cannot simply subtotal the credit limits for all the detail lines. Here are the steps to create a running total for the credit limit by vendor class:</p>
<ol>
<li>
<div style="text-align:justify;">Add the Credit Limit field somewhere in your detail section</div>
</li>
<li>
<div style="text-align:justify;">Right click on the Credit Limit field and choose Insert &gt; Running Total: <a href="http://victoriayudin.files.wordpress.com/2009/11/running-totals-02.png"><img class="aligncenter size-full wp-image-2052" title="running totals 02" src="http://victoriayudin.files.wordpress.com/2009/11/running-totals-02.png?w=363&#038;h=465" alt="" width="363" height="465" /></a></div>
</li>
<li>
<div style="text-align:justify;">Choose a name for the Running Total</div>
</li>
<li>
<div style="text-align:justify;">Change the Evaluate setting to &#8216;On change of field&#8217; and enter the vendor ID field (in this case PM00200.VENDORID)</div>
</li>
<li>
<div style="text-align:justify;">Change the Reset setting to &#8216;On change of group&#8217; and choose the vendor class group (Group #1: PM00200.VNDCLSID in this case):<a href="http://victoriayudin.files.wordpress.com/2009/11/running-totals-03.png"><img class="aligncenter size-full wp-image-2053" title="running totals 03" src="http://victoriayudin.files.wordpress.com/2009/11/running-totals-03.png?w=449&#038;h=326" alt="" width="449" height="326" /></a></div>
</li>
<li>
<div style="text-align:justify;">Click OK to close the Create Running Total Field window</div>
</li>
<li>
<div style="text-align:justify;">Go to Report &gt; Record Sort Expert  and make sure that your details are sorted by the vendor class group, then by Vendor ID:<a href="http://victoriayudin.files.wordpress.com/2009/11/running-totals-04.png"><img class="aligncenter size-full wp-image-2054" title="running totals 04" src="http://victoriayudin.files.wordpress.com/2009/11/running-totals-04.png?w=450&#038;h=276" alt="" width="450" height="276" /></a></div>
</li>
<li>
<div style="text-align:justify;">Click OK to close the Record Sort Expert window</div>
</li>
<li>
<div style="text-align:justify;">Optionally, hide the Credit Limit field on the detail section by right clicking on it, choosing Format Field and checking Suppress on the Common tab:<a href="http://victoriayudin.files.wordpress.com/2009/11/running-totals-05.png"><img class="size-full wp-image-2059 aligncenter" title="running totals 05" src="http://victoriayudin.files.wordpress.com/2009/11/running-totals-05.png?w=450&#038;h=198" alt="" width="450" height="198" /></a></div>
</li>
</ol>
<p style="text-align:justify;">Your report now has the credit limit totals per vendor class:</p>
<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2009/11/running-totals-06.png"><img class="aligncenter size-full wp-image-2060" title="running totals 06" src="http://victoriayudin.files.wordpress.com/2009/11/running-totals-06.png?w=450&#038;h=596" alt="" width="450" height="596" /></a></p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;">For more tips like this, <a title="sign up for the GP Reports Newsletter" href="http://visitor.constantcontact.com/d.jsp?m=1102382262072&amp;p=oi" target="_blank">sign up to receive GP Reports newsletters via e-mail</a>. Or check out the <a title="Flexible Solutions News &amp; Events" href="http://www.flex-solutions.com/news.html" target="_blank">newsletter archives on the Flexible Solutions website</a>.</p>
<p style="text-align:justify;"> </p>
<br />Posted in Crystal Reports Tagged: Crystal Reports, GP Reports <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2033/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2033/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2033/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2033/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2033/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2033/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2033/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2033/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2033/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2033/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2033&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/11/25/running-totals-in-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/runningguy.jpg" medium="image">
			<media:title type="html">Running Totals</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/running-totals-013.png" medium="image">
			<media:title type="html">running totals 01</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/running-totals-02.png" medium="image">
			<media:title type="html">running totals 02</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/running-totals-03.png" medium="image">
			<media:title type="html">running totals 03</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/running-totals-04.png" medium="image">
			<media:title type="html">running totals 04</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/running-totals-05.png" medium="image">
			<media:title type="html">running totals 05</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/11/running-totals-06.png" medium="image">
			<media:title type="html">running totals 06</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for Payables payment apply detail in Dynamics GP</title>
		<link>http://victoriayudin.com/2009/10/22/sql-view-for-payables-payment-apply-detail-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2009/10/22/sql-view-for-payables-payment-apply-detail-in-dynamics-gp/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 19:37:21 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2014</guid>
		<description><![CDATA[I have published SQL views that return all posted Payables payments in Dynamics GP and Payables apply information to help identify what payments (or credits) paid off an invoice, however another frequent request is for a list of payments and their apply information.  Below is a view that returns a list of all posted payments with details on how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2014&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I have published SQL views that return <a title="SQL view - Payables Posted Payments" href="http://victoriayudin.com/2009/09/11/sql-view-for-all-posted-payables-payments-in-dynamics-gp/" target="_blank">all posted Payables payments</a> in Dynamics GP and <a title="SQL view - Payables Apply Information" href="http://victoriayudin.com/2008/10/22/sql-view-ap-apply-in-gp/" target="_blank">Payables apply information</a> to help identify what payments (or credits) paid off an invoice, however another frequent request is for a list of payments and their apply information.  Below is a view that returns a list of all posted payments with details on how they were applied.  Any payment that was applied to more than one transaction will show up as multiple lines.</p>
<p style="text-align:justify;">For other SQL views on GP data, please visit my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a>.</p>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<pre>CREATE VIEW view_Payables_Apply_Detail
AS

<span style="color:#888888;">/*******************************************************************
view_Payables_Apply_Detail
Created on Oct 22 2009 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
Does not take Multicurrency into account.
Will return multiple lines for payments that were applied to
     more than one transaction.
Tables Used:
     PM20000 – Open/Posted Transactions
     PM30200 – Historical/Paid Transactions
     PM00200 – Vendor Master
     PM10200 – Apply To Work/Open
     PM30300 – Apply To History
*******************************************************************/</span>

SELECT	P.VENDORID Vendor_ID,
	V.VENDNAME Vendor_Name,
	V.VNDCHKNM Vendor_Check_Name,
	CASE P.PYENTTYP
	     WHEN 0 THEN 'Check'
	     WHEN 1 THEN 'Cash'
	     WHEN 2 THEN 'Credit Card'
	     WHEN 3 THEN 'EFT'
	     ELSE 'Other'
	     END Payment_Type,
	CASE
	     WHEN P.PYENTTYP in (0,1,3) THEN P.CHEKBKID
	     ELSE ''
	     END Checkbook_ID,
	CASE P.PYENTTYP
	     WHEN 2 THEN P.CARDNAME
	     ELSE ''
	     END Credit_Card_ID,
	P.DOCDATE Payment_Date,
	P.PSTGDATE Payment_GL_Date,
	P.VCHRNMBR Payment_Voucher_Number,
	P.DOCNUMBR Payment_Document_Number,
	P.DOCAMNT Payment_Functional_Amount,
	coalesce(PA.APTVCHNM,'') Apply_To_Voucher_Number,
	CASE PA.APTODCTY
	     WHEN 1 THEN 'Invoice'
              WHEN 2 THEN 'Finance Charge'
              WHEN 3 THEN 'Misc Charge'
              ELSE ''
              END Apply_To_Doc_Type,
	coalesce(PA.APTODCNM,'') Apply_To_Doc_Number,
	coalesce(PA.APTODCDT,'1/1/1900') Apply_To_Doc_Date,
	coalesce(PA.ApplyToGLPostDate,'1/1/1900') Apply_To_GL_Date,
	coalesce(PA.APPLDAMT,0) Applied_Amount

FROM
     (SELECT VENDORID, DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR,
	    DOCAMNT, VOIDED, TRXSORCE, CHEKBKID, PSTGDATE,
	    PYENTTYP, CARDNAME
      FROM PM30200
          UNION ALL
      SELECT VENDORID, DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR,
	    DOCAMNT, VOIDED, TRXSORCE, CHEKBKID, PSTGDATE,
	    PYENTTYP, CARDNAME
      FROM PM20000) P

INNER JOIN
	PM00200 V ON P.VENDORID = V.VENDORID

LEFT OUTER JOIN
     (SELECT VENDORID, VCHRNMBR, DOCTYPE, APTVCHNM, APTODCTY,
             APTODCNM, APTODCDT, ApplyToGLPostDate, APPLDAMT
      FROM PM10200
          UNION
      SELECT VENDORID, VCHRNMBR, DOCTYPE, APTVCHNM, APTODCTY,
	    APTODCNM, APTODCDT, ApplyToGLPostDate, APPLDAMT
      FROM PM30300) PA
      ON P.VCHRNMBR = PA.VCHRNMBR
           AND P.VENDORID = PA.VENDORID
           AND P.DOCTYPE = PA.DOCTYPE

WHERE P.DOCTYPE = 6 AND P.VOIDED = 0

<span style="color:#008000;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>GO
GRANT SELECT ON view_Payables_Apply_Detail TO DYNGRP</pre>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Posted in GP Reports, GP SQL scripts Tagged: GP Reports, GP SQL view, Payables, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2014/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2014/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2014/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2014&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/10/22/sql-view-for-payables-payment-apply-detail-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Dynamics Salary Survey 2009</title>
		<link>http://victoriayudin.com/2009/10/13/microsoft-dynamics-salary-survey-2009/</link>
		<comments>http://victoriayudin.com/2009/10/13/microsoft-dynamics-salary-survey-2009/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 14:40:20 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=2003</guid>
		<description><![CDATA[Nigel Frank International is conducting the 2009 annual survey of Microsoft Dynamics salaries worldwide. Salaries are frequently a topic of conversation for many of us, whether we are hiring or looking to be hired, so I encourage everyone to participate in this survey. Better hurry, though, the survey will be closing middle of next week.
As a thank you all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2003&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2009/10/moneyman.jpg"><img class="alignleft size-full wp-image-2008" title="dollar chrome symbol" src="http://victoriayudin.files.wordpress.com/2009/10/moneyman.jpg?w=125&#038;h=125" alt="dollar chrome symbol" width="125" height="125" /></a><a title="Nigel Frank International" href="http://www.nigelfrank.com/" target="_blank">Nigel Frank International</a> is conducting the 2009 annual survey of Microsoft Dynamics salaries worldwide. Salaries are frequently a topic of conversation for many of us, whether we are hiring or looking to be hired, so I encourage everyone to <a title="2009 Microsoft Dynamics Salary Survey" href="http://www.surveymonkey.com/s.aspx?sm=c2a4SQ6RKL_2fEUL9wtwNJNw_3d_3d" target="_blank">participate in this survey</a>. Better hurry, though, the survey will be closing middle of next week.</p>
<p style="text-align:justify;">As a thank you all participants will receive a PDF report of the results once they have been compiled. This will give you an insight into the salaries, opinions and demographics of your Microsoft Dynamics counterparts worldwide.</p>
<br />Posted in Miscellaneous Tagged: Miscellaneous <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/2003/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/2003/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/2003/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/2003/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/2003/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/2003/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/2003/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/2003/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/2003/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/2003/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=2003&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/10/13/microsoft-dynamics-salary-survey-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/10/moneyman.jpg" medium="image">
			<media:title type="html">dollar chrome symbol</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for all posted Payables transactions in Dynamics GP</title>
		<link>http://victoriayudin.com/2009/10/12/sql-view-for-all-posted-payables-transactions-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2009/10/12/sql-view-for-all-posted-payables-transactions-in-dynamics-gp/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 08:59:19 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1993</guid>
		<description><![CDATA[Payables Transactions have been a popular request for reports lately. Below is a view that lists all posted Payables transactions in functional currency. Voided transactions are not excluded.
For other SQL views on Dynamics GP data, please visit my GP Reports page.
~~~~~
CREATE VIEW view_PM_Transactions
AS

/***************************************************************
view_PM_Transactions
Created Oct 12 2009 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
Shows all posted [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1993&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Payables Transactions have been a popular request for reports lately. Below is a view that lists all posted Payables transactions in functional currency. Voided transactions are not excluded.</p>
<p style="text-align:justify;">For other SQL views on Dynamics GP data, please visit my <a title="GP Reports page" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a>.</p>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<pre>CREATE VIEW view_PM_Transactions
AS

<span style="color:#999999;">/***************************************************************
view_PM_Transactions
Created Oct 12 2009 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
Shows all posted Payables transactions with Functional amounts.
Does not exclude voided transactions.
Tables used:
	PM00200 - Vendor Master
	PM20000 - Open/Posted Transactions
	PM30200 - Historical/Paid Transactions
***************************************************************/</span>

SELECT	P.VENDORID Vendor_ID,
	V.VENDNAME Vendor_Name,
	P.VCHRNMBR Voucher,
	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.DOCDATE Document_Date,
	P.PSTGDATE GL_Posting_Date,
	P.DUEDATE Due_Date,
	P.DOCNUMBR Document_Number,
	P.DOCAMNT Document_Amount,
	P.CURTRXAM Unapplied_Amount,
	P.TRXDSCRN [Description],
	CASE P.VOIDED
	     WHEN 0 THEN 'No'
	     WHEN 1 THEN 'Yes'
	     END Voided

FROM	(SELECT VENDORID, VCHRNMBR, DOCTYPE, DOCDATE, PSTGDATE,
	 DUEDATE, DOCNUMBR, DOCAMNT, CURTRXAM, TRXDSCRN, VOIDED
	 FROM PM20000
	UNION ALL
	 SELECT VENDORID, VCHRNMBR, DOCTYPE, DOCDATE, PSTGDATE,
	 DUEDATE, DOCNUMBR, DOCAMNT, CURTRXAM, TRXDSCRN, VOIDED
	 FROM PM30200) P

     INNER JOIN
	PM00200 V
	ON V.VENDORID = P.VENDORID

<span style="color:#008000;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>GO
GRANT SELECT ON view_PM_Transactions TO DYNGRP</pre>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Posted in GP Reports, GP SQL scripts Tagged: GP Reports, GP SQL view, Payables, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1993/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1993&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/10/12/sql-view-for-all-posted-payables-transactions-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>History of Dynamics GP</title>
		<link>http://victoriayudin.com/2009/09/30/history-of-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2009/09/30/history-of-dynamics-gp/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 11:25:28 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Microsoft MVP]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1984</guid>
		<description><![CDATA[Do you still call it Great Plains because you&#8217;re so used to it? Or is Dynamics GP the only name you&#8217;ve ever used? In either case, you may find looking over the timeline of Dynamics GP that DynamicsWorld UK put together very educational and interesting. I have been working with GP as a customer since the DOS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1984&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Do you still call it Great Plains because you&#8217;re so used to it? Or is Dynamics GP the only name you&#8217;ve ever used? In either case, you may find looking over the <a title="Dyanmics GP timeline" href="http://www.dynamicsworld.co.uk/Dynamics-GP-Timeline.php" target="_blank">timeline of Dynamics GP</a> that <a title="DynamicsWorld UK" href="http://www.dynamicsworld.co.uk/index.php" target="_blank">DynamicsWorld UK</a> put together very educational and interesting. I have been working with GP as a customer since the DOS days and as a consultant for over 10 years, but I still learned a lot from reading this.</p>
<p style="text-align:left;">DynamicsWorld UK also has <a title="Dyanmics timelines" href="http://www.dynamicsworld.co.uk/Timelines.php" target="_blank">timelines of the other Dynamics products</a> as well as <a title="MVP Profiles" href="http://www.dynamicsworld.co.uk/MVP-Profiles.php" target="_blank">weekly interviews with Dynamics MVPs</a>. I even managed to sneak an interview in there on September 19th. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />Posted in Dynamics GP Tagged: Dynamics GP, Microsoft MVP <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1984/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1984/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1984/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1984/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1984/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1984/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1984/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1984/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1984/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1984/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1984&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/09/30/history-of-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for all posted Payables payments in Dynamics GP</title>
		<link>http://victoriayudin.com/2009/09/11/sql-view-for-all-posted-payables-payments-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2009/09/11/sql-view-for-all-posted-payables-payments-in-dynamics-gp/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 09:21:11 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1968</guid>
		<description><![CDATA[This view is in response to more than a few inquiries I have had for a vendor check report. This view brings in all payments, not just checks, so if only checks are needed, add the following to the end of the WHERE clause:
AND P.PYENTTYP = 0
For other SQL code, please visit my GP Reports [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1968&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">This view is in response to more than a few inquiries I have had for a vendor check report. This view brings in all payments, not just checks, so if only checks are needed, add the following to the end of the WHERE clause:</p>
<pre style="padding-left:60px;">AND P.PYENTTYP = 0</pre>
<p style="text-align:justify;">For other SQL code, please visit my <a title="GP Reports page" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a>.</p>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<pre>CREATE VIEW view_Payables_Payments
AS

<span style="color:#999999;">/****************************************************************
view_Payables_Payments
Created Sep 11, 2009 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
Shows all posted Payables payments in Functional Currency only
Tables used:
     PM00200 - Vendor Master
     PM20000 – Open Transactions
     PM30200 - Historical Transactions
****************************************************************/</span>

SELECT	P.VENDORID Vendor_ID,
	V.VENDNAME Vendor_Name,
	V.VNDCHKNM Vendor_Check_Name,
	CASE P.PYENTTYP
	     WHEN 0 THEN 'Check'
	     WHEN 1 THEN 'Cash'
	     WHEN 2 THEN 'Credit Card'
	     WHEN 3 THEN 'EFT'
	     ELSE 'Other'
	     END Payment_Type,
	CASE
	     WHEN P.PYENTTYP in (0,1,3) THEN P.CHEKBKID
	     ELSE ''
	     END Checkbook_ID,
	CASE P.PYENTTYP
	     WHEN 2 THEN P.CARDNAME
	     ELSE ''
	     END Credit_Card_ID,
	P.DOCDATE Document_Date,
	P.PSTGDATE GL_Posting_Date,
	P.VCHRNMBR Voucher_Number,
	P.DOCNUMBR Document_Number,
	P.DOCAMNT Functional_Amount,
	P.TRXSORCE Transaction_Source

FROM
     (SELECT VENDORID, DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR,
	    DOCAMNT, VOIDED, TRXSORCE, CHEKBKID, PSTGDATE,
	    PYENTTYP, CARDNAME
      FROM PM30200
          UNION ALL
      SELECT VENDORID, DOCTYPE, DOCDATE, VCHRNMBR, DOCNUMBR,
	    DOCAMNT, VOIDED, TRXSORCE, CHEKBKID, PSTGDATE,
	    PYENTTYP, CARDNAME
      FROM PM20000) P

INNER JOIN
	PM00200 V ON P.VENDORID = V.VENDORID

WHERE P.DOCTYPE = 6 AND P.VOIDED = 0 

<span style="color:#008000;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>GO
GRANT SELECT ON view_Payables_Payments TO DYNGRP</pre>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Posted in GP Reports, GP SQL scripts Tagged: GP Reports, GP SQL view, Payables, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1968/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1968/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1968/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1968&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/09/11/sql-view-for-all-posted-payables-payments-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>What&#8217;s with all these dates?</title>
		<link>http://victoriayudin.com/2009/09/08/whats-with-all-these-dates/</link>
		<comments>http://victoriayudin.com/2009/09/08/whats-with-all-these-dates/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:59:20 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Bank Reconciliation]]></category>
		<category><![CDATA[General Ledger]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[Purchase Order Processing]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[Sales Order Processing]]></category>

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

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

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

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

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

		<guid isPermaLink="false">http://victoriayudin.com/?p=1907</guid>
		<description><![CDATA[Service Pack 4 for Dynamics GP 10.0 has been released. There is quite a long list of fixes, you can see them all in the Service Pack 4 Installation Guide.
Starting with GP 10.0 any service pack or hotfix now requires an update of modified forms and reports using GP Utilities. Detailed steps for doing this are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1907&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a title="Service Pack 4 for Dynamics GP 10" href="https://mbs.microsoft.com/customersource/downloads/servicepacks/MDGP10_ServicePack4.htm" target="_blank">Service Pack 4 for Dynamics GP 10.0</a> has been released. There is quite a long list of fixes, you can see them all in the <a title="GP 10.0 SP 4 Installation Guide" href="https://mbs.microsoft.com/fileexchange/?fileID=e08c38cc-7f71-4eba-afc9-8af051b02664" target="_blank">Service Pack 4 Installation Guide</a>.</p>
<p style="text-align:justify;">Starting with GP 10.0 any service pack or hotfix now requires an update of modified forms and reports using GP Utilities. Detailed steps for doing this are in the <a title="GP 10.0 SP 4 Installation Guide" href="https://mbs.microsoft.com/fileexchange/?fileID=e08c38cc-7f71-4eba-afc9-8af051b02664" target="_blank">Service Pack 4 Installation Guide</a> or on <a title="Modified Forms and Reports Update" href="https://mbs.microsoft.com/customersource/support/selfsupport/hottopics/hot_topic_mdgp10_modifiedreportsformsupdaterequiredforpatchreleases.htm?printpage=false" target="_blank">this CustomerSource page</a>.</p>
<p style="text-align:justify;">Service Pack 4 brings us up to build 10.00.1368 for GP 10.0. For a complete list of the GP 10.0 versions, Microsoft has published <a title="GP 10.0 complete version list" href="https://mbs.microsoft.com/downloads/customer/MDGP10_MSPVersionList.xls" target="_blank">this very handy Excel file</a>, however as of today it has not yet been updated with SP 4 information. So I have put together a <a title="GP 10.0 Service Pack versions" href="//victoriayudin.files.wordpress.com/2009/08/gp-10-0-service-packs.pdf" target="_blank">list of GP 10.0 service pack versions</a> for the most common products.</p>
<p style="text-align:justify;">For additional Dynamics GP downloads and other resources, please visit my <a title="Resources page" href="http://victoriayudin.com/resources/" target="_blank">Resources</a> page.</p>
<br />Posted in Dynamics GP, GP 10.0 Tagged: Dynamics GP, GP 10.0, service pack <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1907/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1907&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/08/25/service-pack-4-for-dynamics-gp-10/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for all posted GL transactions in Dynamics GP</title>
		<link>http://victoriayudin.com/2009/08/11/sql-view-for-all-posted-gl-transactions-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2009/08/11/sql-view-for-all-posted-gl-transactions-in-dynamics-gp/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:10:48 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[General Ledger]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1899</guid>
		<description><![CDATA[Below is a SQL script to create a view showing all posted General Ledger transactions in Dynamics GP. This has the common columns asked for on reports, but you can certainly add your own as needed. For additional SQL code, please visit my GP Reports page. A few notes on this view:

Year-end close transactions are excluded
Only functional amounts are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1899&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Below is a SQL script to create a view showing all posted General Ledger transactions in Dynamics GP. This has the common columns asked for on reports, but you can certainly add your own as needed. For additional SQL code, please visit my <a title="GP Reports page" href="http://victoriayudin.com/gp-reports/" target="_self">GP Reports page</a>. A few notes on this view:</p>
<ul>
<li>Year-end close transactions are excluded</li>
<li>Only functional amounts are brought in</li>
<li>Unposted transactions will not be shown</li>
</ul>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<pre>CREATE VIEW view_Posted_GL_Trx
AS

<span style="color:#999999;">/*******************************************************************
view_Posted_GL_Trx
Created Aug 11, 2009 by Victoria Yudin - Flexible Solutions, Inc.
For updates see http://victoriayudin.com/gp-reports/
- Returns all lines for posted GL transactions
- Excludes year-end closing entries
- Returns Functional amounts only
GL20000 - Open Year Trx
GL30000 - Historical Trx
GL00100 - Account Master
GL00105 - Account Index Master
*******************************************************************/</span>

SELECT	YEAR1 Trx_Year,
	TRXDATE Trx_Date,
	JRNENTRY Journal_Entry,
	ORTRXSRC Originating_TRX_Source,
	REFRENCE Reference,
	ORMSTRID Originating_Master_ID,
	ORMSTRNM Originating_Master_Name,
	ORDOCNUM Originating_Doc_Number,
	DEBITAMT Debit_Amount,
	CRDTAMNT Credit_Amount,
	ACTNUMST Account_Number,
	ACTDESCR Account_Description,
	CURNCYID Currency_ID
FROM
(SELECT ACTINDX, OPENYEAR YEAR1, TRXDATE,
	JRNENTRY, ORTRXSRC, REFRENCE,
	ORDOCNUM, ORMSTRID, ORMSTRNM,
	DEBITAMT, CRDTAMNT, CURNCYID
 FROM	GL20000
 WHERE	SOURCDOC not in ('BBF','P/L')
 UNION ALL
 SELECT ACTINDX, HSTYEAR YEAR1, TRXDATE,
	JRNENTRY, ORTRXSRC, REFRENCE,
	ORDOCNUM, ORMSTRID, ORMSTRNM,
	DEBITAMT, CRDTAMNT,CURNCYID
 FROM	GL30000
 WHERE   SOURCDOC not in ('BBF','P/L')) GL
INNER JOIN GL00105 GM
     ON GL.ACTINDX = GM.ACTINDX
INNER JOIN GL00100 GA
     ON GL.ACTINDX = GA.ACTINDX

<span style="color:#3366ff;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/
</span>GO
GRANT SELECT ON view_Posted_GL_Trx TO DYNGRP</pre>
<p style="text-align:center;"><span style="color:#999999;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone</em></p>
<br />Posted in GP Reports, GP SQL scripts Tagged: General Ledger, GP Reports, GP SQL view, SQL code <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1899/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1899&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/08/11/sql-view-for-all-posted-gl-transactions-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamics GP Windows 7 and Server 2008 R2 compatibility announced</title>
		<link>http://victoriayudin.com/2009/08/10/dynamics-gp-windows-7-and-server-2008-r2-compatbility-announced/</link>
		<comments>http://victoriayudin.com/2009/08/10/dynamics-gp-windows-7-and-server-2008-r2-compatbility-announced/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 17:41:42 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP 10.0]]></category>
		<category><![CDATA[support lifecycle]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1891</guid>
		<description><![CDATA[Just as the Windows 7 and Windows Server 2008 R2 are released, Microsoft announces that Dynamics GP 10.0 is already compatible with them. No service pack required. While my memory is not what it used to be, I do not recall any other new operating system that an existing version of GP was immediately compatible with. We have had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1891&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Just as the Windows 7 and Windows Server 2008 R2 are released, Microsoft announces that Dynamics GP 10.0 is already compatible with them. No service pack required. While my memory is not what it used to be, I do not recall any other new operating system that an existing version of GP was immediately compatible with. We have had customers asking about this for a while now, so this is a very nice surprise. Take a look at the updated <a title="GP 10.0 System Requirements" href="https://mbs.microsoft.com/Cms/Templates/document/General.aspx?NRMODE=Published&amp;NRNODEGUID={733B2077-8A74-47D3-A035-9F3B88BBD7AA}&amp;NRORIGINALURL=/customersource/support/documentation/systemrequirements/system_requirements_gp10.htm?printpage=false&amp;NRCACHEHINT=Guest&amp;printpage=false&amp;wa=wsignin1.0" target="_blank">GP 10.0 System Requirements</a> for more detail. <em>(Link requires a login.)</em></p>
<p style="text-align:justify;">On the flip side, according to a recent post on the <a title="Windows 7 and Dynamics GP compatibility…" href="http://blogs.msdn.com/gp/archive/2009/08/04/windows-7-and-dynamics-gp-compatibility.aspx" target="_blank">Inside Microsoft Dynamics GP blog</a> support for GP 9.0 is not planned on Windows 7 (and I guess Server 2008 R2). While this is not unexpected, it is a little disappointing since GP 9.0 will be supported for another year and a half. For more details on GP version support dates, take a look at my <a title="GP support lifecycle" href="http://victoriayudin.com/2008/10/08/when-does-my-gp-products-support-end/" target="_blank">GP support lifecycle blog post</a>.</p>
<p style="text-align:justify;">Do you already have experience with Dynamics GP on Windows 7 or Windows Server 2008 R2? Please post a comment and me know how it&#8217;s going.</p>
<br />Posted in Dynamics GP, GP 10.0 Tagged: Dynamics GP, GP 10.0, support lifecycle, version, Windows 7 <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1891/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1891/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1891/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1891&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/08/10/dynamics-gp-windows-7-and-server-2008-r2-compatbility-announced/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get next Monday&#8217;s date in Crystal Reports</title>
		<link>http://victoriayudin.com/2009/07/29/how-to-get-next-mondays-date-in-crystal-reports/</link>
		<comments>http://victoriayudin.com/2009/07/29/how-to-get-next-mondays-date-in-crystal-reports/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 16:37:57 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[GP Reports]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1867</guid>
		<description><![CDATA[From the Flexible Solutions&#8217; GP Reports July 2009 Newsletter, here is a great new tip: how to calculate next Monday&#8217;s date in Crystal Reports. This comes up periodically when someone wants to have weekly columns on a report showing totals of something like sales, expenses or invoices due.
So if you have a report parameter called ReportDate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1867&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">From the <a title="GP Reports July 2009 newsletter" href="http://www.flex-solutions.com/newsletters/200907.html" target="_blank">Flexible Solutions&#8217; GP Reports July 2009 Newsletter</a>, here is a great new tip: how to calculate next Monday&#8217;s date in Crystal Reports. This comes up periodically when someone wants to have weekly columns on a report showing totals of something like sales, expenses or invoices due.</p>
<p style="text-align:justify;">So if you have a report parameter called ReportDate and you want to calculate the following Monday&#8217;s date, here is the formula:</p>
<p style="padding-left:30px;"><code><span style="color:#333399;">if DayOfWeek({?ReportDate}) = 1<br />
then dateadd("d",1,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 2<br />
then dateadd("d",7,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 3<br />
then dateadd("d",6,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 4<br />
then dateadd("d",5,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 5<br />
then dateadd("d",4,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 6<br />
then dateadd("d",3,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 7<br />
then dateadd("d",2,{?ReportDate})</span></code>
</p>
<p style="text-align:justify;">Then to calculate the following Monday date, you can use the following formula:</p>
<p style="padding-left:30px;"><code><span style="color:#333399;">dateadd("d",7,{@Week1date})</span></code></p>
<p>Just keep adding 7 for additional weeks.</p>
<p style="text-align:justify;">As a corollary to this, let&#8217;s say you wanted the closest (as opposed to the following) Monday, here is the formula:</p>
<p style="padding-left:30px;"><code><span style="color:#333399;">if DayOfWeek({?ReportDate}) = 1<br />
then dateadd("d",1,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 2<br />
then {?ReportDate} else<br />
if DayOfWeek({?ReportDate}) = 3<br />
then dateadd("d",-1,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 4<br />
then dateadd("d",-2,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 5<br />
then dateadd("d",-3,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 6<br />
then dateadd("d",3,{?ReportDate}) else<br />
if DayOfWeek({?ReportDate}) = 7<br />
then dateadd("d",2,{?ReportDate})</span></code></p>
<p>The above will give you the following:</p>
<ul>
<li>on Monday &#8211; returns the ReportDate entered by user</li>
<li>on Tuesday - returns the previous Monday&#8217;s date</li>
<li>on Wednesday &#8211; returns the previous Monday&#8217;s date</li>
<li>on Thursday &#8211; returns the previous Monday&#8217;s date</li>
<li>on Friday &#8211; returns the following Monday&#8217;s date</li>
<li>on Saturday &#8211; returns the following Monday&#8217;s date</li>
<li>on Sunday &#8211; returns the following Monday&#8217;s date</li>
</ul>
<p style="text-align:justify;">For more Crystal Reports tips, check out the Working with Crystal Reports section on my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a>. Past <a title="Flexible Solutions website" href="http://www.flex-solutions.com" target="_blank">Flexible Solutions </a>GP Reports newsletters can be found on the <a title="Flexible Solutions News &amp; Events" href="http://www.flex-solutions.com/news.html" target="_blank">Flexible Solutions website</a>.</p>
<br />Posted in Crystal Reports, GP Reports Tagged: Crystal Reports, GP Reports <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1867/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1867&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/07/29/how-to-get-next-mondays-date-in-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamics GP Trial Balance in Excel using FRx</title>
		<link>http://victoriayudin.com/2009/07/17/dynamics-gp-trial-balance-in-excel-using-frx/</link>
		<comments>http://victoriayudin.com/2009/07/17/dynamics-gp-trial-balance-in-excel-using-frx/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 18:16:19 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[FRx]]></category>
		<category><![CDATA[General Ledger]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1834</guid>
		<description><![CDATA[While I work with SQL and Crystal Reports every day, there are some reports that are just easier created elsewhere. One example is a GL Trial Balance that you want to export to Excel. There are many ways of handling this requirement, I like using FRx for it.  Below are steps by step instructions on how to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1834&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">While I work with SQL and Crystal Reports every day, there are some reports that are just easier created elsewhere. One example is a GL Trial Balance that you want to export to Excel. There are many ways of handling this requirement, I like using FRx for it.  Below are steps by step instructions on how to set this up, from start to finish it should take no more than 10 minutes:</p>
<ul>
<li>Create a new Row format with one line encompassing all your accounts:<a href="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-row.png"><img class="aligncenter size-full wp-image-1835" title="FRx TB row" src="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-row.png?w=450&#038;h=247" alt="FRx TB row" width="450" height="247" /></a></li>
</ul>
<p style="padding-left:30px;text-align:justify;">If you have any unit accounts, make sure to exclude them unless you want to see them on the Trial Balance.</p>
<ul>
<li>Create a Column format to show the columns you want, here is an example showing the beginning balance, net change and ending balance:<a href="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-column.png"><img class="aligncenter size-full wp-image-1836" title="FRx TB column" src="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-column.png?w=450&#038;h=247" alt="FRx TB column" width="450" height="247" /></a></li>
</ul>
<p style="padding-left:30px;text-align:justify;">You can do a lot of different things here, for example, I sometimes use a version that will show the net change for each month individually.</p>
<ul>
<li>Create a new Catalog and change the following default settings:
<ul>
<li>Set Detail level to Financial &amp; Account</li>
<li>On the Report Options tab check:
<ul>
<li>Display rows with no amounts</li>
<li>Display reports with no active rows</li>
</ul>
</li>
</ul>
</li>
<li>Generate the report, you will get something like the following in the DrillDown Viewer: <a href="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-display.png"></a><a href="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-display.png"></a><img class="aligncenter size-full wp-image-1841" title="FRx TB display" src="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-display.png?w=450&#038;h=180" alt="FRx TB display" width="450" height="180" /></li>
<li>Now to get this into Excel:
<ul>
<li>Go to File &gt; Export &gt; Worksheet File &gt; Formatted Excel</li>
<li>Select a file name and destination</li>
<li>On the Export Selection window uncheck Financial report and check Detail (supporting) report</li>
<li>Click OK and FRx will automatically open Excel with your detailed Trial Balance:</li>
</ul>
<p><a href="http://victoriayudin.files.wordpress.com/2009/07/excel-tb.png"><img class="aligncenter size-full wp-image-1862" title="Excel TB" src="http://victoriayudin.files.wordpress.com/2009/07/excel-tb.png?w=450&#038;h=285" alt="Excel TB" width="450" height="285" /></a></li>
<li>You can also set this up to print to Excel automatically (skipping the steps above to have to Export from the DrillDown Viewer). To do this:
<ul>
<li>Go to the Output tab, then the Output Options tab</li>
<li>Change the drop-down option to Formatted Excel and pick a destination and the other settings as desired</li>
</ul>
</li>
</ul>
<p> </p>
<h5 style="text-align:center;">Update on August 27, 2009:</h5>
<p style="text-align:justify;">I have been asked a few times recently how to show debits and credits in separate columns on a Trial Balance in FRx. To accomplish that, change the column layout I suggested above to look like the following:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2009/07/frx-dr-cr.png"><img class="size-full wp-image-1919 aligncenter" title="FRx DR CR" src="http://victoriayudin.files.wordpress.com/2009/07/frx-dr-cr.png?w=450&#038;h=206" alt="FRx DR CR" width="450" height="206" /></a></p>
<br />Posted in Dynamics GP, FRx Tagged: Dynamics GP, FRx, General Ledger <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1834/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1834/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1834/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1834/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1834/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1834/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1834/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1834/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1834/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1834/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1834&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/07/17/dynamics-gp-trial-balance-in-excel-using-frx/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-row.png" medium="image">
			<media:title type="html">FRx TB row</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-column.png" medium="image">
			<media:title type="html">FRx TB column</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/frx-tb-display.png" medium="image">
			<media:title type="html">FRx TB display</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/excel-tb.png" medium="image">
			<media:title type="html">Excel TB</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/frx-dr-cr.png" medium="image">
			<media:title type="html">FRx DR CR</media:title>
		</media:content>
	</item>
		<item>
		<title>Suppressing blank lines in Crystal Reports</title>
		<link>http://victoriayudin.com/2009/07/15/suppressing-blank-lines-in-crystal-reports/</link>
		<comments>http://victoriayudin.com/2009/07/15/suppressing-blank-lines-in-crystal-reports/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 12:24:39 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[GP Reports]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=1806</guid>
		<description><![CDATA[Here is the latest Crystal Reports tip from the Flexible Solutions GP Reports June 2009 newsletter: how to work with addresses. Dynamics GP (and probably many other systems) stores address components in separate fields, so if we look at a customer address window there are many individual fields that make up an address:

It is entirely possible that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1806&subd=victoriayudin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Here is the latest Crystal Reports tip from the <a title="GP Reports June 2009 newsletter" href="http://www.flex-solutions.com/newsletters/200906.html" target="_blank">Flexible Solutions GP Reports June 2009 newsletter</a>: how to work with addresses. Dynamics GP (and probably many other systems) stores address components in separate fields, so if we look at a customer address window there are many individual fields that make up an address:</p>
<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2009/07/customer-address1.png"><img class="aligncenter size-full wp-image-1808" title="customer address window" src="http://victoriayudin.files.wordpress.com/2009/07/customer-address1.png?w=392&#038;h=353" alt="customer address window" width="392" height="353" /></a></p>
<p style="text-align:justify;">It is entirely possible that many of these fields will be blank, but we need to account for them on reports like customer invoices and statements just in case there are records where these fields are not blank.</p>
<p style="text-align:justify;">If you simply add all the address fields individually to a report, here is what the report design will look like:</p>
<p style="text-align:center;"><a href="http://victoriayudin.files.wordpress.com/2009/07/individual-fields.png"><img class="aligncenter size-full wp-image-1812" title="individual fields" src="http://victoriayudin.files.wordpress.com/2009/07/individual-fields.png?w=367&#038;h=183" alt="individual fields" width="367" height="183" /></a></p>
<p style="text-align:justify;">And the results would be:</p>
<p style="text-align:justify;"><a href="http://victoriayudin.files.wordpress.com/2009/07/individual-fields-results.png"><img class="aligncenter size-full wp-image-1813" title="individual fields results" src="http://victoriayudin.files.wordpress.com/2009/07/individual-fields-results.png?w=404&#038;h=235" alt="individual fields results" width="404" height="235" /></a></p>
<p style="text-align:justify;">To get the address to appear without any blank fields, instead of adding each field individually to your report, use a  text object:</p>
<ol>
<li>
<div style="text-align:justify;">Go to Insert &gt; Text Object.</div>
</li>
<li>
<div style="text-align:justify;">Place the Text Object in the area where you will want the address and make it at least a few lines tall, you can always resize the text object as needed later.</div>
</li>
<li>
<div style="text-align:justify;">Drag each address field inside the text object in the order they should appear. Insert carriage returns and additional spacing or punctuation where needed between the fields:<a href="http://victoriayudin.files.wordpress.com/2009/07/text-object.png"><img class="aligncenter size-full wp-image-1816" title="text object" src="http://victoriayudin.files.wordpress.com/2009/07/text-object.png?w=353&#038;h=169" alt="text object" width="353" height="169" /></a></div>
</li>
<li>
<div style="text-align:justify;">Right click on the text object and choose Format Text. On the Common tab check Suppress Embedded Field Blank Lines. On the same tab, Can Grow is also useful &#8211; this lets you make the text object the size of your typical address and if the address is larger, Crystal will automatically adjust the size of the text object and the rest of the report: <a href="http://victoriayudin.files.wordpress.com/2009/07/text-object-format-editor.png"><img class="aligncenter size-full wp-image-1817" title="text object format editor" src="http://victoriayudin.files.wordpress.com/2009/07/text-object-format-editor.png?w=450&#038;h=543" alt="text object format editor" width="450" height="543" /></a></div>
</li>
<li>
<div style="text-align:justify;">Click OK and take a look at your results, they should now look a lot nicer: <a href="http://victoriayudin.files.wordpress.com/2009/07/text-object-results.png"><img class="aligncenter size-full wp-image-1818" title="text object results" src="http://victoriayudin.files.wordpress.com/2009/07/text-object-results.png?w=281&#038;h=201" alt="text object results" width="281" height="201" /></a></div>
</li>
</ol>
<p style="text-align:justify;">For more Crystal Reports tips, check out the Working with Crystal Reports section on my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/" target="_blank">GP Reports page</a>. Past Flexible Solutions GP Reports newsletters can be found on the <a title="Flexible Solutions News &amp; Events" href="http://www.flex-solutions.com/news.html" target="_blank">Flexible Solutions website</a>. And if you&#8217;re looking to replace Dynamics GP Sales Order Processing (SOP) reports with Crystal Reports, take a look at <a title="GP Reports Viewer - replacing SOP reports" href="http://www.flex-solutions.com/videos/gprv_sopreports/gprv_sopreports.htm" target="_blank">this demo video</a>.</p>
<p style="text-align:justify;"> </p>
<br />Posted in Crystal Reports, GP Reports Tagged: Crystal Reports <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/1806/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/1806/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/1806/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/1806/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/1806/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/1806/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/1806/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/1806/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/1806/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/1806/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&blog=4884873&post=1806&subd=victoriayudin&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2009/07/15/suppressing-blank-lines-in-crystal-reports/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/customer-address1.png" medium="image">
			<media:title type="html">customer address window</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/individual-fields.png" medium="image">
			<media:title type="html">individual fields</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/individual-fields-results.png" medium="image">
			<media:title type="html">individual fields results</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/text-object.png" medium="image">
			<media:title type="html">text object</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/text-object-format-editor.png" medium="image">
			<media:title type="html">text object format editor</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2009/07/text-object-results.png" medium="image">
			<media:title type="html">text object results</media:title>
		</media:content>
	</item>
	</channel>
</rss>