‎2007 Mar 20 1:42 PM
Hi,
i want a function module that convert integer into characher
ex if i give 1 it has to give FIRST and 2 then it has to give SECOND .
or do we have any other way to get that .
Thanks
Gopan
‎2007 Mar 20 1:50 PM
Try this.....
DATA:v_curr LIKE SPELL.
clear v_curr.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = 100
CURRENCY = ' '
* FILLER = ' '
* LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = v_curr
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.
‎2007 Mar 20 2:14 PM
Hi Gopan,
go execute the following code
tables : t001.
DATA:v_curr(100).
DATA: spell LIKE spell.
parameters : P_int type i.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = p_int
currency = t001-waers
filler = space
language = sy-langu
IMPORTING
in_words = spell
EXCEPTIONS
not_found = 01
too_large = 02.
MOVE spell-word TO v_curr.
WRITE : V_CURR.
Regards
Sreeni
‎2007 Mar 20 2:24 PM
PARAMETERS: amount TYPE bseg-wrbtr DEFAULT '67000.00'.
DATA hfield TYPE p DECIMALS 0.
TABLES spell.
MOVE amount TO hfield.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = hfield
* currency = waers
* language = 'EN'
IMPORTING
in_words = spell.Regards,
Santosh