create or replace function adam.fn_fco_get_fdtparm(p_pais      in char,
                                                   p_compania  in char,
                                                   p_parametro in varchar2,
                                                   p_secuencia in number)
  return varchar2 is
  Result varchar2(20);
begin
  begin
    select dato
      into Result
      from vw_fdt_parametros
     where pais = p_pais
       and compania = p_compania
       and parametro = p_parametro
       and secuencia = p_secuencia;
  exception
    when NO_DATA_FOUND then
      return null;
  end;
  return(Result);
end fn_fco_get_fdtparm;
/
