Application Development and Automation 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: 
Read only

value in words

Former Member
0 Likes
633

Hi experts,

I want to display value in words , ex: 23456.56 have to display as twenty three tuosand fourhundred fifty six rs fifty six paise. is it posible , if pasible let me know how?

Thanks in advance

Radhakrishna.

Hi experts,

I want to display value in words , ex: 23456.56 have to display as twenty three tuosand fourhundred fifty six rs fifty six paise. is it posible , if pasible let me know how?

Thanks in advance

Radhakrishna.

4 REPLIES 4
Read only

Former Member
0 Likes
613

Try the following FM

SPELL_AMOUNT.

Read only

Former Member
0 Likes
613

Hi,

SPELL_AMOUNT function module can help you.

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

Thanks,

Jayant Sahu

Read only

Former Member
0 Likes
613

Hi RK

Refer Below thread you will get solution.

Rewards,

Syf

Read only

Former Member
0 Likes
613

Hi,

Use this FM,

'HR_IN_CHG_INR_WRDS'

DATA: w_amount(100) TYPE c.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
  EXPORTING
    amt_in_num   = '23456.56'
  IMPORTING
    amt_in_words = w_amount.

WRITE:/ w_amount.

Regards

Adil