108: AND FSEG.application_column_name = p_segment
109: AND FSEG.flex_value_set_id = FFV.flex_value_set_id
110: AND FFS.id_flex_code = 'GL#'
111: AND GCC.chart_of_accounts_id = (SELECT GAS.chart_of_accounts_id
112: FROM gl_access_sets GAS
113: WHERE GAS.access_set_id = FND_PROFILE.value('GL_ACCESS_SET_ID'))
114: AND FFV.flex_value = p_value;
115: ELSE
116: /* Query to get the Descriptions of the Attribute values. */