SAP Remote Function Call
Remote Function Call (RFC) is a protocol that SAP systems use to communicate with remote or external systems. It supports data exchange, system integrations, and distributed computing.
RFC includes the following types:
-
Synchronous RFC (sRFC)
-
Asynchronous RFC (aRFC)
-
Transactional RFC (tRFC)
-
Queued RFC (qRFC)
NeoLoad includes advanced actions that let testers connect to an SAP server and run RFC calls. For the requirements, check out this table:
Requirements | Description |
---|---|
Maturity | Stable |
Author | NeoLoad |
License | BSD Simplified (opens in new tab) |
Requirements | NeoLoad Enterprise and Professional editions with Integration & Advanced Usage |
Bundled with NeoLoad | Yes |
Before you start
To use SAP RFC in NeoLoad, follow these steps:
-
Download the SAP Java Connector .jar files and native libraries for your operating system from the SAP Connector Repository (opens in new tab).
-
Move sapjco3.jar to the lib/extlib folder in your NeoLoad project.
-
Move the native library file—sapjco3.dll for Windows or libsapjco3.so for Linux and macOS—to the custom-resources folder in your NeoLoad project.
-
Restart NeoLoad.
Advanced actions
NeoLoad provides advanced actions to manage SAP RFC testing efficiently. The following sections describe each available action and its parameters.
Connect to an SAP server
Use this action to establish an RFC connection to an SAP server. For the available parameters, check out this table:
Parameter | Description |
---|---|
destination | The name of the destination. A properties file with this name is created. |
host | The SAP server's IP address or hostname. |
sysnr | The SAP system number. |
client | The SAP client code. |
user | The SAP username. |
password | The SAP password. |
lang | The language code. The default is en. |
jco.client.{propertyName} | An advanced property for destination properties. |
Scan an RFC function
Use this action to scan an RFC function and retrieve its signature. For the available parameters, check out this table:
Parameter | Description |
---|---|
destination | The name of the destination. |
remoteFunction | The RFC function name to scan. |
Run an RFC function
Use this action to run an RFC function. For the available parameters, check out this table:
Parameter | Description |
---|---|
destination | The name of the destination. |
remoteFunction | The RFC function name to run. |
importParameters | A list of import parameter names and values, separated by commas. Format: name1:value1,name2:value2 . |
importParametersTable | A list of table parameter names and values, separated by commas. Format: name1:value1,name2:value2 . |
Status codes
Each advanced action returns a status code that helps diagnose errors during an execution. If an error occurs, check the following status codes to understand the issue:
Status code | Description |
---|---|
NL-RFC_CONNECT-01 | A connection error occurred. |
NL-RFC_SCAN-01 | A scanning error occurred. |
NL-RFCClient_ERROR | An execution error occurred. |