Application Development and Automation 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: 
Read only

Remote Function Module

Former Member
0 Likes
1,448

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
Read only

Former Member
0 Likes
1,407

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
Read only

Former Member
0 Likes
1,407

Radhika,

Which optional tab you are talking about?

the parameters check box?

Regards,

Ravi

Read only

0 Likes
1,407

yes parameter check box only.

Read only

0 Likes
1,407

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

Read only

0 Likes
1,407

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.

Read only

0 Likes
1,407

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

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

Read only

0 Likes
1,407

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

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

Read only

0 Likes
1,407

why can't we use them by reference.

Read only

0 Likes
1,407

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

Read only

0 Likes
1,407

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

Read only

Former Member
0 Likes
1,407

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.

Read only

Former Member
0 Likes
1,407

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.

Read only

Former Member
0 Likes
1,408

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

Read only

sbhutani1
Contributor
0 Likes
1,407

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