Show TOC Start of Content Area

 Calling and Accepting RFC Functions  Locate the document in its SAP Library structure

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 the SAP system 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

 

End of Content Area