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

Convert rupee into word format

Former Member
0 Likes
748

Hello Friends,

Now I am working on smartforms ,

In my internal table there is Rupees field & I want to convert into word format.

Example I have Rs. 1000/- in my internal table

How to change the number to words ?

One thousand only.

Thanks & regards,

Rahul S.

.

Hello Friends,

Now I am working on smartforms ,

In my internal table there is Rupees field & I want to convert into word format.

Example I have Rs. 1000/- in my internal table

How to change the number to words ?

One thousand only.

Thanks & regards,

Rahul S.

.

6 REPLIES 6
Read only

Former Member
0 Likes
709

Hi,

Use SPELL_AMOUNT function module. It will convert amount into words. export this text to the smartforms.

Regards,

Bhanu

Read only

Former Member
0 Likes
709

hi try using this FM SPELL_AMOUNT

reward points if useful.......:-)

and mark the post answred once ur problem is solved ....

Read only

Former Member
0 Likes
709

hey this is w.r.t my previous reply .

check out this code.....................

data : p_word like SPELL.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = '5000'

  • CURRENCY = ' '

  • FILLER = ' '

  • LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = p_word

  • EXCEPTIONS

  • NOT_FOUND = 1

  • TOO_LARGE = 2

  • OTHERS = 3

.

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 : p_word-word , 50 'Only'.

reward points if useful.......:-)

and mark the post answred once ur problem is solved ....

Read only

Former Member
0 Likes
709

Hi,

Check this sample code also.

*********

DATA: spell TYPE spell.

DATA: amount_desc(255) TYPE c.

PARAMETERS: amount TYPE i.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = amount

IMPORTING

in_words = spell.

CONCATENATE spell-word 'Rupees only' INTO amount_desc SEPARATED BY space.

WRITE: amount_desc.

***********

Regards,

Read only

Former Member
0 Likes
709

hello,

mark the post answered once ur problem is solved... dont keep it open for others to answer unnecessarily

Read only

Former Member
0 Likes
709

Hi,

Use FM SPELL_AMOUNT.

Thanks,

Sriram Ponna.