|
Journal Entry File:
select replace(replace(replace(gjh.name, chr(13), chr(32)), chr(10), chr(32)), ',', '_') JOURNAL_NUMBER,
gcc.concatenated_segments gl_account_number,
NVL (gjl.accounted_dr, 0) - nvl(gjl.accounted_cr,0) amount,
gcc.segment1 business_unit, gjl.effective_date effective_date,
gjl.period_name period_name, gjl.creation_date entry_date,
gjl.created_by preparer_id, gjh.je_source SOURCE,
replace(replace(replace(gjl.description, chr(13), chr(32)), chr(10), chr(32)), ',', '_') DESCRIPTION,
gl.description account_type, gcc.segment2 department,
gjh.posted_date posted_date, gjl.code_combination_id account_id
FROM gl_je_headers gjh,
gl_je_lines gjl,
gl_code_combinations_kfv gcc,
gl_lookups gl
WHERE gjh.je_header_id = gjl.je_header_id
AND gjl.code_combination_id = gcc.code_combination_id
AND gcc.gl_account_type = gl.lookup_code
AND gl.lookup_type = 'ACCOUNT TYPE'
AND gjl.status = 'P'
AND TRUNC (gjl.effective_date) BETWEEN '1-JAN-2008' AND '31-DEC-2008'
ORDER BY gcc.concatenated_segments |
|