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

pass by value / reference in methods

Former Member
0 Likes
672

Hello Gurus,

I am trying to import / export / change an internal table through ABAP method in a local class. How do i control if the internal table is passed by reference or value.

Since the internal table is big, i do not want it to be copied to every method i pass it to. For global classes i find the option of 'pass by value' or 'reference'. How do i do the same in local class?

.

Could you please help me with an example, which provides best performance.

Thanks in advance,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
544

Hi,

as long as you dont write "value()" in the method description it is passed by reference.

Regards

Stefan Seeburger

2 REPLIES 2
Read only

Former Member
0 Likes
545

Hi,

as long as you dont write "value()" in the method description it is passed by reference.

Regards

Stefan Seeburger

Read only

SwadhinGhatuary
Active Contributor
0 Likes
544

HI Rojer,

use method parameter (import, export & changing etc ) and value() for pass by value for performance