400: --
401: cursor C1 is
402: select distinct f.item_name
403: from pay_element_types_f e 404: ,ff_fdi_usages_f f 405: where e.element_type_id = p_element_type_id
406: and e.iterative_formula_id = f.formula_id
407: and f.usage in ('O', 'B')
408: and f.item_name = p_result_name