Payables Trial Balance Report - GL Balance Query
Hello All,
Can you pls help to get the Query for fetching the GL Balance info from the Payables TB report.
Below query can give me the info from gl_balances table but, i need this info from Payable tables.
SELECT gb.period_name,gcc.concatenated_segments,
--SUM(NVL(gb.begin_balance_dr,0)-NVL(gb.begin_balance_cr,0)) beginning_bal,
SUM(NVL(gb.begin_balance_cr,0)-NVL(gb.begin_balance_dr,0) +
(NVL(gb.period_net_cr,0) - NVL(gb.period_net_dr,0))) end_bals
FROM apps.gl_balances gb, apps.gl_code_combinations_kfv gcc
where gb.CODE_COMBINATION_ID = gcc.CODE_COMBINATION_ID