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

rfc and function module

Former Member
0 Likes
798

hi frnds,

what is the diff beween normal function module and RFC?

regrads,

sanjay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
763

It's easy

RFC (Remote Function Called) is a function module can be called from another system (remote).

So I can crun the RFC F1 in system B, calling it from system A.

System A can be another SAP, but it can be a legacy.

When RFC is called, it has to exist in the called system.

A normal function can be called and run only in the same system.

Max

5 REPLIES 5
Read only

Former Member
0 Likes
764

It's easy

RFC (Remote Function Called) is a function module can be called from another system (remote).

So I can crun the RFC F1 in system B, calling it from system A.

System A can be another SAP, but it can be a legacy.

When RFC is called, it has to exist in the called system.

A normal function can be called and run only in the same system.

Max

Read only

Former Member
0 Likes
763

Hi Sanjay,

RFC is remote function call which is used to execute the fn module on the remote system to get the required data. to call the fn mod remotely we hav to enable the remote call radio button located in the attribute of the fn mod. normal fn mod is the one which is used to excute the fn mod in the local system to get the require data .

Hope it clears u..

Reagrds,

Kumar

Read only

ferry_lianto
Active Contributor
0 Likes
763

Hi Sanjay,

Function modules are routines with a defined interface, supporting optional parameters and labelled exceptions, intended to perform specific tasks encouraging re-use.

Functions that are remotely callable via SAP's proprietary remote function call (RFC) protocol, have additional technical restrictions, primarily that the parameters cannot be changing and/or passed by reference, as previously mentioned. When a function module is marked as RFC-enabled, SAP checks that the function's interface meets the restrictions and also generates an internal stub routine to allow the RFC communication to take place (but we don't really need to know anything about that stub).

When a function module raises an exception, control is passed back to the calling program. When the calling program is an external RFC client, the caller receives only a return code indicating that an application exception was raised and the name of the exception as an upper-case text string. The caller is then responsible for inspecting the exception text to see what kind of error occurred.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
763

Hi,

RFC enabled FM is used to comunicate btwn SAP and NON sap systems

eg: WEBSITE ie in SAP terms EP(Enterprise Portal frontend) to R/3 like tht.

Function module(FM) -> used to communicate with in SAP system.

regards,

ajith

reward if it helps.