Join the OracleApps88 Telegram group @OracleApps88to get more information on Oracle EBS R12/Oracle Fusion applications.

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.

Wednesday, August 31, 2016

Query to Get the Oracle GL Balances

SELECT   (SELECT gcc.concatenated_segments
            FROM gl_code_combinations_kfv gcc
           WHERE gcc.code_combination_id = gjl.code_combination_id) code_combo,
         (SELECT gjs.user_je_source_name
            FROM gl_je_sources gjs
           WHERE gjs.je_source_name = gjh.je_source) je_source,
         (SELECT gjc.user_je_category_name
            FROM gl_je_categories gjc
           WHERE gjc.je_category_name = gjh.je_category) je_category,
         gjh.period_name, SUM (gjl.accounted_dr), SUM (gjl.accounted_cr)
    FROM gl_je_headers gjh, gl_je_lines gjl
   WHERE gjh.je_header_id = gjl.je_header_id
     AND gjh.status = 'P'
    -- AND gjh.je_source IN ('AutoCopy')
     AND gjh.je_category IN ('Receiving','Inventory','WIP','Purchase Invoices')
     AND gjh.actual_flag = 'A'
GROUP BY gjl.code_combination_id,
         gjh.je_source,
         gjh.je_category,
         gjh.period_name
ORDER BY gjl.code_combination_id,
         gjh.je_source,
         gjh.je_category,

         gjh.period_name;

2 comments:

Post a Comment

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.
Best Blogger TipsGet Flower Effect