SELECT
a.vendorid,
a.docnumbr,
a.docdate,
a.cntrlnum,
gl.jrnentry,
gl.trxdate,
gl.actindx,
c.actnumst,
d.actdescr,
gl.refrence,
gl.ortrxtyp,
gl.orctrnum,
gl.ormstrid,
gl.ormstrnm,
gl.ordocnum
FROM pm00400 a left outer join
( SELECT jrnentry, trxdate, refrence, ortrxtyp, actindx, orctrnum, ormstrid,
ormstrnm, ordocnum
FROM dbo.GL20000
WHERE series = 4
UNION ALL
SELECT jrnentry, trxdate, refrence, ortrxtyp, actindx, orctrnum, ormstrid,
ormstrnm, ordocnum
FROM GL30000
WHERE series = 4
) gl ON(a.vendorid = gl.ormstrid) and (a.cntrlnum = gl.orctrnum) and (a.docnumbr = gl.ordocnum)
LEFT OUTER JOIN GL00105 c ON (gl.actindx = c.actindx)
LEFT OUTER JOIN GL00100 d ON (gl.actindx = d.actindx)
Knowing what transactions have not been posted or recorded in GL is particularly useful when attempting to reconcile the AP subsidiary module to General Ledger. It will also allow you to identify those records loaded as begining balances from within AP.
With little or no effort, this query can be added to SmartList Builder (SLB), by creating a SQL Server view with the inner query, and exposing the view to SLB. Don't forget to run the GRANT.SQL utility script to assign permissions to the DYNGRP.
Until next post!
MG.-
Mariano Gomez, MIS, MCP, PMP
Maximum Global Business, LLC.
http://www.maximumglobalbusiness.com/
0 comments:
Post a Comment