I was looking into a problem reported by a client recently and needed to check the assignment of Analytical Accounting Transaction Dimension Codes to the AA GL transactions and so wrote the below SQL which I am posting to keep it easily accessible should I need it again.
/*
Created by Ian Grieve of azurecurve | Ramblings of an IT Professional (http://www.azurecurve.co.uk)
This code is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0 Int).
*/
SELECT
*
FROM
AAG30000 AS aaGLHdr
INNER JOIN
AAG30001 AS aaGLDist
ON
aaGLDist.aaGLHdrID = aaGLHdr.aaGLHdrID
INNER JOIN
AAG30002 AS GLAssign
ON
GLAssign.aaGLHdrID = aaGLDist.aaGLHdrID
AND
GLAssign.aaGLDistID = aaGLDist.aaGLDistID
INNER JOIN
AAG30003 AS aaGLCode
ON
aaGLCode.aaGLHdrID = GL Assign.aaGLHdrID
AND
aaGLCode.aaGLDistID = GLAssign.aaGLDistID
AND
aaGLCode.aaGLAssignID = GLAssign.aaGLAssignID
INNER JOIN
AAG00401 AS aaTrxDimCodeSetp
ON
aaTrxDimCodeSetp.aaTrxDimID = aaGLCode.aaTrxDimID
AND
aaTrxDimCodeSetp.aaTrxDimCodeID = aaGLCode.aaTrxCodeID
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.
Looking for support or consultancy with Microsoft Dynamics GP?
I no longer work with Microsoft Dynamics GP, but the last company I worked for was ISC Software in the UK; if you’re looking for support or consultancy services with Microsoft Dynamics GP you can contact them here.