You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to output GL Amount for two months with parameter?

I need to output GL amount for two months with BIP.

There should be one parameter for setting Period. Then I need to output GL Amount for the month set by the parameter and the previous month of it.

ex.) when I set parameter with '202502', amount should be output for '202502' and '202501'.

I tried this SQL but it didn't work.


WHERE GL_BALANCES.PERIOD_NAME IN (:PERIOD_NAME,TO_CHAR(ADD_MONTHS(TO_DATE(:PERIOD_NAME,'MON-YYYY'),-1),'YYYYMM'))

If you know any solutions, please let me know.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!