Remote Function Call (RFC) SQL Reference

The ERPL RFC extension provides support for executing RFC functions in SAP.

Introduction

You can find detailed documentation about SAP Remote Function Call (RFC) functions on SAP’s official website. This documentation provides comprehensive information on the various types of RFCs, such as Synchronous RFC (sRFC), Asynchronous RFC (aRFC), Transactional RFC (tRFC), Queued RFC (qRFC), Background RFC (bgRFC), and Local Data Queue (LDQ), along with their specific characteristics and uses. It also covers aspects of data transfer and security relevant to RFC communication.

For more specific information regarding ABAP language elements for RFC, you can refer to the ABAP Keyword Documentation on SAP’s website. This section includes an overview of RFC, details about the ‘CALL FUNCTION’ in the context of RFC, and examples of remote function calls.

To explore these topics in more depth, you can visit the following links:

  1. For general information on RFC, including various types and their properties: SAP Help Portal - RFC Documentation.

  2. For ABAP language elements related to RFC: ABAP Keyword Documentation - RFC.

These resources should provide a thorough understanding of the RFC functions in SAP, including the specific functions you’re interested in.

Another great resource are the following publications in the SAP Professional Journal (SPJ) and are higly recommended:

Function List

Table Functions

  • sap_rfc_invoke
    • Description: Executes a specified function module in the SAP system.
    • Parameters: Function name, input parameters, output parameters.
    • Returns: Output parameters and execution status.
  • sap_rfc_search_group
    • Description: Searches for function groups within the SAP system.
    • Parameters: Search criteria (e.g., group name).
    • Returns: List of function groups matching the criteria.
  • sap_rfc_search_function
    • Description: Searches for function modules based on specific criteria.
    • Parameters: Search criteria (e.g., module name, group).
    • Returns: List of function modules matching the criteria.
  • sap_rfc_describe_function
    • Description: Provides detailed information about a specific function module.
    • Parameters: Function module name.
    • Returns: Metadata about the function module, such as parameters, types, and documentation.
  • sap_show_tables
    • Description: Lists all tables available in the SAP system.
    • Parameters: None.
    • Returns: List of table names.
  • sap_describe_fields
    • Description: Provides detailed information about fields in a specified table.
    • Parameters: Table name.
    • Returns: Field descriptions including types and key flags.
  • sap_read_table
    • Description: Reads data from a specified SAP table.
    • Parameters: Table name, query criteria, fields to retrieve.
    • Returns: Data from the table based on query criteria.

Pragma Functions

  • sap_rfc_ping
    • Description: Checks the connectivity to the SAP system.
    • Usage: Typically used for health checks and monitoring.
  • sap_rfc_function_desc
    • Description: Retrieves a short description or summary of a function module.
    • Usage: Useful for quick lookups and documentation purposes.
  • sap_rfc_set_trace_level
    • Description: Sets the trace level for debugging and analysis purposes.
    • Usage: Used to control the amount of log detail generated.
  • sap_rfc_set_trace_dir
    • Description: Specifies the directory where trace files should be stored.
    • Usage: Important for organizing and accessing log files.
  • sap_rfc_set_maximum_trace_file_size
    • Description: Sets the maximum size for trace files.
    • Usage: Helps in managing disk space usage by log files.
  • sap_rfc_set_maximum_stored_trace_files
    • Description: Defines the maximum number of trace files to keep.
    • Usage: Used to limit the number of old log files stored.
  • sap_rfc_set_ini_path
    • Description: Specifies the path to the INI configuration file.
    • Usage: Essential for configuring and initializing the RFC environment.
  • sap_rfc_reload_ini_file
    • Description: Reloads the INI configuration file without restarting the system.
    • Usage: Useful for applying configuration changes on the fly.

Notes

  • The above descriptions are simplified and should be verified against the specific implementation and documentation of your SAP system.
  • This documentation is intended for users with a basic understanding of SAP systems and RFC protocol.