Number to word

Hi all,
I have seeing several posts with the subject I am trying to follow what I read so far and here is what I am using:
<?xdoxslt:toWords_Amt(sum(TERM_ITEM_AMOUNT))?>
However I am getting an error when previweing
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
     at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
     at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
     at RTF2PDF.runRTFto(RTF2PDF.java:629)
     at RTF2PDF.runXDO(RTF2PDF.java:439)
     at RTF2PDF.main(RTF2PDF.java:289)
Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'toWords_Amt'
     at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
     at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
     at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
     ... 15 more
Suggestions?
Thansk

Sorry of the too early post
it should not be toWords_Amt
it should be toWordsAmt
thansk

Similar Messages

  • Function to convert number to word format.

    Dear Friends,
    Could you please help me with a code that will take 'sum of all values of a column' as input parameter & return its value in word format.
    Number can be negative , it can/can't contain digits after decimal.
    i have two ways but it won't work when my no. becomes negative
    Moreover i want that it should work on both type of data, numbers without decimal & number with decimal.
    that is what i possess:
    1)
    function CF_1FORMULA return char is
    num1 number;
    p_number number;
    type myArray is table of varchar2(255);
    l_str myArray := myArray( '',
    ' thousand ', ' million ',
    ' billion ', ' trillion ',
    ' quadrillion ', ' quintillion ',
    ' sextillion ', ' septillion ',
    ' octillion ', ' nonillion ',
    ' decillion ', ' undecillion ',
    ' duodecillion ' );
    l_num varchar2(50);
    l_return varchar2(4000);
    begin
    num1:=:my_mumber;
         p_number:=num1;
         l_num:=trunc( p_number );
    for i in 1 .. l_str.count
    loop
    exit when l_num is null;
    if ( to_number(substr(l_num, length(l_num)-2, 3)) <> 0 )
    then
    l_return := to_char(
    to_date(
    substr(l_num, length(l_num)-2, 3),
    'J' ),
    'Jsp' ) || l_str(i) || l_return||'Rupees';
    end if;
    l_num := substr( l_num, 1, length(l_num)-3 );
    end loop;
    return l_return;
    end;
    and
    2)
    select to_char(to_date(floor(1234.99),'J'),'Jsp')||' Rupees and '||to_char(to_date((1234.99-(floor(1234.99)))*100,'J'),'Jsp')||' Paise' from dual;
    kindly help me.
    Thanks & Regards
    Vishnu

    Common question.
    But you will have realised that already if you'd bothered to search the forum...
    http://forums.oracle.com/forums/search.jspa?threadID=&q=number+to+word&objID=f75&dateRange=all&userID=&numResults=30

  • How to Count number of words in a file....

    Hi Experts,
    I have uploaded the text file, from the application server, like this: 
    call function 'GUI_UPLOAD'
      exporting
        filename = LV_ip_FILENAME
      tables
        data_tab = LT_FILETABLE.
    The text file contains some number character words....  like "sap labs india..... "
    Now, I wanted to count number of words in an internal table  LT_FILETABLE....  can anybody help me?

    Hi,
    Special Characters in Regular Expressions
    The following tables summarize the special characters in regular expressions:
    Escape character
    Special character Meaning
    Escape character for special characters
    Special character for single character strings
    Special character Meaning
    . Placeholder for any single character
    C Placeholder for any single character
    d Placeholder for any single digit
    D Placeholder for any character other than a digit
    l Placeholder for any lower-case letter
    L Placeholder for any character other than a lower-case letter
    s Placeholder for a blank character
    S Placeholder for any character other than a blank character
    u Placeholder for any upper-case letter
    U Placeholder for any character other than an upper-case letter
    w Placeholder for any alphanumeric character including _
    W Placeholder for any non-alphanumeric character except for _
    [ ] Definition of a value set for single characters
    [^ ] Negation of a value set for single characters
    [ - ] Definition of a range in a value set for single characters
    [ [:alnum:] ] Description of all alphanumeric characters in a value set
    [ [:alpha:] ] Description of all letters in a value set
    [ [:blank:] ] Description for blank characters and horizontal tabulators in a value set
    [ [:cntrl:] ] Description of all control characters in a value set
    [ [:digit:] ] Description of all digits in a value set
    [ [:graph:] ] Description of all graphic special characters in a value set
    [ [:lower:] ] Description of all lower-case letters in a value set
    [ [:print:] ] Description of all displayable characters in a value set
    [ [:punct:] ] Description of all punctuation characters in a value set
    [ [:space:] ] Description of all blank characters, tabulators, and carriage feeds in a value set
    [ [:unicode:] ] Description of all Unicode characters in a value set with a code larger than 255
    [ [:upper:] ] Description of all upper-case letters in a value set
    [ [:word:] ] Description of all alphanumeric characters in a value set, including _
    [ [:xdigit:] ] Description of all hexadecimal digits in a value set
    a f
          v Diverse platform-specific control characters
    [..] Reserved for later enhancements
    [==] Reserved for later enhancements
    u2192 More
    Special characters for character string patterns
    Special character Meaning
    Concatenation of n single characters
    {n,m} Concatenation of at least n and a maximum of m single characters
    {n,m}? Reserved for later enhancements
    ? One or no single characters
    Concatenation of any number of single characters including 'no characters'
    *? Reserved for later enhancements
    + Concatenation of any number of single characters excluding 'no characters'
    +? Reserved for later enhancements
    | Linking of two alternative expressions
    ( ) Definition of subgroups with registration
    (?: ) Definition of subgroups without registration
    1, 2, 3 ... Placeholder for the register of subgroups
    Q ... E Definition of a string of literal characters
    (? ... ) Reserved for later enhancements
    for more details please refer the following,
    [http://help.sap.com/abapdocu_70/en/ABENREGEX_SYNTAX_SIGNS.htm]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/902ce392-dfce-2d10-4ba9-b4f777843182?QuickLink=index&overridelayout=true]
    Thanks,
    Renuka S.

  • How do I divide a paragraph to lines a certain number of words?

    Hello,
    I have written a class that is supposed to basically, divide the number of paragraphs (in this case separated by newlines) to lines with 10 words or less, meaning each line has 10 words until the last line, which might have fewer words.
    I am using jre 1.3, and in my assignment at work I don't have the choice of changing it to a higher jre. So, I have to use 1.3.
    I have explained in the code what I want to do, and what I have done. Right now, my problem is in the last for loop, where I wish to take all the words, divide them to 10-word (or less for the last line) sets and add them to the String object line. Afterwards, I'd like to add these 10 words to the Vector lines. As of now, the individual words are getting added to the Vector, instead of lines.
    So, basically what I need to do is, count up to 10 words, add them to String line, and when this is finished (which is not the case now), add line to the Vector lines.
    Any help will be greatly appreciated. I am really confused on how to implement this part of the code.
    Here's the code:
    import java.util.StringTokenizer;
    import java.util.Vector;
    public class StringTester {
         public static void main(String[] args) {
              // TODO Auto-generated method stub
            String str = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
                "recent criticism by predecessor Dick Cheney that moves by the Obama " +
                "administration had put the United States at risk, telling CNN on Tuesday " +
                "that the former vice president was dead wrong.\n"+
                "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
                "Wolf Blitzer. This administration -- the last administration left us in a " +
                "weaker posture than we've been any time since World War II: less regarded " +
                "in the world, stretched more thinly than we ever have been in the past, " +
                "two wars under way, virtually no respect in entire parts of the world.\n"+
                "I guarantee you we are safer today, our interests are more secure today than " +
                "they were any time during the eight years of the Bush administration."+
                "In an interview with CNN's John King last month, Cheney said President Obama " +
                "had been making some choices that in my mind will raise the risk to the " +
                "American people of another attack.");
            //Basically, what I want to do is divide each of these paragraphs to lines
              //with 10 or less words.  That is, each line has 10 words until the last line
              //which might have fewer words.     
            StringTokenizer st = new StringTokenizer(str, "\n");
            //1. Take each token (which is a paragraph)
            //2. count the number of words it has
            //3. count up to 10 words, until the word count has reached the
            //total number of words on each paragraph, and each of the ten words to a line.
            Vector paragraphs = new Vector();
            while (st.hasMoreTokens()) {
               paragraphs.addElement(st.nextToken());
            Vector lines = new Vector();
            int wordCount = 0;
            Vector words = new Vector();
            for(int i=0;i<paragraphs.size();i++) {
               StringTokenizer st2 = new StringTokenizer((String)paragraphs.elementAt(i), " ");
               //the number of tokens in st2 represents the number of words (separated by space)
               //in each paragraph.
               while(st2.hasMoreTokens()) {
                   //then add each word to an arrayList
                    words.addElement(st2.nextToken());
            for(int i=0;i<words.size();i++) {
                 String line = "";
                while(wordCount < 10 * i) {
                     line = line.concat((String)words.elementAt(i));
                     wordCount+=10;
                System.err.println("adding line: "+line);
                lines.addElement(line);
    }

    I was bored at the time, im sure you can improve on this example immensely.
    import java.util.LinkedList;
    public class StoryClass {
         private final String storyOne = new String("WASHINGTON (CNN) -- Vice President Joe Biden brushed aside "+
                "recent criticism by predecessor Dick Cheney that moves by the Obama " +
                "administration had put the United States at risk, telling CNN on Tuesday " +
                "that the former vice president was dead wrong.\n"+
                "I don't think [Cheney] is out of line, but he is dead wrong, he told CNN's " +
                "Wolf Blitzer. This administration -- the last administration left us in a " +
                "weaker posture than we've been any time since World War II: less regarded " +
                "in the world, stretched more thinly than we ever have been in the past, " +
                "two wars under way, virtually no respect in entire parts of the world.\n"+
                "I guarantee you we are safer today, our interests are more secure today than " +
                "they were any time during the eight years of the Bush administration."+
                "In an interview with CNN's John King last month, Cheney said President Obama " +
                "had been making some choices that in my mind will raise the risk to the " +
                "American people of another attack.");
         public static void main(String[] args) {
              StoryClass sc = new StoryClass();
              sc.start(sc.storyOne);
         public void start(String story){
              LinkedList<String[]> allSentences = new LinkedList<String[]>();
              String[] paragraphs = getParagraphs(story);
              LinkedList<String[]> temp;
              for(String s : paragraphs){
                   temp = getSentences(s);
                   if(!temp.isEmpty())
                        allSentences.addAll(temp);
              for(String[] s : allSentences){
                   System.out.println(stringArrayToString(s));
         public String[] getParagraphs(String str){
              return str.split("\n");
         public LinkedList<String[]> getSentences(String sentence){
              LinkedList<String[]> list = new LinkedList<String[]>();
              int count = 0;
              String[] stringy = new String[10];
              String temp;
              for(String s : sentence.split("[ .,]")){
                   if((temp=s.trim()).length()==0)
                        continue;
                   if(count == 10){
                        list.add(stringy);
                        stringy = new String[10];
                        count = 0;
                   stringy[count++] = temp;
              if(count != 0){
                   String[] last = new String[count];
                   for(int i=0; i<count; i++){
                        last[i] = stringy;
                   list.add(last);
              return list;
         public String stringArrayToString(String[] s){
              if(s.length==0){
                   return "";
              StringBuilder sb = new StringBuilder();
              sb.append("[");
              for(int i=0; i<s.length; i++){
                   sb.append(s[i]).append(", ");
              sb.delete(sb.length()-2, sb.length());
              sb.append("]");
              return sb.toString();
    }Mel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to obtain the number of words of a protected pdf file that can't be converted into a word file?

    I need to get the number of words of pdf files. I usually convert them into word files to get the word count. Some pdf files are protected and can't be converted into word files. Is there another way to get the number of words of these protected pdf files? I use adobe professional XI Pro.

    Scroll through and read the answers available in the thread below. You may find the information helpful.
    Trying to write Javascript code to get word count
    Be well...

  • How i can count the number of words in a string?

    hi, i want to know how to count the number of words in a string
    e.g. java is a very powerful computer language.
    i will get 7 words.
    thanks in advance..

    Jverd, this has actually been answered, but due to an
    attack of goldie-itis, all the answers were hosed.
    The OP did get an answer, though.Yeah, I know. I just didn't know if he saw the answer before it went away.

  • In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?

    iOS 7
    Seperate text size modification is no longer available in Safari Reafer.
    Use Settings.
    Settings >General > Text Size

  • How to Count total number of Words in PDF?

    I am used Adobe Acrobat javascript inbuilt function getPageNumWords(<pagenumber>) it return the number of words present in specified page, but while am copy and paste text content from PDF file to MS Word, Words count given by MS Word is little bit differ, so any one know in which aspect Acrobat count the words?
    Which words count result is correct?
    Shall is go with Acrobat Words count result or MS Words count result?
    But I want to count the total number of words in PDF file (my input is PDF file) else can I go with iText?
    Words count in PDf using iText is possible?

    Word counts are likely to vary a little according to how you count. For instance, are hyphenated words one or two words? What if the hyphen is at the end of a line? Do numbers count as words? Headers and footers? Captions?
    Generally, you just accept a slight variation. If you are counting words in a professional context, i.e. where payment is per word, you probably need a contractual definition of how words are to be counted; in the absence of one, I suggest you use Word.

  • Calling a file and counting the number of words in it-please help!!

    * @(#)WordCounterTwo.java
    * WordCounterTwo application
    * @author
    * @version 1.00 2007/11/17
    import java.util.Scanner;
    public class WordCounterTwo {
    public static void main(String[] args) {
         Scanner keyboard = new Scanner(System.in);
         String fileName;
         int countWords;
         System.out.println("Please enter the name of the file: ");
         fileName = keyboard.nextLine();
         System.out.println(countWords.lastIndexOf());
    }

    I am getting error message as follows:
    cannot find symbol constructor StringTokenizer() on line
    I am asking the user to enter the name of a file, and the output is supposed to display the number of words in the file that chosen. I'm not sure if I am going about this right way, and not sure why I am getting the erorr messages.
    * @(#)WordCounter.java
    * WordCounter application
    * @author
    * @version 1.00 2007/11/17
    import java.util.Scanner;
    import java.util.StringTokenizer;
    public class WordCounter {
        public static void main(String[] args) {
             String sentence;
             Scanner keyboard = new Scanner(System.in);
             StringTokenizer words = new StringTokenizer();  //line 17
             int numberWords;
             System.out.println("Please enter a sentence");
             sentence = keyboard.nextLine();
             sentence = words.nextToken();
             while (words.hasMoreTokens())
                  numberWords++;
             System.out.println(numberWords);
    }

  • Can I limit the number of words in text fields?

    I am creating a fillable form using Adobe Acrobat XI.  I know how to limit the character count in a text field, but my client would prefer that the field limit the actual number of words.  Is there a way to do this?
    Thank you!
    Jeanne

    Yes, it is possible, but it requires using a custom-made script.

  • Write number in words (using Oracle)

    Hello
    Can you please advise how to convert a number to word in Oracle?
    I am aware of using following but this has limitation of using number till 5373484
    select to_char(to_date('2013', 'j'), 'jsp') as "Date in Words" from dual
    Thanks in advance,
    Tinku

    Hi, Tinku,
    See this Tom Kyte page. It shows how to insert "billion", "trillion" etc. into the strings that 'Jsp' provides. Basically, you only have to spell the first thousand numbers, that is, up to 3 digits. The next 3 digits just repeat the pattern, with "thousand" appended to the end. The 3 digits after that just repeat the pattern again, with "million" concatenated, the 3 digits after that have "billion" (at least in the USA), and so on.
    The same page also shows spelling functions for French and Portuguese.

  • Number to word Indonesia version

    i need a help
    i want to make number to word conversion in indonesia language
    my question how to use the javascript in adobe livecyle, i am a newbie in using javascript and livecyle
    here the script that i got from google
    [quoute]
    function terbilang(bilangan) {
    bilangan    = String(bilangan);
    var angka   = new Array('0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0');
    var kata    = new Array('','Satu','Dua','Tiga','Empat','Lima','Enam','Tujuh','Delapan','Sembilan');
    var tingkat = new Array('','Ribu','Juta','Milyar','Triliun');
    var panjang_bilangan = bilangan.length;
    /* pengujian panjang bilangan */
    if (panjang_bilangan > 15) {
       kaLimat = "Diluar Batas";
       return kaLimat;
    /* mengambil angka-angka yang ada dalam bilangan, dimasukkan ke dalam array */
    for (i = 1; i <= panjang_bilangan; i++) {
       angka[i] = bilangan.substr(-(i),1);
    i = 1;
    j = 0;
    kaLimat = "";
    /* mulai proses iterasi terhadap array angka */
    while (i <= panjang_bilangan) {
       subkaLimat = "";
       kata1 = "";
       kata2 = "";
       kata3 = "";
       /* untuk Ratusan */
       if (angka[i+2] != "0") {
         if (angka[i+2] == "1") {
           kata1 = "Seratus";
         } else {
           kata1 = kata[angka[i+2]] + " Ratus";
       /* untuk Puluhan atau Belasan */
       if (angka[i+1] != "0") {
         if (angka[i+1] == "1") {
           if (angka[i] == "0") {
             kata2 = "Sepuluh";
           } else if (angka[i] == "1") {
             kata2 = "Sebelas";
           } else {
             kata2 = kata[angka[i]] + " Belas";
         } else {
           kata2 = kata[angka[i+1]] + " Puluh";
       /* untuk Satuan */
       if (angka[i] != "0") {
         if (angka[i+1] != "1") {
           kata3 = kata[angka[i]];
       /* pengujian angka apakah tidak nol semua, lalu ditambahkan tingkat */
       if ((angka[i] != "0") || (angka[i+1] != "0") || (angka[i+2] != "0")) {
         subkaLimat = kata1+" "+kata2+" "+kata3+" "+tingkat[j]+" ";
       /* gabungkan variabe sub kaLimat (untuk Satu blok 3 angka) ke variabel kaLimat */
       kaLimat = subkaLimat + kaLimat;
       i = i + 3;
       j = j + 1;
    /* mengganti Satu Ribu jadi Seribu jika diperlukan */
    if ((angka[5] == "0") && (angka[6] == "0")) {
       kaLimat = kaLimat.replace("Satu Ribu","Seribu");
    return kaLimat + "Rupiah";
    [/quote]
    PLEASEEE................ YOUR HELP...

    i need a help
    i want to make number to word conversion in indonesia language
    my question how to use the javascript in adobe livecyle, i am a newbie in using javascript and livecyle
    here the script that i got from google
    [quoute]
    function terbilang(bilangan) {
    bilangan    = String(bilangan);
    var angka   = new Array('0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0');
    var kata    = new Array('','Satu','Dua','Tiga','Empat','Lima','Enam','Tujuh','Delapan','Sembilan');
    var tingkat = new Array('','Ribu','Juta','Milyar','Triliun');
    var panjang_bilangan = bilangan.length;
    /* pengujian panjang bilangan */
    if (panjang_bilangan > 15) {
       kaLimat = "Diluar Batas";
       return kaLimat;
    /* mengambil angka-angka yang ada dalam bilangan, dimasukkan ke dalam array */
    for (i = 1; i <= panjang_bilangan; i++) {
       angka[i] = bilangan.substr(-(i),1);
    i = 1;
    j = 0;
    kaLimat = "";
    /* mulai proses iterasi terhadap array angka */
    while (i <= panjang_bilangan) {
       subkaLimat = "";
       kata1 = "";
       kata2 = "";
       kata3 = "";
       /* untuk Ratusan */
       if (angka[i+2] != "0") {
         if (angka[i+2] == "1") {
           kata1 = "Seratus";
         } else {
           kata1 = kata[angka[i+2]] + " Ratus";
       /* untuk Puluhan atau Belasan */
       if (angka[i+1] != "0") {
         if (angka[i+1] == "1") {
           if (angka[i] == "0") {
             kata2 = "Sepuluh";
           } else if (angka[i] == "1") {
             kata2 = "Sebelas";
           } else {
             kata2 = kata[angka[i]] + " Belas";
         } else {
           kata2 = kata[angka[i+1]] + " Puluh";
       /* untuk Satuan */
       if (angka[i] != "0") {
         if (angka[i+1] != "1") {
           kata3 = kata[angka[i]];
       /* pengujian angka apakah tidak nol semua, lalu ditambahkan tingkat */
       if ((angka[i] != "0") || (angka[i+1] != "0") || (angka[i+2] != "0")) {
         subkaLimat = kata1+" "+kata2+" "+kata3+" "+tingkat[j]+" ";
       /* gabungkan variabe sub kaLimat (untuk Satu blok 3 angka) ke variabel kaLimat */
       kaLimat = subkaLimat + kaLimat;
       i = i + 3;
       j = j + 1;
    /* mengganti Satu Ribu jadi Seribu jika diperlukan */
    if ((angka[5] == "0") && (angka[6] == "0")) {
       kaLimat = kaLimat.replace("Satu Ribu","Seribu");
    return kaLimat + "Rupiah";
    [/quote]
    PLEASEEE................ YOUR HELP...

  • Number to Word Convert Function

    Dear All,
    Plz anybody have function name which can convert NUMBER to WORD.
    example:  1213 to One Thousand Two Hundred Thirteen
    thanks,
    RP

    rp,
      Pls. use below FM...
    CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
    AMOUNT = amouno
    CURRENCY = 'USD'
    FILLER = ' '
    LANGUAGE = SY-LANGU
    IMPORTING
    IN_WORDS = SPELL
    EXCEPTIONS
    NOT_FOUND = 1
    TOO_LARGE = 2
    OTHERS = 3.
    Check
    http://www.sap-img.com/fu001.htm
    (OR)
    Also you can use FM HR_IN_CHG_INR_WRDS.
    report ztest02.
    data: words(50) type c.
    call function 'HR_IN_CHG_INR_WRDS'
    exporting
    amt_in_num = '100000'
    importing
    amt_in_words = words.
    write:/ words.
    Pls. Reward if useful

  • NUMBER TO WORDS CONVERSION

    AOA ALL
    Dear i want to convert a numeric value for eg:'1000' into words that is 'ONE THOUSAND' in a report.does any body knows a method or function for that available in developer or any other way...
    do tell me
    thx

    Hi,
    See the link
    converting number to words(100==one hundred)
    Provided a function to convert number to words
    Thanks,
    Oracle Reports Team

  • Program to count number of words

    I need some help with writing a program that counts the number of words in a file. Can anyone help me?

    I would try:
    read line
    save line to a string
    use split(" ") method from String to get each word
    into a String[]
    then put each entry in the array into a list
    repeat for all lines
    get size of listThat will only work for small-ish files. I would recommend using indexOf() until EOF is reached. You would need logic to ignore consecutive spaces and the like, but it should be both significantly smaller in memory footprint and faster in execution speed.
    - Saish

  • Help!! count the number of words in one line

    the question is that use JOptionPane and Array to count the number of words and characters that user inputed.
    for example, if I enter the " this is a java program"
    that messages have display 5 and 18.
    please show me the a completely program.
    thx!!!!

    You guys are heartless. Even you weren't born with programming knowledge hard-coded into your brain. Even you had to start from zero. Even you had to struggle at something in your life. In this spirit, I think that we should give this poor student a break and try to help him as much as possible. Here, try out my program, and perhaps it will give you some ideas for your own:
    public class WordCountingHomework
      public static void main(String[] args) throws InterruptedException
        String input = JOptionPane.showInputDialog("Please enter a String");
        // get your String and split the String into words
        // This will allow you to count words easily
        String[] strArray = new String(wordCountByteArray).split(" ");
        int delay = 400;
        for (;;)
          // loop through the array to count the words
          for (String string : strArray)
            System.out.print(string + " ");
            Thread.sleep(delay);
          System.out.println();
          delay *= 7;
          delay /= 10;
      private static byte[] wordCountByteArray =
        0x50, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x20, 0x64, 0x6f, 0x20, 0x79, 0x6f,
        0x75, 0x72, 0x20, 0x6f, 0x77, 0x6e, 0x20, 0x66, 0x61, 0x72, 0x6b, 0x69,
        0x6e, 0x27, 0x20, 0x68, 0x6f, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x21
    }

Maybe you are looking for

  • In my yahoo email, attachments disappear, and i can only open the inbox, not delete or move anything- help!

    for the past week, my yahoo email will not work in mozilla, my regular browser of choice. the entire list of folders on the left column will not open, the menu options on the top will not open, the setting wheel included. the yahoo account now works

  • RFC_ERROR_SYSTEM_FAILURE

    Try to execute a function (ECATT_EXECUTE) with JCO. It is okay, when SAP system ist Release 6.40 but on a SAP 7.0 system it fails with: com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Zugriff über 'NULL' Objektreferenz nicht möglich.   

  • External Mice register but do not function

    I can not get any USB mouse to function with my Toshiba Satellite A665D. The mice all register and install drivers when they are plugged in.  The device manager shows them functioning perfectly, but they do not function at all.  Every few minutes whi

  • Issue with executing Business Rules from Planning web

    Hi, We are using Hyperion Planning 9.3.0.1 and we keep getting an issue with the Business Rules. We get an error if we try to run the rules from Planning web. The same rules validates and executes fine if we run it from AAS. This issue gets resolved

  • Error when upgrading to exchange 2013 SP1

    * First, I install Exchange 2013 SP1 on my server, so step 14 of 18 to 100% then alert error: ======================= Error: The following error was generated when "$error.Clear();           $name = [Microsoft.Exchange.Management.RecipientTasks.Enabl