11-23-2007 8:47 AM
Hi,
By default, import, export param - pass by value .
changing - pass by value and change
table - pass by ref
Then what is the use of pass value check box. can you explain.
With thanks,
senthilkumar.R
11-23-2007 8:50 AM
You pass the parameter with values. This means that the parameter contents are copied both when the parameter is passed and when it is transferred back to the calling parameter. For structures that contain tables, performance may be reduced considerably. Therefore, you should not do this.
11-23-2007 8:56 AM
11-23-2007 9:18 AM
My question is, by default import param is pass by value then what is the use of pass value check box.
11-23-2007 8:59 AM
this is a mechanism how data s transferred.
pass by value - system copies value to the variables which are at different locations in memory
pass by ref : shares the same memory
11-23-2007 9:23 AM
my question is by default import param is pass by value then what is the use of pass value check box.
11-23-2007 9:00 AM
Hi,
we can pass the values by two types
1. pass by value
2. pass by reference
if the check box is checked then it will take it as pass by value other wise it will take it as pass by reference.
reward points if it helps.
11-23-2007 9:00 AM
11-23-2007 9:02 AM
This "Pass by value" check box will tell your function module to get the values of the parameter which you are passing to it...
for example....
if you are having a parameter pm1 in your fm....
while calling you will give pm1 = myprgvar1.
in your program myprgvar1 may have value 5....
So your fm parameter pm1 will take that value 5 while calling...
And it is recommended not to use this functionality for tables....because of performances issues...
11-23-2007 9:07 AM
hi ,
check the description below :
Pass by value:
a local object with the same data type as the corresponding actual parameter is created in the function module and filled with its values. A change to the formal parameter in the FM does not change the value of the actual parameter. The actual parameter also retains its original value even after the FM has ended.
Regards,
Ranjita
11-23-2007 9:13 AM
pass by value:
You pass the parameter with values. This means that the parameter contents are copied both when the parameter is passed and when it is transferred back to the calling parameter.
pass by reference
The table parameters are internal tables. Internal tables are treated like changing parameters and are always pass by reference.
Rewards if useful.