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 reference using function module

Former Member
0 Likes
996

Hi

I am new to abap. I know what is pass by value and pass by reference concepts but I need to understand this only with a function module.

Could any one please let me know how the above is done only using a function module in abap with an example?

regards

krishna

1 REPLY 1
Read only

gouravkumar64
Active Contributor
0 Likes
372

Hi,

In abap, 2 ways to send or receive the importing and exprting parametrs

Pass by value normally not used In NORMAL function modules, it is used in RFC Enabled,

RFC Enabled have slower perofrmance than normal.

For pass by reference :- it is preferable

here instead of passing value, we are passing the memory address.

if value changed inside FM,the change happen in the memory address.so in effect in main program also.

read this for further concept

http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm

Thanks

Gourav.