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: 

RFC Function module

Former Member
0 Kudos

Hello Every one,

Can anybody tell me what is the procedure to test a RFC Function module?

5 REPLIES 5

uwe_schieferstein
Active Contributor
0 Kudos

Hello Jena

The easiest way ist to use the RFC destination 'NONE':

  CALL FUNCTION '<my_function_module>'
    DESTINATION 'NONE'
    EXPORTING
     ...

This simulates a RFC call.

Regards

Uwe

Former Member
0 Kudos

Hi,

Look at the below link

Regards

Sudheer

vikram_maduri2
Explorer
0 Kudos

Hi Lipishree,

Steps :

(1) First go to SM59 here you can

create a destination for R/3 to R/3 server type 3.

(2) Give the IP address for the another R/3 system (XI) here

and the system no will be 00 (default).

(3). Click on save. now go to the second tab logon/ security

here declared the clind no, language , user name and

password.

(4) Click on save and then check the test connection.

Regards,

Vikram.M

Former Member
0 Kudos

use that function module in a sample program (report) giving the destination

example:

CALL FUNCTION 'ZGET_LIST' destination 'REMOTE_DEST'.

make sure that the RFC destinations are configured.

thx

pavan

Former Member
0 Kudos

Hello,

Calling and Accepting RFC Functions

Description

The Remote Function Call Application Programming Interface (RFC API) allows - both remotely or locally - you to call ABAP function modules from C programs as well as receiving call requests issued from an ABAP program by the CALL FUNCTION interface.

In ABAP function modules are special routines with well-defined and documented interfaces which are developed within a library development workbench.

ABAP function modules use named parameter passing. There are also exceptions which can be raised by a function module to indicate errors. These exceptions can be caught by the caller of a function module.

The following functions form the programming interface to call ABAP function modules from a C environment.

Functions for an RFC Client Program

RFCOpen

Open an RFC connection

RFCOpenExt

Another way to open an RFC connection, more appropriate for non-C environments than Visual Basic

RFCOpenExtV3

Another way to open an RFC connection, more appropriate for non-C environments than Visual Basic (using RFC Version 3)

RfcCall

Call an ABAP function module without waiting for the result

RfcReceive

Wait for execution of an RFC function called and receive the return values from the ABAP function module

RfcCallReceive

Call a function module and receive the return values in one step

Functions for an RFC Server Program

RfcAccept

Accept an RFC request or register at an SAP gateway

RfcInstallFunction

Register functions as callable function modules

RfcInstallFunctionExt

Communicate function as an RFC function (Windows 3.x.)

RfcDispatch

Wait for the next function call

RfcGetAttributes

Return information about an RFC connection

RfcGetName

Read the symbolic function name

RfcGetData

Receive the parameters of a function

RfcSendData

Send back the return values

RfcRaise

Report error that occured during the execution of an RFC function

RfcRaiseTables

Raise an exception while processing an RFC call if the function module being called has tables parameters

RfcGetTransID

Get associated TID for execute an RFC-function via aRFC (3.0 onwards)

RfcCallReceive

Call a function module and receive the return values in one step. It can be used for calling back a function module in R/3 using the same RFC connection while executing an RFC function in this server program. It is also possible to use RfcCall and RfcReceive.

RFCInstallTransactionControl

Register functions as callable function modules for transactional RFC

Regards,

Deepu.K