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: 

FM to display number in words

Former Member
0 Kudos

hi friends..

can u tell me

the functional module to display number in words

4 REPLIES 4

former_member186746
Active Contributor
0 Kudos

There is none, create your own.

Former Member
0 Kudos

Hi,

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

Regards

Sudheer

Former Member
0 Kudos

<b>data: words(50) type c.</b>

<b>call function 'HR_IN_CHG_INR_WRDS'

exporting

amt_in_num = '100000'

importing

amt_in_words = words.

write:/ words.</b>

<b>

Also u can use the FM - > SPELL_AMOUNT or RF_SPELL.

</b>

Regards,

Pavan

Former Member
0 Kudos

use FM <b>HR_IN_CHG_INR_WRDS</b> for any number and <b> SPELL_AMOUNT</b> for amount with currency.

Reward if useful

Regards

Prax