Application Development 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: 

BAPI Passbyvalue

Former Member
0 Kudos

Hi, during the creation of BAPI we will check the checkbox as " passbyvalue ". What is the exact reason for selecting that one ?

1 ACCEPTED SOLUTION

nishantbansal91
Active Contributor
0 Kudos

Dear Paritala,

In function module by default all the parameters are defined as call by reference. It system can send only memory address location.

BAPI is called from other system. SAP system is not able to identify the memory address for the variable that why while create BAPI you have to force fully check the pass by value parameter.

So while calling bapi SAP system creates it's own internal memory and can change the importing parameter within function module.


Please let me know if you have any doubt.

Thanks

Nishant

3 REPLIES 3

nishantbansal91
Active Contributor
0 Kudos

Dear Paritala,

In function module by default all the parameters are defined as call by reference. It system can send only memory address location.

BAPI is called from other system. SAP system is not able to identify the memory address for the variable that why while create BAPI you have to force fully check the pass by value parameter.

So while calling bapi SAP system creates it's own internal memory and can change the importing parameter within function module.


Please let me know if you have any doubt.

Thanks

Nishant

0 Kudos

Thanks a lot for meaningful answer...

Former Member
0 Kudos

Hi,

When we PASS lv_var by REFERENCE , the reference or the memory address of lv_var is passed to the Function module. So VAR and lv_var will refer to the same memory address and have the same value.

as pass by reference is not supported for remote communications.

Thanks

Mahipalsinh