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

Function module which gives output as Words

Former Member
0 Likes
515

There is a function module which takes a number as import parameter and give the number in words as external parameters.

Can anybody gives me the name of the function module?

Regards,

Subhasish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
488

Subhash,

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = amouno

CURRENCY = 'USD'

  • FILLER = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = SPELL

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

Check

http://www.sap-img.com/fu001.htm

(OR)

Also you can use FM HR_IN_CHG_INR_WRDS.

report ztest02.

data: words(50) type c.

call function 'HR_IN_CHG_INR_WRDS'

exporting

amt_in_num = '100000'

importing

amt_in_words = words.

write:/ words.

Pls. Reward if useful

2 REPLIES 2
Read only

Former Member
0 Likes
488

Hi,

Use the FM SPELL_AMOUNT

Thanks,

Naren

Read only

Former Member
0 Likes
489

Subhash,

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = amouno

CURRENCY = 'USD'

  • FILLER = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = SPELL

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

Check

http://www.sap-img.com/fu001.htm

(OR)

Also you can use FM HR_IN_CHG_INR_WRDS.

report ztest02.

data: words(50) type c.

call function 'HR_IN_CHG_INR_WRDS'

exporting

amt_in_num = '100000'

importing

amt_in_words = words.

write:/ words.

Pls. Reward if useful