Hello:
The end user says that the script below, when run a few months back, successfully displayed payables payments based on segment 4 of the chart of accounts.
Now, she says that the script does not work at all.
Granted, the GL20000 is one of the tables. And, that would lead one to believe that the year-end close has something to do with it.
But, she said that she had run this since the year-end close. Again, it worked at one time, and now she says that it doesn't.
I'm a little surprised that it worked, to begin with. The programming appears a little "lean". I would think that there would be more joins involved.
Anyway, please let me know why this would have worked at one time and now doesn't.
Thank you!
John
Select distinct ACTNUMST, ACTDESCR , DOCAMNT,b.DOCDATE,TRXDSCRN, h.PONUMBER, i.VNDITDSC
from GL20000 a join PM30200 b on a.ORGNTSRC = b.TRXSORCE
join GL00105 c on a.ACTINDX = c.ACTINDX
join GL00100 d on a.ACTINDX = d.ACTINDX
join PM30300 e on e.VCHRNMBR = b.VCHRNMBR
join POP30300 f on VNDDOCNM = e.APTODCNM
join POP10500 g on g.POPRCTNM = f.POPRCTNM
join POP10100 h on g.PONUMBER = h.PONUMBER
join POP10110 i on i.PONUMBER = h.PONUMBER
Where d.ACTNUMBR_4 in ('604', '605')
--and b.DOCDATE between '1/1/2017' and '11/16/2017'