R/3 return codes and error messages

The following is a listing of all the codes and messages that can be returned as a result of using the R/3 adapter for sources or targets.

Note Adapter return codes with positive numbers are warning codes that indicate a successful operation. Adapter return codes with negative numbers are error codes that indicate a failed operation.

Table 1. R/3 adapter return codes and error messages
Return code Message
0 OK
1 No data provided. Create on content specified: no connection attempted.
2 Map execution failed, data not sent
-1 Error in data prep
-1 Error: cannot get function definition
-1 RFC Open failed
-1 Put Data failed
-1 Unknown Error
-1 Error in setup
-1 TID sent twice so not processed
-1 R/3 may try again later
-1 Couldn't init adapter. New_semaphore() failed.
-1 Couldn't init adapter. Watch count exceeded.
-1 Couldn't init watchpoint. New_thread() failed.
-1 Error in data prep (invalid Idocs).
-1 Error in data prep (invalid BAPI data or Idoc missing EDI_DC)
-1 Connection Test failed
-1 Connection Test not possible, handle is invalid
-1 RFC Accept Failed
-1 Install Function Failed
-1 InitRfcConn Failed
-1 XXXXX = FAILURE(0)

For API's that return non-zero on success.

-? XXXXX = FAILURE(?)

For API's that return non-zero on success.

-1 XXXXX = RFC_FAILURE: Error occurred.
-2 XXXXX = RFC_EXCEPTION: Exception raised.
-3 XXXXX = RFC_SYS_EXCEPTION: System exception raised, connection closed.;
-3 User data properties not set. IDoc may be corrupted.
-4 XXXXX = RFC_CALL: Call received.
-5 XXXXX = RFC_INTERNAL_COM: Internal communication, repeat

For internal use only.

-6 XXXXX = RFC_CLOSED: Connection closed by the other side.
-7 XXXXX = RFC_RETRY: No data yet (RfcListen or RfcWaitForRequest only).
-8 XXXXX = RFC_NO_TID: No Transaction ID available.
-9 XXXXX = RFC_EXECUTED: Function already executed.
-10 XXXXX = RFC_SYNCHRONIZE: Synchronous Call in Progress (only for Windows).;
-10 Invalid connection, RFCPING failed, see trace file for details.
-11 XXXXX = RFC_MEMORY_INSUFFICIENT: Memory insufficient.
-12 XXXXX = RFC_VERSION_MISMATCH: Version mismatch.
-13 XXXXX = RFC_NOT_FOUND: Function not found.

For internal use only.

-14 XXXXX = RFC_CALL_NOT_SUPPORTED: This call is not supported on WINDOWS.
-15 XXXXX = RFC_NOT_OWNER: Caller does not own the specified handle.
-16 XXXXX = RFC_NOT_INITIALIZED: RFC not yet initialized.
-? XXXXX = RFC_UNKNOWN: Unknown result code ?.
-? Is an API-specific error code, made negative if >0
XXXXX is a SAP API or TID Mgmt Function
-464 Initialization failure. (sanity check failed)
-600 Internal Error: Resource Manager Error
-1000 Initialization failure. (program arguments)
-2000 Initialization failure. (backup/log init)