RFC_LOGON_INFO

Defines the connection parameters that are required to access the SAP system
Type: optional macro variable
Applies to: %CALLRFC macro
See: %CALLRFC Macro, Using the R/3 BAPI Connector: Logon Window

Syntax

%let RFC_LOGON_INFO=ID=value ID=value ... ID=value

Details

RFC_LOGON_INFO is a macro variable that is used with the %CALLRFC macro. The RFC_LOGON_INFO variable uses the following parameters:
Note: Values are case-sensitive. IDs are not.
RFC_LOGON_INFO Parameters
Parameter ID
Description
TYPE
identifies the type of SAP system. Valid values are
3—(default) identifies an R/3 server
E—identifies an external server.
CLIENT
is a required value that identifies the logon client.
USER
is a required value that specifies the user logon ID.
PASSWD
is a required value that identifies the logon password.
This value is not required if a PASSWDX value is specified.
LANG
is a required value that identifies the logon language. Specify the one of the following:
1-byte SAP language (E for English, D for German, and so on)
2-byte ISO language (EN for English, DE for German, and so on)
LCHECK
specifies the logon check option at OPEN time. Valid values are
0—logon without check
1—(default) logon with check.
TRACE
specifies the RFC trace option. Valid values are
0—(default) without trace
1—with trace.
DEST
identifies the logical destination in the saprfc.ini file, if applicable. This value is required when you use the saprfc.ini file.
GWHOST
specifies the host name of the SAP gateway.
GWSERV
identifies the service of the SAP gateway.
MSHOST
specifies the host name of the message server if you use Load Balancing.
This value is required if you use Load Balancing.
R3NAME
specifies the name of the SAP system if you use Load Balancing.
This value is required if you use Load Balancing.
GROUP
specifies the name of the group of application servers if you use Load Balancing.
This value is required if you use Load Balancing.
ASHOST
identifies the host name of the specific application server to be used.
This value is required if you use a specific application server.
SYSNR
identifies the SAP system number if you use a specific application server and do not use Load Balancing.
This value is required if you use a specific application server.
ABAP_DEBUG
specifies the ABAP debugger option. Valid values are
0—(default) run without the ABAP debugger
1—run with the ABAP debugger.
Note: If you use the ABAP_DEBUG option, the SAP GUI must be installed.
PASSWDX
identifies the SAP logon password that is encrypted by SAS.

Examples

Example 1: Logging In to a Server That Uses Load Balancing

This example shows how to specify logon information for the %CALLRFC macro using the RFC_LOGON_INFO macro variable:
%let RFC_LOGON_INFO CLIENT=010 USER=USER1
                     PASSWD=USERPWD LANG=E
                      MSHOST=HostName R3NAME=BIN GROUP=Public;
%callrfc(RFC_SYSTEM_INFO
         IMPORTING RFCSI_EXPORT=WORK.RFCSI_EXPORT);
In this example, USER1 is connecting to a server that uses Load Balancing to read R/3 data into a temporary data set called WORK.RFCSI_EXPORT.

Example 2: Logging In to a Specific Application Server

This example shows how to specify logon information for the %CALLRFC macro using the RFC_LOGON_INFO macro variable:
%let RFC_LOGON_INFO=CLIENT=010 USER=USER1
                     PASSWD=USERPWD LANG=E
                      ASHOST=HostName SYSNR=02;
%callrfc(RFC_SYSTEM_INFO
         IMPORTING RFCSI_EXPORT=WORK.RFCSI_EXPORT);
In this example, USER1 is connecting to a specific application server to read R/3 data into a temporary data set called WORK.RFCSI_EXPORT.