Show TOC

Background documentationRfcLastError Locate this document in the navigation structure

 

You can use the following function to get more information on errors that have occurred:

int SAP_API RfcLastError(RFC_ERROR_INFO * error_info);

This function thus describes the last error reported by some function of the RFC API.

The errorinfo structure is:

Syntax Syntax

  1. typedef struct
  2. {
  3. char    key[32];
  4. char    status[128];
  5. char    message[256];
  6. char    intstat[128];
  7. }
  8. RFC_ERROR_INFO;
End of the code.

The structure RFC_ERROR_INFO is filled with more information describing the error.

This function is defined in SAPRFC.H.

Return Value:
  • Returns 1 if no error occurred and 0 elsewhere.

Function Parameter: