Skip to Content
author's profile photo
Former Member

Function Modules

Hi All,

I have an amount which is in US Dollars,and i want to print it in words.what are the functionmodules related to display amount in words which is in different currancy.

Help me.

Thanks,

R.P.Sastry

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Posted on Sep 28, 2007 at 07:04 AM

    parayya,

    You can use the below FMs

    Spell Amount:

    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

    EXPORTING

    AMT_IN_NUM = V_STOTAL “ Amount to spell

    IMPORTING

    AMT_IN_WORDS = V_TOTWORDS “ Amount spelt

    EXCEPTIONS

    DATA_TYPE_MISMATCH = 1

    OTHERS = 2.

                          • Another FM for the same purpose ************

                          <b>CALL FUNCTION 'SPELL_AMOUNT'</b>

                          EXPORTING

                          AMOUNT = V_AMOUNT " Amount to be spelt

                          CURRENCY = PWAERS " Currency

                          FILLER = SPACE " Space filler

                          LANGUAGE = 'E' " Language

                          IMPORTING

                          IN_WORDS = V_SPELL " Amount Spelt

                          EXCEPTIONS

                          NOT_FOUND = 1

                          TOO_LARGE = 2

                          OTHERS = 3.

                          reward if helpful,

                          Karthik

                          Add comment
                          10|10000 characters needed characters exceeded

                        • author's profile photo
                          Former Member
                          Posted on Sep 28, 2007 at 07:05 AM

                          use SPELL_AMOUNT fun.module..

                          Add comment
                          10|10000 characters needed characters exceeded

                        • author's profile photo
                          Former Member
                          Posted on Sep 28, 2007 at 07:06 AM

                          hi,

                          Chk this

                          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.

                          Rgds

                          Mukesh

                          Add comment
                          10|10000 characters needed characters exceeded