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: 

AMOUNT IN WORDS IN SMARTFORMS

Former Member
0 Kudos

HI All,

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

How is this achieved?

Thanks & Regards,

Murthy

4 REPLIES 4

Former Member
0 Kudos

USE FM "SPELL_AMOUNT"

Thanks

ganesh

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi Murthy,

Check these links

Regards

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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