cancel
Showing results for 
Search instead for 
Did you mean: 

convert amount in no's to words

Former Member
0 Kudos

hi sapiens,

I need a code or Fm to convert amount in numbers to words

eg) 1500 ---> one thousand and five hundred

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use FM SPELL_AMOUNT

Pass the below value only

Import parameters Value

AMOUNT 1234

CURRENCY

FILLER

LANGUAGE EN

Export parameters Value

IN_WORDS 000000000001234000 0 ONE THOUSAND TWO HUNDRED THIRTY-FOUR

Regards

Shiva

Answers (7)

Answers (7)

Former Member
0 Kudos

thanks for all ..

former_member196280
Active Contributor
0 Kudos

useFM,

SPELL_AMOUNT --> for display in millions

HR_IN_CHG_INR_WRDS --> for display in lakhs and crores

Reward points if useful.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

Like HR_IN_CHG_INR_WRDS we have any other FM for currency IDR (Indonesian Lang)

Regards,

anversha_s
Active Contributor
0 Kudos

hi,

just execute this code..

data: words(50) type c.

call function 'HR_IN_CHG_INR_WRDS'

exporting

amt_in_num = '1500'

importing

amt_in_words = words.

write:/ words.

Rgds

Anversja

Former Member
0 Kudos

You can even use <b>HR_IN_CHG_INR_WRDS</b>if the currency is in INR.

gopi_narendra
Active Contributor
0 Kudos

FM : SPELL_AMOUNT will serve the purpose

Regards

Gopi

Former Member
0 Kudos

Hi Manikandan ,

use the FM SPELL_AMOUNT.

Regards

Arun

Former Member
0 Kudos
*---------------------------------------------------------------------*
*       FORM SPELL_AMOUNT                                             *
*---------------------------------------------------------------------*
form spell_amount using pwrbtr pwaers.
 
  call function 'SPELL_AMOUNT'
       exporting
            amount    = pamount
            currency  = pwaers
            filler    = space
            language  = 'E'
       importing
            in_words  = t_spell
       exceptions
            not_found = 1
            too_large = 2
            others    = 3.
endform.