cancel
Showing results for 
Search instead for 
Did you mean: 

Hi all

Former Member
0 Kudos

one problem i have a total value lets say 90504.20 in smartform i want to convert it in to words i know the function module also for that

we cannot run the function module in smartforms only in driver program i can run that funct. module rt so how can i pass this value from my smartform to my abap program so that i can get it converted into words how to pass it.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Amit,

You can code in smartforms itself.Under slobal settings there is a tab for form routines where you can write a subroutine to convert into words.

This can then be called whereever you want to print in words.

Thanks,

Dishant

Answers (2)

Answers (2)

Former Member
0 Kudos

You can call the function Module in the Smartform Itself..Whereever you want to display the amount in words, you will use a text element, so right click on it, say create-flow logic-program lines.

import parameter: amount

export parameter: words

display &words&

dont forget to declare words in global declaration.

If you still want to pass this from the driver program.

then when you call the function module and send the internal table, there in export parameters, pass a variable which contains the words.

In the Smartform, declare it in Import Parameters.

I think this should solve your problem.

Thanks

Former Member
0 Kudos

hi amit singh,

we can call the function module in the smartform itself.keep u r cursor on a

window and Click on --> create --> flow logic --> Program lines

in programme lines give the input parameters as amount variable(i.e u r amount variable) and in output parameters give the string name where u r going to store

amount in words.

call u r function module in the body.

in function module

import value will be u r input parameter . (Amount)

export value will be u r Output parameters. (Amount in words)

This will solve u r problem.

Reward points if useful.

Thanks and regards,

Rajesh,