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: 

HI

Former Member
0 Kudos

hi

In which cases we will create a RFC function moldule. i am askinh what would be the buisiness requirement

5 REPLIES 5

Former Member
0 Kudos

RFC (Remote Function Call) is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;

and you will be passing an Import parameter DESTINATION to it.

Other code and usage will be similar to any fun module;

Have a look at any fun module in SE37 to understand better about the different components of Fun modules;

RFC and BAPIs are remote enabled function modules. They are practicly the same. A BAPI is one step further as it usually is a self contained business function, such as "Create Purchase Order", or "Change Sales Document". BAPIs interface is very well defined and documented. BAPIs can be found in the BAPI browser via transaction BAPI. RFCs are just remote enabled function modules.

BAPI stands for Business Application Programming Interface. It is a library of functions that are released to the public as an interface into an existing SAP system from an external system.

RFC is the protocol used to call functions in an R/3 system by a caller external to R/3 or to call programs external to R/3 from an R/3 system. Functions can only be called via RFC, if they are tagged as RFC functions in the SAP development workbench.

RFC simplifies the programming of communication process between diffrent systems.RFCs enable u to call and execute predefined functions in a remote system or within same system.RFC s manage the communication process,parameter transfer and error handling.

Former Member
0 Kudos

RFCs describe an interface ,not programming language in which the function runs.

u can also use RFCs to call functions in non-SAP systems.the procedure for RFC communication between two SAP systems is that the calling system uses an RFC definition in system called access a specific function.thsis function is normally aremote enabled function module.u can also depending on the release use RFC to call functions in SAP R/2 systems.if u want to start external programs remotely,u need an RFC interface outside the SAP system.every RFC interface is bidirectional,so external programs can also use RFCto access functions in SAP systems.

Creating an RFC user can be done in the SAP system with transactions SU01, SU02, SU03. As an example below, we show how to create the necessary user rights for web repository access.

Action Client

Function Required RFC user rights

Read scripts for transaction variants 000

RS_HDSYS_GET_GUIXT_SCRIPT S_RFC: RFC_TYPE=FUGR, RFC_NAME=SHD0, ACTVT=16

Read web repository objects Objects "SAPWR:..." 000

WWW_DISPATCH_REQUEST S_RFC: RFC_TYPE=FUGR, RFC_NAME=SURL, ACTVT=16

Read data dictionary (symbolic offsets in variables) 000

RPY_TABLE_READ S_RFC: RFC_TYPE=FUGR, RFC_NAME=SIFD, ACTVT=16

S_DEVELOP: DEVCLASS=,OBJTYPE=TABL,OBJNAME=,ACTVT=03

"Call" statement in GuiXT Script current client

(function is specified in script) S_RFC: RFC_TYPE=FUGR, RFC_NAME=xxxx, ACTVT=16

here xxxx is the function group of the called function

if Q[Role=...] and if Q[Profile=...] current client

BAPI_USER_GET_DETAIL S_RFC: RFC_TYPE=FUGR, RFC_NAME=SU_USER, ACTVT=16

S_USER_GRP: CLASS=*,ACTVT=03

S_USER_SYS: CLASS=*,ACTVT=90 (if central user administration)

Read images from "SAPDB:..." 000

RS_HDSYS_GET_GUIXT_IMAGE S_RFC: RFC_TYPE=FUGR, RFC_NAME=RSIMG, ACTVT=16

Read images from "SAPIM:..." (Business Document Server) 000

RS_HDSYS_GET_BDS_IMAGE S_RFC: RFC_TYPE=FUGR, RFC_NAME=RSIMG, ACTVT=16

S_BDS_DS: CLASSNAME=cccc, CLASSTYP=OT, ACTVT=30

here cccc is the class name of the BDS image file

award points if found helpful.

regards

sravani

Former Member
0 Kudos

Hi,

If we need to communicate between Two R/3 Systems, or Sap to Non-SAP system, then RFC is required.

Just Refer these links to know about RFC.

http://help.sap.com/saphelp_nw04s/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm

http://help.sap.com/saphelp_nw04s/helpdata/en/22/0424ba488911d189490000e829fbbd/frameset.htm

Regards,

Satish

Former Member
0 Kudos

Hi, this may help you.

RFC is the protocol used to call functions in an R/3 system by a caller external to R/3 or to call programs external to R/3 from an R/3 system. Functions can only be called via RFC, if they are tagged as RFC functions in the SAP development workbench.

RFC (Remote Function Call) is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;

and you will be passing an Import parameter DESTINATION to it.

Other code and usage will be similar to any fun module;

Have a look at any fun module in SE37 to understand better about the different components of Fun modules;

Reward if helpful.

Regards Madhu.