Remote Function Call: Difference between revisions
Added a missing space between two words in technical overview |
changed from SAP AG to SAP SE Tags: Mobile edit Mobile app edit |
||
Line 1: | Line 1: | ||
{{about|the SAP technology|generic term|remote procedure call}} |
{{about|the SAP technology|generic term|remote procedure call}} |
||
{{unreferenced|date=August 2014}} |
{{unreferenced|date=August 2014}} |
||
'''Remote Function Call''' is the proprietary [[SAP |
'''Remote Function Call''' is the proprietary [[SAP SE]] interface for communication between a SAP System and other SAP or third-party compatible system over [[TCP/IP]] or [[ Common Programming Interface - Communications |CPI-C]] connections. Remote function calls may be associated with [[SAP AG|SAP]] software and [[ABAP]] programming and provide a way for an external program (written in languages such as [[PHP]], [[Active Server Pages|ASP]], [[Java (Sun)|Java]], or [[C programming language|C]], [[C++]]) to use data returned from the server. Data transactions are not limited to getting data from the server, but can insert data into server records as well. SAP can act as the Client or Server in an RFC call. |
||
==Technical overview== |
==Technical overview== |
Revision as of 10:28, 24 November 2014
Remote Function Call is the proprietary SAP SE interface for communication between a SAP System and other SAP or third-party compatible system over TCP/IP or CPI-C connections. Remote function calls may be associated with SAP software and ABAP programming and provide a way for an external program (written in languages such as PHP, ASP, Java, or C, C++) to use data returned from the server. Data transactions are not limited to getting data from the server, but can insert data into server records as well. SAP can act as the Client or Server in an RFC call.
Technical overview
A Remote Function Call (RFC) is the call or remote execution of a Remote Function Module in an external system. In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between a SAP system and an external system.
RFC interfaces
The RFC interface system is made up of the following interfaces:
- Calling interface for ABAP programs
- Each ABAP program can call a remote function module using the command CALL FUNCTION...DESTINATION. The parameter DESTINATION informs the SAP system that the called function module runs in a different system to the calling system. RFC communication with the remote system takes place as a part of the CALL FUNCTION command.
- RFC function modules in a SAP system must be proper function modules and must be registered in the SAP system as remote.
- If the calling program and the called program are both ABAP programs, the RFC interface provides both communication partners. The calling program can be any ABAP program, and the called program must be a function module that is registered as remote.
- Interfaces for calling non-ABAP programs
If either the calling program or the called partner is not a SAP program, it must be programmed in such a way that it can play the role of the other partner in RFC communication.
To implement RFC partner programs in non-SAP systems, read: Components of the SAP Communication Technology.
RFC-supported and GUI-supported interfaces can be used by external programs to call function modules in SAP systems, and execute them in these systems. Likewise, ABAP programs can also use these interfaces to use functions supplied by external programs.
Functions are remote-enabled by setting the "Remote-enabled module"-flag in the Attributes tab of the ABAP Workbench: Function Builder (transaction SE37).
SAPRFC
SAPRFC is an open source program for *NIX and Windows systems that allows PHP to make calls to an RFC-enabled SAP R/3 system.