-
Notifications
You must be signed in to change notification settings - Fork 15
SAP RFC Basics
Communication between applications of different systems in the SAP environment includes connections between SAP ABAP systems1 as well as between SAP ABAP systems and non-SAP ABAP systems.
Remote Function Call (RFC) is the standard SAP interface for communication between SAP systems. RFC calls a function to be executed in a remote system. This is also supported for Non-SAP systems.
The Non-SAP System can be the RFC client, the server or both.
SAP RFC clients connects to a SAP system with a username and logon credentials (normally a password). A RFC clients calls remote enabled ABAP functions in the SAP system.
Official SAP functions released as remote interfaces are also ofter called BAPIs, however this name is more a reference to the concept behind the API provided by SAP. Technical all BAPIs are also remote enabled functions and there is no difference between customer created remote enabled functions and SAP created interfaces like BAPIs.
To establish the connection a client has to specify the SAP systems application server (ASHOST) and application server instance number (SYSNR). The RFC library then automatically derives the required port from the system instance (e.g. 3200 for instance 00).
For systems with multiple application servers the connection can be established by a message server (MSHOST) and a logon group (GROUP). The message server will then select a application server for the client.
A single SAP system contains multiple data areas (SAP "client") - something like a tenant. All clients in a system use the same code base but different data including the users. Therefore a SAP RFC client has to specify also the parameter CLIENT with the 3 letter client name when login on to a SAP system.
To logon to a SAP system from a RFC client you will have to specify following settings:
-
Application Server
-
Direct connection to a application server:
ASHOST = <HostName>
SYSNR = <InstanceNo of ashost> -
or Message Server
MSHOST = <HostName>
SYSID = <SAP System ID>
GROUP = <Logon Group>
-
-
Logon credentials
USER = <username>
PASSWD = <password of user>
CLIENT = <SAP client>
TODO
TODO
1 ABAP is the internal programming language of the "classic" SAP environment. SAP Java system use other communication methods - when talking here about SAP Systems, we only consider SAP ABAP systems.↩