Remote function call

Remote function call

A remote function call is a procedure for data interchange between a client and server. Typically the client calls a server program and the server returns the results via a TCP/IP connection. 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.

Technical overview

A remote function call (RFC) is the call of a function module that runs in an external system to the calling program. Although it is possible to call a function module in the same system as an RFC, normally RFCs are used when the caller and the called function module run in different systems.

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.
*For more detailed information on calling function modules that are registered as remote, see Calling RFC Function Modules in ABAP.
*For more information on writing function modules that you want to call remotely, see Writing RFC Function Modules in ABAP.
*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).

APRFC

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.

ee also

* ERP software
* ABAP
* SAP AG
* Remote procedure call

External links

* [http://help.sap.com/ SAP Help Portal]
** [http://help.sap.com/saphelp_erp2005vp/helpdata/en/22/042a3e488911d189490000e829fbbd/frameset.htm Section on RFC]
* [https://forums.sdn.sap.com/forum.jspa?forumID=124 PHP Development Forums] in the [http://www.sdn.sap.com SAP Developer Network]
* [http://saprfc.sourceforge.net/ SAPRFC Open Source Project]


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Remote Function Call — (RFC) ist ein Begriff aus dem Umfeld der SAP Software (speziell der SAP ABAP Systeme, z. B. R/3 und dessen Nachfolger). RFC ist einerseits ein Synonym für das Remote Procedure Call Konzept (kurz RPC). Dieses bezeichnet Verfahren, mit denen… …   Deutsch Wikipedia

  • Remote procedure call — (RPC) is an Inter process communication technology that allows a computer program to cause a subroutine or procedure to execute in another address space (commonly on another computer on a shared network) without the programmer explicitly coding… …   Wikipedia

  • Foreign function interface — A foreign function interface (or abbr|FFI|Foreign Function Interface) is a mechanism by which a program written in one programming language can call routines or make use of services written in another. The term comes from the specification for… …   Wikipedia

  • Open (system call) — For most file systems, a program initializes access to a file in a filesystem using the open system call. This allocates resources associated to the file (the file descriptor), and returns a handle that the process will use to refer to that file …   Wikipedia

  • Abkürzungen/Computer — Dies ist eine Liste technischer Abkürzungen, die im IT Bereich verwendet werden. A [nach oben] AA Antialiasing AAA authentication, authorization and accounting, siehe Triple A System AAC Advanced Audio Coding AACS …   Deutsch Wikipedia

  • Liste der Abkürzungen (Computer) — Dies ist eine Liste technischer Abkürzungen, die im IT Bereich verwendet werden. A [nach oben] AA Antialiasing AAA authentication, authorization and accounting, siehe Triple A System AAC Advanced Audio Coding AACS …   Deutsch Wikipedia

  • Stub (distributed computing) — A stub in distributed computing is a piece of code used for converting parameters passed during a Remote Procedure Call (RPC).The main idea of an RPC is to allow a local computer (client) to remotely call procedures on a remote computer (server) …   Wikipedia

  • Liste von Abkürzungen (Computer) — Dies ist eine Liste technischer Abkürzungen, die im IT Bereich verwendet werden. Inhaltsverzeichnis A B C D E F G H I J K L M N O P Q R S T U V W X Y Z siehe auch: Liste von Dateiendu …   Deutsch Wikipedia

  • ABAP — Infobox programming language name = ABAP/4 logo = paradigm = Object oriented, structured, imperative year = 1980s designer = SAP AG typing = Static, strong, safe, nominative implementations = SAP R/2,SAP R/3 dialects = influenced by = Objective C …   Wikipedia

  • RFC (Homonymie) — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. {{{image}}}   Sigles d une seule lettre   Sigles de deux lettres > Sigles de trois lettres …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”