Application Development and Automation 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: 
Read only

Function Module

Former Member
0 Likes
751

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
724

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

7 REPLIES 7
Read only

Former Member
0 Likes
724

Hi,

Check this thread

Regards,

Satish

Read only

Former Member
0 Likes
724

hey i dnt know any standard one but i have created a y function module for the same

will that be ok?

Read only

Former Member
0 Likes
724

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.

Read only

Former Member
0 Likes
724

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.

Read only

Former Member
0 Likes
724

HI,

Please use FM HR_IN_CHG_INR_WRDS.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
724

Hi,

Instead of 'SPELL_AMOUNT' use the Function Module 'HR_IN_CHG_INR_WRDS'.

It will work for your requirement.

Read only

Former Member
0 Likes
725

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