Convert Number into Words

There are many available reports in Oracle Apps so you can discuss the requirements related to these reports here.
Post Reply
kamran.it
Posts: 34
Joined: Tue Aug 01, 2006 7:43 am
Location: Pakistan

Convert Number into Words

Post by kamran.it »

oracle 6i Form & report + Oracle 9i Database + Windows 2003

I have summary Column that is TOTAL

I want to display TOTAL field in WORDS using below lines in Formula Column but showing error. ORA-06502


function CF_1Formula return Number is
word varchar2(100);
begin
select (to_char(to_date(:total,'j'), 'jsp'))into word from dual;
return (word);
end;

or please can you write here any method I want to conver number in words.
Atif
Posts: 54
Joined: Mon Apr 03, 2006 4:22 am
Location: Pakistan

Post by Atif »

Hi

get the function from
http://asktom.oracle.com/pls/asktom/f?p ... 7603857650

create it in the database and use this in report.
Regards
Atif
sors
Posts: 5
Joined: Wed Jan 14, 2009 7:11 am
Location: Egypt

Post by sors »

u can use this solution
i hope it useful
select decode(trunc(110.5),0,'ZERO',to_char(to_date(trunc(110.5),'J'),'JSP'))
||' AND ' || decode(trunc(mod(110.5,1)*100),0,'ZERO',
to_char(to_date(trunc(mod(110.5,1)*100),'J'),'JSP'))||' '||'Only' into m
from dual;
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests