I'm no SQL expert by any means, but this seems to do the trick:
SELECT *
FROM GL20000 INNER JOIN
GL00100 ON GL20000.ACTINDX = GL00100.ACTINDX AND GL20000.SOURCDOC = 'BBF' AND GL00100.PSTNGTYP = '0'
Although I think that GP business logic is that you wouldn't have opening balances on your P + L accounts ?(i.e: this would not return any results - if you change the last expression to PSTNGTYP = '1' then you will get the balance sheet transactions returned) Do you really have beginning balances on your profit and loss accounts?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.