396: user_id, rid, appid);
397:
398: if (accsetid is not null) then
399: select chart_of_accounts_id into coaid 400: from gl_access_sets 401: where access_set_id = to_number(accsetid);
402:
403: if (instr(result, ','||to_char(coaid)||',') = 0) then
404: result := result || to_char(coaid) || ',';