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

regarding code inspector performance check

Former Member
0 Likes
1,654

Hi all,

we encountered the following issue in code inspector

.

the parameter e_t_range is an internal table . and is tranferred as a value in general, this combination does not perform well.it appears to be no tranfer . use reference transfer.

we are writing the code in function module and the e_t_range is one of the importing parameter of function module.

we are appending the output to e_t_range (table). we r getting the output.

but we r getting the following performance issue in code inspector.

please respond to this issue immediately awaiting for reply.its very urgent********

2 REPLIES 2
Read only

Former Member
0 Likes
698

That means that you defined your output table e_t_range in your function module to be passed by value instead by reference. That code inspector message tells you that might create a performance issue because if you pass any parameter as value the content of the parameter is copied into a new 'variable' which can have a performance impact if the internal table has a lot of data.

Passing by reference will avaoid that hit because it just passes a pointer instead of the 'real' data.

However for a RFC or update function module you always have to declare it to be passed by value.

Hope that helps,

Michael

Read only

Former Member
0 Likes
698

hi,

U r passing Table1 by pass by value which will pass table1 with its contents into another same table type tabel2. the calculation of FM will be done on tale2 not in table1.after getting some calculation into FM tbale 2 will be passed to table1.

Now if u r passing table by pass by reference then it will pass a address of table1 to FM and within FM's calculation original table1 will get changed directly by using passed address without using another table.

now in pass by value it uses two internal table thats why it gives performance issue. but yes as said above in RFC u will have to use Pass by value options.

regards,

SKumar