cancel
Showing results for 
Search instead for 
Did you mean: 

Calling function module inside smartforms

radhushankar
Participant
0 Kudos

Hi all

I am working in a smartform for sale order ,in that i am printing some amount in words ex: order amount.and i have to write in letters also.for that i got the function module

HR_IN_CHG_INR_WRDS..whether it is possible to use function module in smartforms??? if so please tel me how to use it???

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

create program lines inside your smartform and use this function module, note: you you want to spell in Million and billion use FM SPELL_AMOUNT.

Regards,

SaiRam

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

right click->create->flowlogic->program lines .

In the input parameter u mention the input parameters to the function modules .

In the output parameters u mention the output parameters from the function module u want to use in smartforms .

In the editor make a call to function module .

Regards .

Former Member
0 Kudos

hi radhu,

yes it is possible to use FM in smartforms...

use program lines node to call FM in this u can write code as in abap editor...

please rewrd incase usefull...

regards,

prashant

Former Member
0 Kudos

Hi,

smartforms have the facility to write the abap code

you have to do the right clik on any window

and create --- > program lines...

then it will give you an option to write the abap code

then you have to give the input and output parameters

at the top

this will be just like the using and changing parameters in sub routines

and you have to declare a global variable to display the data

thanks & regards,

Venkatesh