‎2008 Oct 21 11:41 AM
Hi,
Which function module can we use for
1. to convert Numberic value to Value in words say Amount 100.9 -in words one hundred & paise nine only
2. to convert exchange rate automatically based on obo8 setting
say usd to inr
Edited by: Aspirant sd SD on Oct 21, 2008 12:41 PM
‎2008 Oct 21 11:42 AM
‎2008 Oct 21 11:46 AM
Hello,
I think we dont have any functional module but we can write the progam by checking the each digit in the program using case statement.
‎2008 Oct 21 11:51 AM
SPELL_AMOUNT - Convert numbers and figures in words
READ_EXCHANGE_RATE - Translation of Currency Amounts etc.
‎2008 Oct 21 11:52 AM
Hello,
you can use this FM SPELL_AMOUNT
Inputs:
AMOUNT 1,437.00
CURRENCY INR
LANGUAGE EN
Output:
000000000001437 000 2 ONE THOUSAND FOUR HUNDRED THIRTY-SEVEN
‎2008 Oct 22 7:04 AM
HI,
THX FOR REPLYIN.
Can you pl tel me how to execute this function module directly which tcode to use
‎2008 Oct 22 7:05 AM
‎2008 Oct 22 7:09 AM
hi,
se37 -fun module SPELL_AMOUNT
AMOUNT 999.19
CURRENCY INR
FILLER
LANGUAGE EN
it shows NINE HUNDRED NINETY-NINE
1 Paise is not coming as nineteen paise only
2 what is FILLER OPTION
‎2008 Oct 22 7:12 AM
‎2008 Oct 22 7:14 AM
HI,
i want to know in tcode J1iin which function module is used for exchange rate conversion
which picks tate from ob08 setting
pl suggest
‎2008 Oct 22 7:26 AM
‎2008 Oct 22 10:43 AM
hi,
thx for replyin
CMS_API_CURR_CONV i checked by usd to inr i tried it picks same rate for all dates
thought exchange rate is different 0.02500
i'm looking for fun module used in tcode J1IIN which picks from OB08 RATE SETTING
PL SUGGEST
‎2008 Oct 22 11:03 AM
Hi,
In J1iin they are using fm CONVERT_TO_LOCAL_CURRENCY
call function 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
date = j1ii300-pdate
foreign_amount = excitm-nccd
foreign_currency = j1ii300-waerk
local_currency = j1ii300-waers
rate = excitm-kursk
type_of_rate = j_1iindcus-j_1iexpexcg
IMPORTING
local_amount = excitm-nccd
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
others = 5.
Please check it and say.....
Regards
Debarshi
‎2008 Oct 22 11:03 AM
Hello
1 Paise is not coming as nineteen paise only
2 what is FILLER OPTION
1. Return table have fields: word and decword.
2. Filler - it is a symbol which is filled initial place.
P.s. Look at report RF_SPELL.
‎2008 Oct 21 11:53 AM
Hi...
Sample code:1
call function 'SPELL_AMOUNT'
exporting
language = sy-langu
currency = <pass currrency like USD>
amount = <Input Amount>
importing
in_words = spell(type spell)
write spell-word to amount(char300).Here you will get output into amount.if it is not currency field say percentage or quanity dont pass the currency parameter.
Thanks,
Naveen.I
‎2008 Oct 21 11:54 AM
Hi
Use SPELL_AMOUNT Fm to convert numeric into words
Use CALCULATE_EXCHANGE_RATE For second
‎2008 Oct 21 12:20 PM
Hi,
Amount is represented in different ways in different countries. For example, the amount 100000 is read as one hundred thousand in some countries and one lakh in countries like India .
This tip details about printing the amount in words for Indian Currency. We can use the function module HR_IN_CHG_INR_WRDS in this regard.