Showing posts with label Query : Get the Account Description. Show all posts
Showing posts with label Query : Get the Account Description. Show all posts

Tuesday, 26 April 2011

Query : Get the Account Description


Query : Get the Account Description

select segment1,segment2,segment3,
apps.gl_flexfields_pkg.get_description_sql(&char_of_account_id,1,gcc.segment1) seg1,
apps.gl_flexfields_pkg.get_description_sql(&char_of_account_id,1,gcc.segment2) seg2,
apps.gl_flexfields_pkg.get_description_sql(&char_of_account_id,3,gcc.segment3) seg3
FROM gl_code_combinations gcc
WHERE gcc.code_combination_id = &code_combination_id;

GIVE THE chart of account_id as same value for seg1,seg2 and seg3
and give the  code_combination_id

Thursday, 7 April 2011

Query : Get the Account Description


Query : Get the Account Description

SELECT apps.gl_flexfields_pkg.get_description_sql(&char_of_account_id,
1,
gcc.segment1) seg1,
gl_flexfields_pkg.get_description_sql(&char_of_account_id,
2,
gcc.segment2) seg2,
gl_flexfields_pkg.get_description_sql(&char_of_account_id,
3,
gcc.segment3) seg3,
gl_flexfields_pkg.get_description_sql(&char_of_account_id,
4,
gcc.segment4) seg4,
gl_flexfields_pkg.get_description_sql(&char_of_account_id,
5,
gcc.segment5) seg5
FROM gl_code_combinations gcc
WHERE gcc.segment4 = '25130' --gcc.code_combination_id = &code_combination_id;