cancel
Showing results for 
Search instead for 
Did you mean: 

Change a number into word format in Smartforms.

Former Member
0 Kudos

hi....

plz tell me how can I display word format of a number in a smartforms.

i have a prientout form which display the net value Rs 3250 .my task to write in word like 'three thausands two hundred fifty rupies only'

.......

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

spell_amount FM

Check this..

DATA : money TYPE p DECIMALS 2,

in_letters LIKE spell.

money = '1000.00'.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = money

IMPORTING

in_words = in_letters

EXCEPTIONS

not_found = 1

too_large = 2

OTHERS = 3.

WRITE : / in_letters-WORD.

Answers (1)

Answers (1)

Former Member
0 Kudos

spell_amount FM

Check this..

DATA : money TYPE p DECIMALS 2,

in_letters LIKE spell.

money = '1000.00'.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = money

IMPORTING

in_words = in_letters

EXCEPTIONS

not_found = 1

too_large = 2

OTHERS = 3.

WRITE : / in_letters-WORD.

Madhavi

Former Member
0 Kudos

my prient out comes like ' one thousand five

hundred

only'

not a single line but also 3line.

hw can show it in to a one or two line in conyinously...

Former Member
0 Kudos

plz show me the way how i add 'ONLY' at the end of line,

like one hundred fifty Only.....

Former Member
0 Kudos

i check it out it is coming in one line only

if u want to add ONLY word so u need to concatenate in_letters-WORD and 'ONLY' into another string.

for this FM u can pass currency type and language key also.

Madhavi

Former Member
0 Kudos

thanku so much dear im getting the results...