guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
- Reaction score
- 13
In Dynamics GP, you have a table "Budget Master" and then you have the "General Ledger Transactions" table.
Previously I selected from the GLT and left joined the BM. But then our FD moaned about budgets not showing correctly on the report. I saw that if there's no GLT for that BM period, it won't show. So I made the BM the primary to select from where the GLT joins on to IF there's a transaction.
However, now the actuals are ****ed up (even though the budget is fine)
ACTINDX is the culprit here I think, the GLT ACTINDX doesn't exist in the BM, but you can also have BM's that doesn't exist for a GLT (one can be applied to the other / other doesn't have to exist)
How the hell do I do a join/select out all the data. Because if I look at BM, I throw away GLT's, if I look at GLT's, I throw away BM's
Simple example:
ACTINDX 44426 exists in GLT (which has to come through) but it doesn't exist in BM
I think ACTINDX is the culprit here that throws away the records, but I'm not sure if I can just ignore that column when joining in Dynamic GP
Previously I selected from the GLT and left joined the BM. But then our FD moaned about budgets not showing correctly on the report. I saw that if there's no GLT for that BM period, it won't show. So I made the BM the primary to select from where the GLT joins on to IF there's a transaction.
However, now the actuals are ****ed up (even though the budget is fine)
ACTINDX is the culprit here I think, the GLT ACTINDX doesn't exist in the BM, but you can also have BM's that doesn't exist for a GLT (one can be applied to the other / other doesn't have to exist)
How the hell do I do a join/select out all the data. Because if I look at BM, I throw away GLT's, if I look at GLT's, I throw away BM's
Simple example:
Code:
select * from BM
left outer join GLT on BM.YEAR1 = GLT.YEAR1
AND GLT.PERIODID = BM.PERIODID
AND GLT.ACTINDX = BM.ACTINDX
AND BM.ACCATNUM = GLT.ACCATNUM
ACTINDX 44426 exists in GLT (which has to come through) but it doesn't exist in BM
I think ACTINDX is the culprit here that throws away the records, but I'm not sure if I can just ignore that column when joining in Dynamic GP