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

FM for conversion to text

Former Member
0 Likes
693

Hi ,

is thre any Function module which converts amunt and numbers to text.

e.g 1-one

Regards

Saurabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
658

Hi Saurabh,

Check the function module <b>SPELL_AMOUNT</b>.

TABLES: SPELL,PAYR.

DATA: WORDS LIKE SPELL.

DATA: NUMBER LIKE PAYR-RWBTR.

start-of-selection.

NUMBER = '1'.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = NUMBER

CURRENCY = 'INR'

  • FILLER = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = WORDS

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

write: / words-word. -> It will display as ONE

Thanks,

Vinay

Hi ,

is thre any Function module which converts amunt and numbers to text.

e.g 1-one

Regards

Saurabh

4 REPLIES 4
Read only

Former Member
0 Likes
658

chk this SPELL_AMOUNT

chk this program RF_SPELL

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
659

Hi Saurabh,

Check the function module <b>SPELL_AMOUNT</b>.

TABLES: SPELL,PAYR.

DATA: WORDS LIKE SPELL.

DATA: NUMBER LIKE PAYR-RWBTR.

start-of-selection.

NUMBER = '1'.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = NUMBER

CURRENCY = 'INR'

  • FILLER = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = WORDS

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

write: / words-word. -> It will display as ONE

Thanks,

Vinay

Read only

Former Member
0 Likes
658

Hi,

use this.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = amount

currency = 'INR'

filler = ' '

language = 'E'

IMPORTING

in_words = amountrs.

Regards,

Kumar

Read only

Former Member
0 Likes
658

tx