Application Development 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: 

functions for number to words

Former Member
0 Kudos
91

Hi,

can u tell the name of function which convert number in to words.

thanks

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos
62

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

0 Kudos
62

thanks Ravi

Former Member
0 Kudos
62

FM is SPELL_AMOUNT

Former Member
0 Kudos
62

SPELL_AMOUNT

Former Member
0 Kudos
62
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