‎2008 Apr 17 11:32 AM
Hi All,
I want to convert the amount in words.
I am using function module SPELL_AMOUNT.
But my problem is when i pass float value such as 85.50 its just giving me output as Eighty Five instead of Eighty five rupees fifty paisa.
What should i do to solve this problem.
Is there any other fn module or am i giving some wrong input?
Plz suggest me.
Regards,
Deepak.
‎2008 Apr 17 12:10 PM
Hi,
In FM SPELL_AMOUNT pass currency as 'INR', then it gives Eighty Five in IN_WORDS-WORDS & Fifty in IN_WORDS-DECWORD. So concatenate 'Rupees' IN_WORDS-WORD ' '&' 'Paise' IN_WORDS-DECWORD 'Only' spparated by Space. You can test this directly from SE37 as well.
I hope this helps,
Regards
Raju Chitale
‎2008 Apr 17 11:44 AM
‎2008 Apr 17 11:48 AM
hey i dnt know any standard one but i have created a y function module for the same
will that be ok?
‎2008 Apr 17 11:53 AM
You will get 85.50 as rupees eighty and paise fifty.
just write the code as :
write: / 'rrupees' , word , 'and paise' , dec_word.
Reward if it helpful.
Dara.
‎2008 Apr 17 11:56 AM
hi check this...functional module ...
it is giving the rupees along with paise..
HR_IN_CHG_INR_WRDS
parameters:AMT like PC207-BETRG .
data: words(100) type c.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = AMT
IMPORTING
AMT_IN_WORDS = WORDS .
write:/ words.
regards,
venkat.
‎2008 Apr 17 12:04 PM
‎2008 Apr 17 12:08 PM
Hi,
Instead of 'SPELL_AMOUNT' use the Function Module 'HR_IN_CHG_INR_WRDS'.
It will work for your requirement.
‎2008 Apr 17 12:10 PM
Hi,
In FM SPELL_AMOUNT pass currency as 'INR', then it gives Eighty Five in IN_WORDS-WORDS & Fifty in IN_WORDS-DECWORD. So concatenate 'Rupees' IN_WORDS-WORD ' '&' 'Paise' IN_WORDS-DECWORD 'Only' spparated by Space. You can test this directly from SE37 as well.
I hope this helps,
Regards
Raju Chitale