11-15-2007 9:48 AM
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.
11-15-2007 9:52 AM
hi Satya,
what is the problem with SPELL_AMOUNT? What it is not showing properly?
ec
11-15-2007 9:53 AM
11-15-2007 9:55 AM
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.
11-15-2007 10:02 AM
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
01-24-2009 6:21 AM
01-24-2009 8:41 AM
>
> 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