‎2007 May 16 8:07 AM
Hello Every one,
Can anybody tell me what is the procedure to test a RFC Function module?
‎2007 May 16 8:11 AM
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
‎2007 May 16 8:12 AM
‎2007 May 16 8:32 AM
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
‎2007 May 16 8:34 AM
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
‎2007 May 16 8:36 AM
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