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

Function Modules

Former Member
0 Likes
1,052

Hi

what is the main diff between normal FM and Remote enabled FM.

and what are the restrictions we face when we are useing remote enabled FM.

Thanks & regards

Naresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,032

Hi

RFC is also a functional module but it is remote enabled. Means from one system you can execute the RFC in another system. To make a FM RFC you have to take care of the following thisng:

1. you can convert a normal FM remote enabled by clicking the radiobutton remote-enabled module in the attribute of the FM.

2. You have to pass all the parameters by 'Pass by value'. While in case of normal FM (Not RFC) you can pass the parameters by 'Pass by referance also'.

3. While calling a RFC you have to pass a parameter 'Destination' which specify the destination where the Module will be executed.

Also go through the link given below :

With Regards

Nikunj shah

9 REPLIES 9
Read only

Former Member
0 Likes
1,032

Hi Naresh,

please search the forum...

Some of the links are here

RFC is Remote Function Call which can be used to execute

the function module on remote system to get the required

data.To call the function module remotely,we have to enable

the remote call radio button located in the attribute of

the function module.

Normal function module is one which can be used to

execute the function module in the local system to get the

required data.

Best regards,

raam

Read only

Former Member
0 Likes
1,032

Hi,

Normal function module can be called only in SAP programs.

Remote Function module ( RFC) can be called from external applications viz. VB, JAVA etc.

i..e it is an interface between external application & SAP.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,032
Read only

Former Member
0 Likes
1,032

hi there....

Remote Function Calls (RFCs) are function modules that can be called on between systems. RFCs can enable applications between SAP systems or between an SAP system and a non-SAP system. They enable SAP-external applications, establishing a path for extraction of SAP data to non-SAP apps. By making good use of RFCs, you can give your ABAP/4 app tremendous flexibility, whatever its purpose.

I hope this clears the air over RFCs.... BAPIS are an example of RFCs only....

get back if u need further assistance or close the question.

Regards....

Read only

0 Likes
1,032

my basic q? was

what are the restrictions we need to face when we are going for RFC FM

Read only

0 Likes
1,032

Hi Naresh,

In Remote Enable Functions modules the exporting paremeters should be pass by value.

Best regards,

raam

Read only

Former Member
0 Likes
1,033

Hi

RFC is also a functional module but it is remote enabled. Means from one system you can execute the RFC in another system. To make a FM RFC you have to take care of the following thisng:

1. you can convert a normal FM remote enabled by clicking the radiobutton remote-enabled module in the attribute of the FM.

2. You have to pass all the parameters by 'Pass by value'. While in case of normal FM (Not RFC) you can pass the parameters by 'Pass by referance also'.

3. While calling a RFC you have to pass a parameter 'Destination' which specify the destination where the Module will be executed.

Also go through the link given below :

With Regards

Nikunj shah

Read only

Former Member
0 Likes
1,032

Naresh,

here is your answer:

[Please |;

[Search|;

[In SDN|;

Read only

Former Member
0 Likes
1,032

HI,

Restriction is ... you cant define import export parameters of type c, type i etc.

Parameter Type Associated Type

matnr type char ===> Incorrect

matnr type mara-matnr ==> Correct

Cant give messages inside the FM as that wont be popped up.

Message 'Invalid material !' type 'E'. ===> Incorrect

wa_output-type = 'E'. ===> Correct

wa_output-message = 'Invalid Material'.

Append wa_output to gt_output.

Best regards,

Prashant