You are on page 1of 1

SELECT gcc.

concatenated_segments account_combination,
gcc.segment2 dept_code,
APPS.GL_FLEXFIELDS_PKG.
GET_DESCRIPTION_SQL (GCC.CHART_OF_ACCOUNTS_ID, 3, GCC.SEGMENT3)
Dept_description,
gcc.segment4 account,
APPS.GL_FLEXFIELDS_PKG.
GET_DESCRIPTION_SQL (GCC.CHART_OF_ACCOUNTS_ID, 4, GCC.SEGMENT4)
account_description,
gp.period_name,
xytd.budget ytd_budget,
xytd.encumberance ytd_enc,
xytd.actual ytd_act,
xytd.avail ytd_remain
FROM gl_code_combinations_kfv gcc,
gl_periods gp,
xxckdo_ytd_budget xytd
WHERE 1 = 1
AND gp.period_set_name = 'CKDO_GL_CAL'
AND gp.period_name = 'DEC-22'
and xytd.code_Combination_id = gcc.code_combination_id
and xytd.period_year=gp.period_year
and xytd.period_name = gp.period_name
ORDER BY gcc.segment4, gcc.segment3;

You might also like