Connection Setup by the R/2 System

When the R/2 System sets up a connection, the program gwhost identifies the destination by using the side info file.

In the R/2 System, the destination specified in the ABAP program identifies the TP name in table XCOM. The gwhost program uses this name to identify the destination in the side info file SAPGW.DATA.SIDEINFO.

The side info entry must be as follows:

DEST

=

TP from the R/2 table XCOM

GWHOST

=

UNIX node with SAP Gateway

GWSERV

=

Service of the SAP Gateway

LU

=

UNIX node of the partner program (C or R/3)

TP

=

Name of the partner program

PROTOCOL

=

"I" for communication with R/3

"E" for communication with non-SAP C program

Parameter Usage in SAPGWHO Jobs

When an R/2 System in a BS2000 host sets up communication, the job SAPGWHO (programm gwhost) assumes the functions of the communications program.

The relevant jobs are generated at installation in SAP.JOBLIB (Release 5.0).

The appropriate parameters for R/2 application name and trace level are automatically used.

The number of SAPGWHO jobs to be started for an R/2 application and their priority is defined via profile parameters (from 5.0F) (transaction code TM26, BS2000-specific parameters ® BS/2 job parameters).

Examples of Connection Setup from the R/2 System

The following examples show the interplay of the XCOM table and the side info file.

An ABAP program in an R/2 Systems establishes a connection to an R/3 System with the instance number 95 . The R/3 System runs on computer ux0001 , while the SAP Gateway runs on is0023 .

The ABAP program uses the symbolic destination EXMPL1 .

Entry in table XCOM :

Symb. Dest. LU TP Comm. Type
------------------------------------------
EXMPL1 - R3TEST -

Entry in file sideinfo:

DEST=R3TEST
GWHOST=is0023
GWSERV=sapgw95
LU=ux0001
TP=sapdp95
PROTOCOL=I

An ABAP/4 program in an R/2 Systems sets up a connection to a non-SAP C program cif , which is to be started on UNIX computer ux0001 . The SAP Gateway also runs on ux0001. The service that the SAP Gateway uses is 00 .

The ABAP program uses the symbolic destination DVSTEST .

Entry in table XCOM :

Symb. Dest. LU TP Comm. Type
----------------------------------------
DVSTEST - CIF0 -

Entry in file sideinfo:

DEST=CIFO
GWHOST=ux0001
GWSERV=sapgw00
LU=ux0001
TP=cif
PROTOCOL=E

R/2 under UTM:
For the parameter Comm. Type (communications type), set the value H .