Difference Between Call By Value and Call By Reference?

Answer Posted / ravi s. sharma

In call by value, a copy of value known as(actual argument)
is passed to the function known as(formal argument). Both
values are stored at different locations and scope. The
changes made in a copy(formal argument) does not affect the
original value(actual argument).

In call by reference, a reference/address of variable known
as(actual argument) is passed to the function known
as(formal argument) which is stored in a
pointer/ref.variable. The changes made in a function
(through pointer/ref. variable) affect the original
value(actual argument).

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a type-pool?

617


What is its? : abap hr

628


How do you find number of records present in internal table?

577


What are the differences between a database index and a match code? : abap data dictionary

654


what is field string ? & where we are using field strings?

1576






What is the lock object?

608


Can we call reports and transactions from interactive reporting lists?

628


Events that can be used in both the classical and interactive reports

1126


Which database object is used for storing the system variables? : abap data dictionary

734


What function does data dictionary perform?

572


Hat are the different types of mode (run code) in call transaction method?

575


How to display if the value entered contains records or not?

591


in bdc session method. if u run the record in fore ground manually i have a 7 records but at the time of record processing first record produces the error how can u process records manually in fore ground please tell me any one knows?

1745


In SAP Script,How to display a single field(like matnr)at the right end of the form.

1983


How many main windows will be there in a page window?

563