Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

amount in words

Former Member
0 Kudos

Hi All,

Is there any function module to convert any currency in words.

eg:300.00

INR: three hundred rupees only

USD: three hundreds dollars only

etc..

we are spell_amount function module but it is not showing properly.

thanks.

6 REPLIES 6

JozsefSzikszai
Active Contributor
0 Kudos

hi Satya,

what is the problem with SPELL_AMOUNT? What it is not showing properly?

ec

Former Member
0 Kudos

Please reward points...

Former Member
0 Kudos

HI

data: words type spell.
 call function 'SPELL_AMOUNT'
 exporting
    amount          = '100000'
*   CURRENCY        = ' '
*   FILLER          = ' '
*   LANGUAGE        = SY-LANGU
  importing
    in_words        = words.
 if words-word = 'ONE HUNDRED THOUSAND'.
  words-word = '1 LAKH'.
endif.
 write:/ words-word.

Former Member
0 Kudos

Hi,

Here's an example,

Check it out,

data amt_in_num like pc207-betrg.

data amt_in_words(100) type c.

parameters: amount like amt_in_num.

call function 'HR_IN_CHG_INR_WRDS'

exporting

amt_in_num = amount

importing

amt_in_words = amt_in_words

exceptions

data_type_mismatch = 1

others = 2

.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

write amt_in_words.

Hope this helps,

Reward if helpful.

Regards,

Harini.S

Former Member
0 Kudos

sloved problem myself and so i am closing this issue.

0 Kudos

>

> sloved problem myself

You see, it is possible...

You other junk will be deleted, as will all future questions which are of the same quality.

Please read the forum rules before posting any further.

Cheers,

Julius