Amount in words with 'AND' in between.

Hi All,
I have a requiremnt where in i neeed to convert my amount to words and display in SAP script.
I can use the FM SPELL_AMOUNT.This will give the result in words.I need to have the AND in b/w these.
eg:123456789
result:ONE HUNDRED TWENTY-THREE MILLION FOUR HUNDRED FIFTY-SIX THOUSAND SEVEN HUNDRED EIGHTY-NINE.
My requirement:ONE HUNDRED AND TWENTY-THREE MILLION FOUR HUNDRED AND FIFTY-SIX THOUSAND SEVEN HUNDRED AND EIGHTY-NINE.
Any pointers would be appreciated.

Hi,
DATA: w_words(200).
After calling FM USe: Concatenate IN_WORDS-WORD 'AND' IN_WORDS-DECWORD into W_WORDS. Now W_Words Will contain the string you required.
Regards
Raju Chitale

Similar Messages

  • I just updated pages, I can't count the amount of words with space anymore. Can anybody help me?

    I just updated pages, I can't count the amount of words with space anymore. Can anybody help me?

    Yes me too, tried re setting and enabling changes but no agree button anywhere?

  • Cheque amount to word with space inbetween

    Hi All
    Has anyone come across printing cheque amount to WORD with space inbetween the word wrap to make the cheque look tidy.  
    Any help will be appreciate
    Raj

    Hi,
    Have you designed cheque through PLD or CR.
    regds,
    sampath.

  • WildCard with And

    Can someone please help me. I know some stuff about Oracle Text and then it seems like when I get it figured out something else breaks. I know "And" is a stopword so I've made my own stopword list and made "and" a regular word
    This is my contains statement;
    AND CONTAINS (location, '%BRICK {AND}%
    OR $(SYN(BRICK) AND SYN({AND}))
    OR ?(SYN(BRICK) AND SYN({AND}))
    OR !(SYN(BRICK) AND SYN({AND})) ',1) > 0)
    The Problem is I get a "WildCard error to many"
    However
    If I do this;
    AND CONTAINS (location, '{%BRICK AND%}
    OR $(SYN(BRICK) AND SYN({AND}))
    OR ?(SYN(BRICK) AND SYN({AND}))
    OR !(SYN(BRICK) AND SYN({AND})) ',1) > 0)
    No Errors. I get two records back.
    or this
    AND CONTAINS (location, '%AND%
    OR $(SYN({AND}))
    OR ?(SYN({AND}))
    OR !(SYN({AND})) ',1) > 0)
    No Errors. I get records back.
    I don't understand this. In the first contains it looks for a word or a word with "brick" in it and then the word "and" and then another word.
    The second contains looks for any words that has a word with or without "brick" , "and" in a word or not, and then anything else.
    Is this right or am I misunderstanding something. I only have about 47,000 records in the table so I can't understand why I am getting this error.
    These are my preferences
    begin
    ctx_ddl.create_preference('PREF_SOUNDEX', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('PREF_SOUNDEX','PREFIX_INDEX','TRUE');
    ctx_ddl.set_attribute('PREF_SOUNDEX','PREFIX_MIN_LENGTH',3);
    ctx_ddl.set_attribute('PREF_SOUNDEX','PREFIX_MAX_LENGTH',15);
    ctx_ddl.set_attribute('PREF_SOUNDEX','SUBSTRING_INDEX','TRUE');
    ctx_ddl.set_attribute('PREF_SOUNDEX','WILDCARD_MAXTERMS',15000);
    ctx_ddl.create_preference('MAF_LEXER','BASIC_LEXER');
    ctx_ddl.set_attribute('MAF_LEXER','printjoins','-#&');
    ctx_ddl.set_attribute('MAF_LEXER','skipjoins','(.),');
    end;
    How exactly does the substring index work? Are there to many words with "and" in them and that is why it gives me this error?
    Any help is greatly appreciated
    Thanks
    Jeff

    I believe the problem is that you cannot combine escaping with {} and wildcarding with %. It seems to have the effect of attempting to expand to include every indexed term, as if you had searched for just %. Even if you have a small enough dataset and/or wildcard_maxterms set high enough, although it will not produce an error, it also does not return any rows. Please see the demonstration below.
    SCOTT@10gXE> -- table:
    SCOTT@10gXE> CREATE TABLE your_table (location VARCHAR2 (30))
      2  /
    Table created.
    SCOTT@10gXE> -- data:
    SCOTT@10gXE> INSERT ALL
      2  INTO your_table VALUES ('WORD')
      3  INTO your_table VALUES ('WORDS')
      4  INTO your_table VALUES ('WHATEVER')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    SCOTT@10gXE> -- preferences:
    SCOTT@10gXE> begin
      2    ctx_ddl.create_preference('PREF_SOUNDEX', 'BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('PREF_SOUNDEX','PREFIX_INDEX','TRUE');
      4    ctx_ddl.set_attribute('PREF_SOUNDEX','PREFIX_MIN_LENGTH',3);
      5    ctx_ddl.set_attribute('PREF_SOUNDEX','PREFIX_MAX_LENGTH',15);
      6    ctx_ddl.set_attribute('PREF_SOUNDEX','SUBSTRING_INDEX','TRUE');
      7    ctx_ddl.set_attribute('PREF_SOUNDEX','WILDCARD_MAXTERMS', 6);
      8    ctx_ddl.create_preference('MAF_LEXER','BASIC_LEXER');
      9    ctx_ddl.set_attribute('MAF_LEXER','printjoins','-#&');
    10    ctx_ddl.set_attribute('MAF_LEXER','skipjoins','(.),');
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> -- index:
    SCOTT@10gXE> CREATE INDEX your_index ON your_table (location)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('WORDLIST pref_soundex
      5        LEXER       maf_lexer
      6        STOPLIST CTXSYS.EMPTY_STOPLIST')
      7  /
    Index created.
    SCOTT@10gXE> -- This is what is tokenized, indexed, and searchable:
    SCOTT@10gXE> SELECT token_text FROM dr$your_index$i
      2  /
    TOKEN_TEXT
    WHA
    WHAT
    WHATE
    WHATEV
    WHATEVE
    WHATEVER
    WHATEVER
    WOR
    WORD
    WORD
    WORDS
    WORDS
    12 rows selected.
    SCOTT@10gXE> -- This works:
    SCOTT@10gXE> SELECT * FROM your_table
      2  WHERE  CONTAINS (location, 'WORD%', 1) > 0
      3  /
    LOCATION
    WORD
    WORDS
    SCOTT@10gXE> -- the following queries expand to more than 6 of the above tokens:
    SCOTT@10gXE> SELECT * FROM your_table
      2  WHERE  CONTAINS (location, '{WORD}%', 1) > 0
      3  /
    SELECT * FROM your_table
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    SCOTT@10gXE> SELECT * FROM your_table
      2  WHERE  CONTAINS (location, '%', 1) > 0
      3  /
    SELECT * FROM your_table
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-51030: wildcard query expansion resulted in too many terms
    SCOTT@10gXE> -- increase wildcard_maxterms:
    SCOTT@10gXE> exec ctx_ddl.set_attribute('PREF_SOUNDEX','WILDCARD_MAXTERMS', 50)
    PL/SQL procedure successfully completed.
    SCOTT@10gXE> drop index your_index
      2  /
    Index dropped.
    SCOTT@10gXE> CREATE INDEX your_index ON your_table (location)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('WORDLIST pref_soundex
      5        LEXER       maf_lexer
      6        STOPLIST CTXSYS.EMPTY_STOPLIST')
      7  /
    Index created.
    SCOTT@10gXE> -- now there is no error:
    SCOTT@10gXE> SELECT * FROM your_table
      2  WHERE  CONTAINS (location, '{WORD}%', 1) > 0
      3  /
    no rows selected
    SCOTT@10gXE> SELECT * FROM your_table
      2  WHERE  CONTAINS (location, '%', 1) > 0
      3  /
    LOCATION
    WORD
    WORDS
    WHATEVER
    SCOTT@10gXE>

  • Indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.

    indesign opens files with no space between each word, this happened after a mac update, help?? I don't want to have to go through and manually do it.
    thanks in advance!

    If you are unable to enter the passcode into your device, you will have to restore the device to circumvent that passcode.
    Is the music purchased from iTunes? If it is you can contact iTunes support and ask them to allow you to re-download the music that you purchased from iTunes.
    Also, do you sync the device regularly? When syncing an iPod Touch/iPhone a backup file is made. That backup file doesn't contain your music but it does contain your address book, application data, pictures, notes, etc. After restoring your device, you can try restoring from the last backup that was made of your device so you will not have to start over completely from scratch.
    Hope this helps!

  • How can I exchange my pc created documents on Excel, Word, and PowerPoint with my mac and my Pages, Numbers and Keynote created content with my pc?  I need to create and edit between both.

    How can I exchange my pc created documents on Excel, Word, and PowerPoint with my mac and my Pages, Numbers and Keynote created content with my pc?  I need to create and edit and exchange between both types of operating systems.

    Your Windows system will not open any Pages, Numbers or Keynote documents. No applications exist for Windows that can open those formats. You will need to export your documents in Word, Excel and PowerPoint formats, respectively, before you'll be able to view and edit the documents on your Windows system. The iWork documents can natively open Word, Excel and PP documents, though there are limitations on what can be imported (for instance, Numbers does not support all possible Excel functions). Consult the documentation for the relevant iWork application for details on importing and exporting.
    If you are asking how to get the documents from one system to the other, then there are several ways to do that, including file sharing, using an external drive (hard drive, USB flash drive), or emailing the documents to yourself. Which would be best for your situation I can't say without more details about your usage.
    Regarsd.

  • PE51 convert amount into words and concatenate the value with cents

    Hi gurus,
    I'm facing a problem in PE51...
    I have this amount: 655.690,32
    And it should appear in the form like this Example:
    Six hundred and fifty five thousand six hundred and ninety Dollars and Thirty-two cents.
    In PE51 I have two options:
    - Numbers in words (w/o DP) - give me the first underlined part
    - Numbers in words(only DP) - give me the second underlined part
    But I need to find a way to show then like in the example... The first and second part should appear together like if they were concatenated separated by space.
    Thanks in advance.
    PC

    You move the v_tot_comm into an Integer and try so that u will only get SPEELING of that value.
    For example pass only 23,492 instead of 23,492.58 and for 58 paise you do your string manipulation work.

  • I  have a problem with the synchronisation of my iPhone and iPad with Outlook 2007 on my 64-bit Windows 7  PC. For several years, I have had no problems with the synchronisation by cord connection and iTunes between these programmes. However, a few months

    I  have a problem with the synchronisation of my iPhone and iPad with Outlook 2007 on my 64-bit Windows 7  PC. For several years,
    I have had no problems with the synchronisation by cord connection and iTunes between these programmes. However, a few months ago I decided to use Mobile Me. However, there were problems with duplication of calendars and then “rogue events” – which could not be deleted – even if deleted on Outlook and on the iPhone (or both at the same time) – they would just reappear after the next synchronisation.  All other synchronisation areas (eg Contacts, Notes etc) work fine.
    I have looked for help through the Apple Support Community and tried many things.  I have repaired my Outlook. I have repaired my .pst file in Windows. I have re-installed the latest version of iTunes on my PC. I have re-installed the firmware on my iPhone. I have tried many permutations on my iPhone. I have closed down all Mobile Me functions on the iPhone. I have spent upwards of 24 hours trying to solve this problem.
    What am I left with? Outlook works seamlessly on my PC. My iPhone calendar now has no events from  my calendar, but does not synchronise through iTunes. Nor does it send events initiated on the iPhone to the Outlook. I am at the point of abandoning iPhones and iPads altogether.  I need to have a properly synchronising calendar on my phone.  Do you have any suggestions?

    In the control panel goto the "Lenovo - Power Manager" and click the battery tab, there is a maintenance button in there that will let you change the charging profile for your battery.   (from memory, so exact wording may be off)
     The lower the numbers you use there, the longer the battery *should* last.    These batteries degrade faster at higher charge levels, however storing them at too low of levels is also not good for them... I've read that 40% is optimal, but just not realistic if you use your computer.
    --- ThinkPad T61 / Win 7 / Core 2 / 4gb RAM / Nvidia / Still used daily --- ThinkPad Edge 15/ i5 / Win 7 / TrueCrypt / 8gb RAM / Hated it, died at 1 yr 1 mo old --- ThinkPad T510 / Win 7 / TrueCrypt / i5 / 8gb RAM / Nvidia / Current primary machine --- ThinkPad X220 / i7 / IPS / 4gb / TrueCrypt / My Road Machine

  • Crystal Report-Amount in Words Need correction and Delivery date.

    Dear Experts,
    Issue 1
                            In crystal reports i'm converting Amount in to words using the following formula. In that i am getting Every thing in Uppercase with - i.e. RUPEES ONE THOUSAND-FIVE HUNDRED AND .
    I need in Sentence case i.e all First Letters in Capital and also want to Remove '-'
    Amount in Word
    numbervar RmVal:=0;
    numbervar Amt:=0;
    numbervar pAmt:=0;
    stringvar InWords :="Rupees ";
    Amt := {OPOR.DocTotal};
    if Amt > 10000000 then RmVal := truncate(Amt/10000000);
    if Amt = 10000000 then RmVal := 1;
    if RmVal = 1 then
    InWords := InWords + " " + towords(RmVal,0) + " crore"
    else
            if RmVal > 1 then InWords := InWords + " " + towords(RmVal,0) + " crores";
        Amt := Amt - Rmval * 10000000;
        if Amt > 100000 then RmVal := truncate(Amt/100000);
        if Amt = 100000 then RmVal := 1;
        if RmVal = 1 then
            InWords := InWords + " " + towords(RmVal,0) + " lakhs"
        Else
            If RmVal > 1 then InWords := InWords + " " + ToWords(RmVal,0) + "Lakhs";
            Amt := Amt - Rmval * 100000;
            if Amt > 0 then InWords := InWords + " " + towords(truncate(Amt),0);
            pAmt := (Amt - truncate(Amt)) * 100;
            if pAmt > 0 then
                InWords := InWords + " and " + towords(pAmt,0) + " paisa only"
            else
                InWords := InWords + " only";
            UPPERCASE(InWords)
    Issue 2.
    At Delivery terms I'm using the following formula to display the delivery data. If the document date and due date is same it will print Delivery Immediate otherwise it should calculate the Delivery date from document date, but now it's printing DocDue date.
    I need to calculate Delivery Date = DocDuedate - DocDate. 
    If {OPOR.DocDate} = {OPOR.DocDueDate} Then
        "2. Delivery immediate"
    Else
        "2. Delivery on or before " &  {OPOR.DocDueDate}
    Thanks
    Kamal

    Hi
    Try this formula
    numbervar RmVal:=0;
    numbervar Amt:=0;
    numbervar pAmt:=0;
    stringvar InWords :="Rupees ";
    Amt := {@GrandTotal} ;
    if Amt > 10000000 then RmVal := truncate(Amt/10000000);
    if Amt = 10000000 then RmVal := 1;
       if RmVal = 1 then
            InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crore"
       else
            if RmVal > 1 then InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " crores";
        Amt := Amt - Rmval * 10000000;
        if Amt > 100000 then RmVal := truncate(Amt/100000);
        if Amt = 100000 then RmVal := 1;
        if RmVal = 1 then
            InWords := InWords + " " + ProperCase (towords(RmVal,0)) + " lakhs"
        Else
            If RmVal > 1 then InWords := InWords + " " + ProperCase (ToWords(RmVal,0)) + " Lakhs";
            Amt := Amt - Rmval * 100000;
            if Amt > 0 then InWords := InWords + " " + ProperCase (towords(truncate(Amt),0));
            pAmt := (Amt - truncate(Amt)) * 100;
            if pAmt > 0 then
                InWords := InWords + " and " + ProperCase (towords(pAmt,0)) + " paise only"
            else
                InWords := InWords + " only";
            ProperCase(InWords)
    Regards
    Vivek

  • How can i write with double spaces between words ?

    hello everyone,
    i need to write in pages with double spaces between words not between lines ..
    how can i do it and make it default ?
    for now, just write and click space bar twice ..!!!

    Do you really need to do this? It is so ugly and illegible.
    You can use a monospace font or use the auto-complete in Menu > Pages > Preferences to auto-substitute 2 spaces for each one.
    Peter

  • My Word  documents repeatedly crash when I cut and paste between documents or websites. Can you help?

    My Micrososft Word 2011 repeatedly freeze when I cut and paste between documents or with a website. Any advice?

    This is from the Microsoft Answers website,
    Try a Maggie:
    The Maggie:
    1. Create a new blank document in .docx format
    2. Carefully select all of the text in the bad document EXCEPT the last
    paragraph mark
    3. Copy it.
    4. Paste in the new document.
    5. Save under a new file name and close all, then re-open.
    This technique for de-corrupting is known as "Doing a 'Maggie'", after
    Margaret Secara from the TECHWR-L mailing list, who first publicised the
    technique.

  • Reg Currency Description and Amount in words

    Hi
    Can anybody help me out in finding Function Module for Currency Descripton and Amount in words.
    For  Example, if currency type is <b>USD</b> and the amount is <b>29,012.50</b>
    then it should display the currency description as <b>The sum of US Dollars</b> and the amount in words as <b>Twenty Nine Thousand Twelve and Cents Fifty</b> and it should work for any currency type.
    Thanks in Advance.
    Swathi

    Hi swathi,
    Cents are not known in SAP only USD with decimal places in known.
    however check if this can solve teh problem...
    for indian currency inr use the below function module....
    HR_IN_CHG_INR_WRDS
    for usd currency use the following code as an example..
    data: amt_in type  pc207-betrg value '29012.50'.
    data: words type spell.
    data: result type string.
    call function 'SPELL_AMOUNT'
    exporting
       amount          = amt_in
       currency        = 'USD'
      FILLER          = ' '
      LANGUAGE        = SY-LANGU
    importing
       in_words        = words
    EXCEPTIONS
      NOT_FOUND       = 1
      TOO_LARGE       = 2
      OTHERS          = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    concatenate 'USD' words-word 'AND' words-decword 'CENTS'
             into result separated by space.
    write:/ result.
    hope this helps,
    all the best,
    sampath
    award helpful answers

  • When I copy/paste a paragraph from a PDF doc, it pastes with no spaces between words. How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue.

    When I copy/paste a paragraph from a PDF doc (onto Facebook status bar, for example) it pastes with no spaces between words.  I.e: "The manhadajugofcoolwaterand offeredmeadrink." How can I fix this? I've searched everywhere for the solution but didn't find anyone had this issue. I'm new to Apple so any help will be much appreciated. Thanks!

    I can't speak about this occurring with FaceBook since I don't use FaceBook, but I see the same type of thing when I copy and pasted from websites. It doesn't always happen and I cannot find any particular set of circumstances under which it occurs or does not occur.
    I am merely responding to let you know that it happens to me as well and I have seen no way to correct it. I'm not so sure that there is a way to correct in in that it may have something to do with how the original text is formatted in the PDF or on the website and how it eventually "fits" into the text field or the area in which it is pasted.

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • I have Words with Friends app on iphone and game on computer.  When I try to play with Facebook friends message says" Account Already Connected.  This Facebook account has been connected to another user."  How can I play game on iphone or my pc?

    I have Words with Friends app on my iphone4S and the same game on computer.  When I try to play Words with Friends with Facebook on the iphone the  message says" Account Already Connected.  This Facebook account has been connected to another user."  It is connected to my computer. How can I play game on iphone?

    Hi Grandmaz5,
    If you are having issues connecting to Facebook on your iPad, and you have already troubleshot the Facebook app itself, you may want to check the built-in iOS settings for Facebook; you may find the following article helpful:
    iOS: Using Facebook, Twitter, and other social network accounts
    http://support.apple.com/kb/HT5500
    Regards,
    - Brenden

Maybe you are looking for

  • Lexicographic image processing

    I want to process the array of an image lexicographically (meaning reading as you write, so from left to right). Normal arithmatic functions (division, multiplication etcetera) multiply the entire array, but I want to push the top-left pixel through

  • BSO to ASO Formula Conversion - Help Needed

    ASO is not my forte...I am trying to get a simple formula to work in ASO cube as part of BSO->ASO conversion. If it is level 0 entity, the formula is (Last Shipped (PU) * Part Volume)...works fine. If its upper level, it should just sum the values of

  • HTTP to SOAP scenario

    Hi guys, We have developed an HTTP to SOAP scenario, where XI acts as the WS client in order to call an already published WS. When we are testing the scenario through RWB's interface (Component Monitoring --> Integration Server --> Integration Engine

  • IMac/Video Tearing Fix?

    Anyone know what the fix may be?

  • How do I install CS2 from discs so I can update to CS3

    I have a mac pro, I have CS2 discs and have the serial numbers for an update to CS3 however I cannot install CS2 on my mac pro. I am also frustrated that no matter what I do I cannot get in contact with Adobe.