Start of Content Area

RfcReceiveExt  Locate the document in its SAP Library structure

The function

RFC_RC SAP_API RfcReceiveExt(RFC_HANDLE handle,
RFC_PARAM_SPACE PSpace,
char ** exception);

allows you to receive return values from an RFC call. RfcReceiveExt must be called after calling RfcCallExt.

RfcReceiveExt waits till the answer is received before returning. If you want to check for incoming events without waiting, use the routine RfcListen.

Return Values:

RfcReceiveExt returns the same values as RfcReceive.

The call was successfully completed. Return parameter values have been placed in PSpace, in the appropriate RFC_PARAMETER_STACK areas. (See RfcAllocParamSpace for more information.)

An internal error has occurred. You can use the function RfcLastError to get more information.

The remote function you called has raised an exception. The field * exception points to the name of the exception. No data was returned.

The local or remote RFC system has raised an exception. The field * exception points to the name of the exception. The connection was automatically closed by the system; you can call RfcLastError to get information on the origin of the error. Two exceptions are possible: SYSTEM_FAILURE and COMMUNICATION_FAILURE.

The callee has issued an RFC call ( a "call back") to the caller of RfcReceiveExt. No data has been returned. The call request must be handled by using the functions RfcGetNameExt, RfcGetDataExt and RfcSendDataExt before another call to RfcReceiveExt can be done.