2015 Sep 25 6:33 AM
Hi, during the creation of BAPI we will check the checkbox as " passbyvalue ". What is the exact reason for selecting that one ?
2015 Sep 25 6:47 AM
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
2015 Sep 25 6:47 AM
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
2015 Sep 25 6:51 AM
2015 Sep 25 6:56 AM
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