1.Query to get Account Code Combination Description
SELECT gl_flexfields_pkg.get_concat_description
(chart_of_accounts_id,
code_combination_id
)
FROM gl_code_combinations
2. Query to get Account Segment Description
SELECT gl_flexfields_pkg.get_description_sql
(chart_of_accounts_id,--- chart of account id
1,----- Position of segment
segment1 ---- Segment value
)
FROM gl_code_combinations
Code (SQL):
SELECT gl_flexfields_pkg.get_concat_description
(chart_of_accounts_id,
code_combination_id
)
FROM gl_code_combinations
Code (SQL):
SELECT gl_flexfields_pkg.get_description_sql
(chart_of_accounts_id,--- chart of account id
1,----- Position of segment
segment1 ---- Segment value
)
FROM gl_code_combinations