Thursday, April 15, 2010

Dynamics GP Reporting Series: GL Edit List

As we will need to print a report that displays all open GL Transactions and filter the result on a specific batch, we’ll need to start be getting the needed tables and create our view:

SQL Command:

SELECT     DISTINCT
dbo.GL10000.BACHNUMB,    dbo.SY00500.BCHTOTAL,
dbo.SY00500.SERIES,        dbo.SY00500.BCHCOMNT,
dbo.SY00500.NUMOFTRX,    dbo.SY00500.BACHDATE,
dbo.SY00500.CNTRLTRX,    dbo.SY00500.CNTRLTOT,
dbo.SY00500.APPROVL,    dbo.SY00500.APPRVLDT,
dbo.SY00500.APRVLUSERID, dbo.SY00500.BACHFREQ,
dbo.GL10000.JRNENTRY,    dbo.GL10000.TRXDATE,
dbo.GL10000.RVRSNGDT,    dbo.GL10000.SOURCDOC,
dbo.GL10000.TRXTYPE,    dbo.GL10000.REFRENCE,
dbo.GL00100.ACTDESCR,    dbo.GL10001.DSCRIPTN,
dbo.GL10001.DEBITAMT,    dbo.GL10001.CRDTAMNT,
dbo.GL00105.ACTNUMST,    dbo.GL10001.SQNCLINE
FROM        
dbo.SY00500 INNER JOIN
dbo.GL10000 ON dbo.SY00500.BACHNUMB = dbo.GL10000.BACHNUMB
LEFT OUTER JOIN    dbo.GL00100
INNER JOIN dbo.GL10001 ON dbo.GL00100.ACTINDX = dbo.GL10001.ACTINDX
INNER JOIN dbo.GL00105 ON dbo.GL10001.ACTINDX = dbo.GL00105.ACTINDX
ON dbo.GL10000.DTAControlNum = dbo.GL10001.ORCTRNUM
AND dbo.GL10000.BACHNUMB = dbo.GL10001.BACHNUMB
AND dbo.GL10000.JRNENTRY = dbo.GL10001.JRNENTRY

To avoid any issues when creating our crystal report, we’ll need to add the above statement as a “Command” instead of direct tables as the command does not store the database name along with the statement, the report will need to be designed to look like the original GL edit list:

Crystal Report Design:

image

Few optimizations are still required to include calculations and formulas to get the report in the needed format.

Regards,
--
Mohammad R. Daoud - CTO
MVP, MCP, MCT, MCBMSP, MCTS, MCBMSS
+962 - 79 - 999 65 85 
mohdaoud@gmail.com
mohdaoud.blogspot.com

No comments:

Related Posts:

Related Posts with Thumbnails