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: 

function module

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member196299
Active Contributor
0 Kudos

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