0% found this document useful (0 votes)
25 views

GL Transactional Data Showing

SQL Query for GL Transactional Data Showing

Uploaded by

anchauhan3061
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

GL Transactional Data Showing

SQL Query for GL Transactional Data Showing

Uploaded by

anchauhan3061
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

SELECT distinct

gcc.CONCATENATED_SEGMENTS,
gl.code_combination_id,
gl.period_name,
gl.ledger_id,
--gl.effective_date,
--gl.accounted_dr,gl.accounted_cr
-- sum(nvl(gl.accounted_dr,0)) accounted_dr, sum(nvl(gl.accounted_cr,0)) a
ccounted_cr
gl.ENTERED_DR,gl.ENTERED_CR,gl.accounted_dr,gl.accounted_cr,gl.DESCRIPTIO
N,
GH.JE_CATEGORY,GH.JE_SOURCE,GH.CURRENCY_CODE
,
( SELECT DISTINCT GL.SHOW_account_type FROM gl_code_combinations_v
GL
WHERE GL.CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
AND GL.ACCOUNT_TYPE = GCC.GL_ACCOUNT_TYPE ) ACCOUNT_TYPE
FROM gl_je_lines gl,
----gl_code_combinations_v gcc,
GL_CODE_COMBINATIONS_KFV GCC , --- Table added & commented to get Full GL Accoun
t Code on 20-APR-16
gl_ledger_names_v gled ,
gl_je_headers gh -- ,
-- org_organization_definitions org
WHERE TRUNC (gl.effective_date) <= :TO_date--LIKE 'DEC-13'
AND TRUNC (gl.effective_date) >= :From_date--LIKE 'DEC-13'
AND
gl.code_combination_id = gcc.code_combination_id -- and gl.code_combina
tion_id=44039
AND
gled.ledger_id = gl.ledger_id and gl.je_header_id=gh.je_header_id and A
CTUAL_FLAG='A'-- not in('E','C')
and gled.LEDGER_ID= NVL (:p_ledger_id,gled.LEDGER_ID)
and gh.JE_CATEGORY<>'Income Statement Close'
and gl.status='P'

You might also like