The function
RFC_RC SAP_API RfcReceive(RFC_HANDLE handle,
RFC_PARAMETER * parameters,
RFC_TABLE * tables,
char ** exception);
receives the return values from a function call issued by
RfcCall.This function thus allows you to receive the answer to an RFC call and must be called after calling RfcCall. The tables’ description (
RFC_TABLE) must be identical to the one used in RfcCall.RfcReceive waits till the answer is received before returning. If you want to check for incoming events without waiting, use the routine RfcListen.
This function is defined in SAPRFC.H.
Return Values:
The call was successfully completed, and the values of the returned parameters were filled into the fields being supplied by the
An internal error has occurred.
The callee has raised an exception. The field ‘*exception’ points to the name of the exception. No data were transported.
The local or remote RFC system has raised an exception. Also, ‘*exception’ points to the name of the exception. The connection was automatically closed by the system and
The callee has issued an RFC call to the caller of RfcReceive. No data are transported. The call request must be handled by using the functions
Function Parameters:
connection handle
‘importing’ parameters
‘tables’ parameters
output parameter: pointer to exception string. This parameter is only set if RFC_EXCEPTION or RFC_SYS_EXCEPTION is returned
See also RfcCall and RfcCallReceive.