call_rfc_function
Invoke SAP RFC-enabled function modules with JSON parameters. Fetch the function interface first for required inputs, and commit or rollback write calls via transaction IDs.
Instructions
Invoke a SAP RFC-enabled function module with JSON parameters. Call get_rfc_function_interface first to know what parameters are required. mode='write' is required for functions classified as mutating and is rejected unless the server's policy explicitly allows writes for that function. A write returns a transaction_id tied to its SAP connection; reuse it for related writes, then pass it to commit_rfc_transaction or rollback_rfc_transaction. Writes are never auto-committed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Your actual intent for this call: 'read' for non-mutating calls, 'write' if it changes SAP data. Checked against server policy. | read |
| parameters | Yes | IMPORT/TABLES/CHANGING parameter values, keyed by name as returned by get_rfc_function_interface. | |
| function_name | Yes | Exact name of the RFC-enabled function module to invoke. | |
| transaction_id | No | For write mode, reuse the opaque transaction_id returned by an earlier write to keep all calls in the same SAP LUW. Omit on the first write and for reads. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| function_name | Yes | ||
| transaction_id | No |