In this section, the SAP System is made known to the upstream system ( startrfc program parameters). Conversely, the upstream system is made known to the SAP system via the port definition.
You require the startrfc program from the RFC library.
Enter the command with the logon and function module parameters listed below. For example, the command line under Unix could begin as follows:
startrfc -3 -d C11 -u EDIUSER ...
The parameter sequence is not important.
Parameter |
Value (example) |
Description |
-3 |
Logon to the SAP system using RFC |
|
-d |
C11 |
SAP System ID. This is displayed in the system bar, for example. |
-u |
EDIUSER |
SAP user Enter the name in upper case letters. For security reasons, you should use a CPIC user, as this user type cannot be used in a dialog. The user requires all of the necessary authorizations. |
-p |
PASSWORD |
User password. Enter the password in upper case letters. |
-c |
001 |
SAP client (default: 000) As contained in the MANDT field in the control record. |
-l |
DE |
SAP system language (default: EN) |
-h |
arthur |
Application server ( message server): Call transaction SM51. The first part of the server name field (separated by underscores) stands for the application server. Note that this field is case-sensitive. |
-s |
00 |
Two-digit system ID (TCP/IP service): Call transaction SM51. The third part of the server name field (separated by underscores) stands for the system ID. |
-g |
arthur |
Gateway host:
Note that this field is case-sensitive. |
-x |
sapgw00 |
Gateway service as in /etc/services: 1.-5. Repeat steps 1-5 for the gateway host (parameter -g). 6. The name of the gateway service is displayed in the line rdisp/sna_gw_service (you may have to scroll to the right). Note that this field is case-sensitive. |
-t |
Writes the log data to the file dev_rfc in the current directory. |
Parameter |
Value (example) |
Description |
-F |
EDI_DATA_INCOMING |
Only this function module reads IDoc files. |
-E |
PATHNAME= /usr/sap/C11/SYS/global/ EXT/in/<file name> |
Directory and name of the file which contains the IDoc (max.100 characters) |
-E |
PORT=EXT |
Logical name of the external system as defined in the port definition (max. 10 characters) |
You have notified the upstream system of the SAP function module to be called and the parameters (file and directory) to be used. Store the name of the upstream system (EXT in the above table) in the port definition ("Inbound" section) so that the SAP system recognizes it and transfers the IDocs.
File Port Type: Maintain Port Description, Inbound
Once you have maintained the port definition, the file transfers are triggered in the following sequence (see the graphic below):
The upstream external system writes the data to a sequential file in IDoc format.
The external system starts the SAP system with the startrfc program.
The name and directory of the file (as well as the port) are transferred to the SAP system as startrfc parameters.
The SAP system reads the inbound file and then deletes it. It does not return any status information to the external system.