Skip to Content
author's profile photo Former Member
Former Member

How to convert a number in plain English?

Hi !

I am looking for away to write a program who would be able to convert a number/digit into words : for example a function that would have in input "233" and would write in output the number in plain English "Two hundred and thirty three"

Is there any standrad function who does this ?

Thanks

CK

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Apr 14, 2008 at 09:23 AM

    SPELL_AMOUNT is the FM.

    Regards

    Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 09:23 AM

    use fm spell_amount

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 09:23 AM

    Hi,

    Use the function module

    HR_IN_CHG_INR_WRDS

    Note: You ignore the rupees.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 09:28 AM

    Hi,

    Check SPEL_AMOUNT function modulu.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 09:29 AM

    Hi, Use the Function Module SPELL_AMOUNT to convert the integer into text.

    DATA v_int TYPE i VALUE '1000'.  DATA words LIKE spell.
    CALL FUNCTION 'SPELL_AMOUNT'
      EXPORTING
        amount   = v_int
        language = sy-langu
      IMPORTING
        in_words = words.
    WRITE words-word.
    Regards, Venkat.O

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.