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

difference between Function & RFC

Former Member
0 Likes
865

Hi,

What is the difference between the function and RFCs?

thanks,

Satish.

6 REPLIES 6
Read only

Former Member
0 Likes
813

Hi satish,

1. An RFC is nothing,

but also like normal FM.

2. The only difference is,

we can run that FM in another server.

3. eg.,

we have TWO SERVERS,

A, B

4. We write abap code in server A,

and want the FM to execute

in server B, (and not A)

, then it should be RFC enabled.

regards,

amit m.

Read only

sridharreddy_kondam
Active Contributor
0 Likes
813

Hi Satish,

An RFC works same as a normal function module...

But only the difference is

we can call RFC enabled fn modules from different servers where as normal function module within the server...

If attributes of function is set as Remote enabled then its an RFC...

Regards,

Sridhar

Read only

0 Likes
813

Function modules are modularzation elements in the ABAP programming language. The encapsulate some function that can be reused. They provide an interface or signature in which to pass data to and from the function module. RFC is a remote enabled function module. All you need to do is set the flag on the attributes tab of the function module and you have an RFC.

Read only

Former Member
0 Likes
813

Hi Satish,

In Function modules we have 2 types:-

1.Local(normal) Function module [LFM].

2.Remote Enable Function module [RFM].

LFM's can only be used or called in the same system in which they are created and activated, whereas RFM's can be accessed using RFC from a Remote Systems(like another R/3, Non-SAP), for this you need to create a RFC destination(SM59), with the help of your Basis Admin.

Regards:-

Santosh.

P.S. Mark usefull answers

Read only

0 Likes
813

hi santosh,

Thank you verry much.

thanks,

Satish.

Read only

Former Member
0 Likes
813

hi satish,

Function Modules --> A reuseable piece of code.

Ex. SD_DATETIME_DIFFERENCE.

RFC --> The same a Function Module but allow external connection.

Ex. RFC_READ_TABLE.

Function modules are modularzation elements in the ABAP programming language. The encapsulate some function that can be reused. They provide an interface or signature in which to pass data to and from the function module. RFC is a remote enabled function module. All you need to do is set the flag on the attributes tab of the function module and you have an RFC.

if u find it useful plz mark the points

Regards,

Naveen