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

AMOUNT IN WORDS IN SMARTFORMS

Former Member
0 Likes
3,286

HI All,

I need to convert the amount into words in my smartforms.

How is this achieved?

Thanks & Regards,

Murthy

HI All,

I need to convert the amount into words in my smartforms.

How is this achieved?

Thanks & Regards,

Murthy

4 REPLIES 4
Read only

Former Member
0 Likes
1,151

USE FM "SPELL_AMOUNT"

Thanks

ganesh

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
1,151

Hi Murthy,

Check these links

Regards

Edited by: Always Learner on Oct 6, 2008 11:00 AM

Read only

Former Member
0 Likes
1,151

Hi kan murthy ,

let say in sf the amount is sf_amt...

*Declare varibles in SF like this in global

data: v_word type spell, "structure

v_amt type string.

*Calling Function SPELL_AMOUNT in Program Lines

  • and Import parameters are V_AMT and Export Parameters are

*V_WORD

call function 'SPELL_AMOUNT'

exporting

amount = v_amt

currency = 'INR'

language = sy-langu

importing

in_words = v_word

exceptions

not_found = 1

too_large = 2

others = 3.

Use V_WORD Where need to print

Regards,

sg

Read only

Former Member
0 Likes
1,151

HI,

Try to use this Functional Mod : HR_IN_CHG_INR_WRDS Instant of Using above one.


data: amt(20) type c.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = '10000000'
IMPORTING
AMT_IN_WORDS = amt.

write:/ amt.

Hope it is helps.

Regards,

Vamshi