j'ai une fontion sous oracle reports 6i qui fait la conversion du montant en anglais:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
function CF_Total_a_payer_let_AFormula return char
is
  v_mt     varchar2(2000);
 
begin
      return (to_char(to_date(substr(to_char(round(:cf_totalapayer,0)),
		length(to_char(round(:cf_totalapayer,0)))
-length(to_char(round(1962.52,0))-1),
	length(to_char(round(:cf_totalapayer,0)))),'J'),'Jsp'));
 
end;
à l'éxécution de l'état j'ai le msg d'erreur suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
ORA-01854: la date julienne doit etre comprise entre 1 et 5373484.
remarque: meme fonction elle fonction sans erreur pour d'autre exemple d'édition.

vous pouvez faire ces deux tests pour visualiser l'erreur
1- ca marche
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
select
 (to_char(to_date(substr(to_char(round(1002,0)),
		length(to_char(round(1002,0)))
-length(to_char(round(1962.52,0))-1),
	length(to_char(round(1002,0)))),'J'),'Jsp'))
from dual
2- erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
select
 (to_char(to_date(substr(to_char(round(469.5,0)),
		length(to_char(round(469.5,0)))
-length(to_char(round(1962.52,0))-1),
	length(to_char(round(469.5,0)))),'J'),'Jsp'))
from dual
Merci