2006 Oct 12 1:21 PM
Hi,
can u tell the name of function which convert number in to words.
thanks
2006 Oct 12 1:21 PM
SPELL_AMOUNT is the fm.
HR_IN_CHG_INR_WRDS can be used if the currency is in INR.
Message was edited by: Ravi Kanth Talagana
2006 Oct 12 1:26 PM
2006 Oct 12 1:22 PM
2006 Oct 12 1:22 PM
2006 Oct 12 1:27 PM
REPORT ZSPELL.
TABLES SPELL.
DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '1234510'.
SY-TITLE = 'SPELLING NUMBER'.
PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.
WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.
FORM SPELL_AMOUNT USING PWRBTR PWAERS.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = PAMOUNT
CURRENCY = PWAERS
FILLER = SPACE
LANGUAGE = 'E'
IMPORTING
IN_WORDS = T_SPELL
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3.
ENDFORM. " SPELL_AMOUNT