2008 Jun 07 10:44 AM
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.
.
2008 Jun 07 10:55 AM
Hi,
Use SPELL_AMOUNT function module. It will convert amount into words. export this text to the smartforms.
Regards,
Bhanu
2008 Jun 07 10:56 AM
hi try using this FM SPELL_AMOUNT
reward points if useful.......:-)
and mark the post answred once ur problem is solved ....
2008 Jun 07 11:02 AM
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 ....
2008 Jun 07 11:04 AM
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,
2008 Jun 07 11:17 AM
hello,
mark the post answered once ur problem is solved... dont keep it open for others to answer unnecessarily
2008 Jun 07 8:33 PM