05-12-2006 10:32 AM
Hi,
can any one tell me why do we select optional Tab while creating Remote Function module where as we will not select this tab for Normal Function Module. What is the main purpose of this.
Thanks,
Radhika.
05-12-2006 10:42 AM
Hi Radhika,
i think you are talking about Attributes Tab, if it so, then for Normal FM's Processing Type will be default Normal Function Module. for RFC 's you need to change that to Remote-enabled. thats why you will go for it.
Regards
vijay
05-12-2006 10:37 AM
Radhika,
Which optional tab you are talking about?
the parameters check box?
Regards,
Ravi
05-12-2006 10:39 AM
05-12-2006 10:42 AM
I am not sure why you are under the impression that the parameters of the Remote funciton are optional. Its not mandatory to check that.
There are lot of BAPI's where the parameters are mandatory.
Regards,
Ravi
Note : Please mark the helpful answers
05-12-2006 10:46 AM
Hi
Iam new to the ABAP. I have been told to check these two parameters(optional,pass by value) while creating Remote function Modules. So i just wanted to know why should we do that.
Thanks for your response.
Points are given.
05-12-2006 10:51 AM
HI, REMOTE FUNCTION MODULES SHOULD NOT USE "PASS BY REFERENCE".
BY CHECKING THAT, IT MEANS PARAMETERS ARE OF TYPE "PASS BY VALUE".
05-12-2006 10:52 AM
HI, REMOTE FUNCTION MODULES SHOULD NOT USE "PASS BY REFERENCE".
BY CHECKING THAT, IT MEANS PARAMETERS ARE OF TYPE "PASS BY VALUE".
05-12-2006 10:53 AM
05-12-2006 10:57 AM
Alright, the reason why you can't use them by ref. is that usually the RFC's are called from an external system and SAP does not allow sending parameters by reference. That is why its mandatory for us to check the PASS BY VALUE check box, when we create a Remote function.
Regards,
Ravi
05-12-2006 10:59 AM
by reference means the changes what u made are reflected there too.
as it is used by external system, if u try to reflect changes there, it will be proble. so the restriction is there
05-12-2006 10:41 AM
Hi Radhika,
for remote function parameters we need to check
pass by value check box not the optional.
In remote functions it follows call by value
for passing parameters.
Thanks&Regards,
Siri.
05-12-2006 10:41 AM
Hi radhika,
1. Optional for parameters,
has nothing to do with normal FM
or Remote FM.
2. we can do in both of them.
3. Its depends upon the functionality of the FM.
regards,
amit m.
05-12-2006 10:42 AM
Hi Radhika,
i think you are talking about Attributes Tab, if it so, then for Normal FM's Processing Type will be default Normal Function Module. for RFC 's you need to change that to Remote-enabled. thats why you will go for it.
Regards
vijay
05-12-2006 10:42 AM
Hi radhika,
When you will create function module there is a checkbox make RFC enable if you will check this out then it will be a RFC function.
Regards
Sumit Bhutani