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: 

Remote Function Module

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

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

13 REPLIES 13

Former Member
0 Kudos

Radhika,

Which optional tab you are talking about?

the parameters check box?

Regards,

Ravi

0 Kudos

yes parameter check box only.

0 Kudos

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

0 Kudos

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.

0 Kudos

HI, REMOTE FUNCTION MODULES SHOULD NOT USE "PASS BY REFERENCE".

BY CHECKING THAT, IT MEANS PARAMETERS ARE OF TYPE "PASS BY VALUE".

0 Kudos

HI, REMOTE FUNCTION MODULES SHOULD NOT USE "PASS BY REFERENCE".

BY CHECKING THAT, IT MEANS PARAMETERS ARE OF TYPE "PASS BY VALUE".

0 Kudos

why can't we use them by reference.

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

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

sbhutani1
Contributor
0 Kudos

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