BEA Logo BEA eLink Adapter for R/3 ALE Release 1.5

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   eLink Adapter for R/3 ALE Doc Home   |   eLink Adapter for R/3 ALE User's Guide   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Configuring R/3 Connections

 

This topic describes how to configure your BEA eLink Adapter for R/3 ALE installation for eLink to R/3 and R/3 to eLink communication with R/3. It includes the following main sections:

Configuring eLink to R/3 Connections

The ALE eLink to R/3 server uses the sideinfo method of connecting to R/3. The following topics describe how to configure eLink to R/3 connections:

Setting Environment Variables for the eLink to R/3 Connection

Configure the environment variables for eLink to R/3 connections as shown in Table 7-1:

Table 7-1 Environment Variables for Connecting to R/3

Variable Name

Set To

Description

CR3_DESTINATION

System Name

Destination in the sideinfo file that defines the R/3 application server to connect to. Default is undefined.

CR3_CLIENT

Client Number

R/3 login client number. Default is undefined.

CR3_USER

User

R/3 login user. Default is undefined. The user must be of type CPIC.

CR3_PASSWORD

Password

R/3 login user password. Default is undefined.

CR3_LANGUAGE

E

R/3 login language. Default is E for English.

SIDE_INFO

Path and File

Full path to the sideinfo file. See "Specifying the Location of the sideinfo File" in a later section.

The following are sample settings in an environment file:

Listing 7-1 Sample Environment Variable Settings for eLink to R/3 Connections


CR3_DESTINATION=SAPNODE
CR3_CLIENT=SAPCLIENT
CR3_USER=LOGINNAME
CR3_PASSWORD=LOGINPASSWORD
CR3_LANGUAGE=E
SIDE_INFO=<your eLink app directory>\sideinfo


The settings you specify depend on the configuration of your R/3 installation. See your R/3 system administrator for more information.

Configuring the sideinfo File

The ALE eLink to R/3 server uses the sideinfo method of connecting to R/3. The sideinfo file is an ASCII text file that specifies the connection point for external programs to communicate with the R/3 application server. See your SAP R/3 documentation for more information about the sideinfo file.

The sideinfo file is associated with the parameters provided to the ALE eLink to R/3 server when it is started. A sample sideinfo file comes with BEA eLink Adapter for R/3 ALE, but you must configure this sample file for your particular R/3 environment and BEA eLink Adapter for R/3 ALE installation. Errors in this file will prevent the ALE eLink to R/3 server from connecting to R/3.

Contents of the sideinfo File

The following table describes the attributes in the sideinfo file:

Table 7-2 Attributes in the sideinfo File

Attribute

Description

DEST

Connection identifier. You can set this to any name, usually a few characters in all uppercase. It is recommended that you use the node name of the R/3 application server. The ALE eLink to R/3 servers uses this identifier to determine the R/3 application server to connect to. The ALE eLink to R/3 server gets the identifier name from the CR3_DESTINATION environment variable that is defined in the server start-up script. The identifier links its setting to the connection.

LU

TCP/IP name of the node on which the R/3 application server is running. The ALE eLink to R/3 server will open a TCP/IP socket to the R/3 application node. The LU can be specified as the full TCP/IP name or as an alias. This name or alias must match exactly what is specified in the hosts file, or it must be translated by the directory name service. Test this by using the ping command and the exact string used in the LU line item (ping node).

TP

Name of the R/3 user presentation connection socket (the network socket to which the SAPGUI connects). This name is configured in R/3 and is specific to the instance of R/3. The last two characters in the name specify the instance number. This name must appear in the services file on the node on which the ALE eLink to R/3 is running, and the value of the socket number must match the same number in the services file on the R/3 application server.

GWHOST

Node name for the R/3 Gateway. As with the LU attribute, it must be translated correctly into a TCP/IP address (test it by using the ping command to ping the node). The gateway host is usually the same node as the R/3 application server, although this is not required. The R/3 Gateway process might reside on a different node. If the gateway must be moved, then the gateway identifier must be changed in the R/3 profile. Be sure to check with the R/3 system manager to ensure that this value matches the gateway location.

GWSERV

Name of the TCP/IP socket that is the R/3 Gateway connection. All processes connecting to R/3 in the background use this socket number as an entry point. As with the TP attribute, this name must be defined in the services file on the node on which the ALE eLink to R/3 server is running, and the definition must match the definition of the R/3 application server.

In an R/3 environment with multiple R/3 application servers, this list of attributes is simply repeated for different node names, different instances of R/3, and possibly different gateways.

Sample Settings

The following listing shows sample settings in a sideinfo file:

Listing 7-2 Sample Settings for sideinfo File


DEST=SAPNODE
LU=nodename
TP=sapdp00
PROTOCOL=I
GWHOST=nodename
GWSERV=sapgw00


Specifying the Location of the sideinfo File

The sideinfo file is usually located in the directory where the ALE eLink to R/3 server is running (for example, the TUXEDO appdir ). If you cannot use this location in your environment (for example, a number of other processes also connect to R/3 and use the same sideinfo information), then you can avoid duplicating the file by assigning the SIDE_INFO environment variable to a path containing the sideinfo table, as shown in the following examples:

UNIX C shell (csh):

setenv SIDE_INFO <your eLink app directory>/sideinfo

Windows NT:

set SIDE_INFO=<your eLink app directory>\sideinfo

The sideinfo file must have protections set so that all processes can read it.

For the ALE eLink to R/3 server, this environment variable is defined in the server start-up script. See Setting Environment Variables for ALE eLink to R/3 in Configuring ALE Integration, for more information.

Configuring R/3 to eLink Connections

The ALE R/3 to eLink server uses the register mode method of connecting to R/3. When the ALE R/3 to eLink server is started, it connects to R/3 and registers with a specific Program ID. This Program ID is defined in the RFC destination, as defined in transaction SM59. When an RFC is executed with the specified destination, the request is passed to the server registered on the Program ID. If no server is registered, then an error occurs. The server must be started and registered on the Program ID before the RFC is executed.

To register with R/3, the following information must be passed to ALE R/3 to eLink as command line parameters (which are specified in the server start-up script):

Setting

Description

Program-Id

Program ID (text string). It must match the program-id defined in transaction SM59.

Gateway Host Name

Name of the host running the SAP gateway server. It must match the GWHOST parameter specified in the sideinfo file.

Gateway Service Name

Service name of the SAP gateway server. It must match the GWSERV parameter specified in the sideinfo file.

Troubleshooting Connection Problems

R/3 provides extensive help in isolating and testing connection problems involving the R/3 Gateway. The R/3 Gateway is sometimes called the CPIC Gateway because the CPIC protocol is the lowest-level protocol used on the TCP/IP socket when connecting to R/3. RFCs are essentially layered on CPIC.

To troubleshoot connection problems: