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

function module

Former Member
0 Likes
514

in the function module the changing parameter is pass by value or pass by reference?why?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
483

In a function module, all the parameters (Import, Export, Changing) can be sent as either pass by value or pass by reference.

In the function builder screen, if you take any of the parameter list, you can see the check box Pass Value along with each parameter. If you check that Check box, the parameter will be "Pass By Value". If you leave it unchecked, it will be "Pass By Reference".

Regards,

Bijesh

4 REPLIES 4
Read only

Former Member
0 Likes
483

In FMs there are no changing parameters..

changing parameters are in subroutines(forms).

The <b>pass by value return</b>...works almost same as pass by reference

Read only

Former Member
0 Likes
483

It can be either. Depends on if you have checked the "Pass Value" checkbox for that parameter in the Changing tab in the function module interface.

If the check-box "Pass value" is checked in the Changing tab against that parameter, then the parameter is passed by value. Or else it is passed by reference.

Please mark points if the solution was useful.

Regards,

Manoj

Read only

Former Member
0 Likes
484

In a function module, all the parameters (Import, Export, Changing) can be sent as either pass by value or pass by reference.

In the function builder screen, if you take any of the parameter list, you can see the check box Pass Value along with each parameter. If you check that Check box, the parameter will be "Pass By Value". If you leave it unchecked, it will be "Pass By Reference".

Regards,

Bijesh

Read only

former_member196299
Active Contributor
0 Likes
483

hi Javed ,

In FMs except the tables parameter all can be passed by value or passed by reference. You should try to pass the import and export parameters generally using pass by value, as the memory areas are concerned and have got better performance .

Regards,

Ranjita