RfcReceiveExt

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.

  • RFC_OK

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.)

  • RFC_FAILURE

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

  • RFC_EXCEPTION

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

  • RFC_SYS_EXCEPTION

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.

  • RFC_CALL

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.