on 02-16-2008 10:09 AM
Hi Experts,
I want to print the amount i have dollars into words like US amount $59182.80 to USD fifty nine thousand one hundred eighty two and cents eighty only.
Reply ASAP.
Thanks in advace,
Abhishek Pandey.
You can try with these Function Modules
HR_IN_CHG_INR_WRDS
SPELL_AMOUNT
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.
/community [original link is broken]
Reward if usefull
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
LANGUAGE = SY-LANGU
CURRENCY = T001-WAERS "USD
AMOUNT ='59182.80 '
FILLER = SPACE
IMPORTING
IN_WORDS = SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2.
Check the structure of IN_WORDS in SPELL_AMOUNT fm.
Decimal value words are displayed in
IN_WORDS-DECWORD.
Reward points if useful.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.