Creating RFC Destinations in the ABAP and Java
Environments
You need to create the following RFC destinations with both transaction SM59 (ABAP) and the Visual Administrator (Java):
● AI_RUNTIME_JCOSERVER
Points from the Integration Server to the mapping runtime. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used for the mapping runtime, value mapping, and the exchange profile).
● AI_DIRECTORY_JCOSERVER
Points from the Integration Server to the Integration Builder. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used to refresh the runtime cache).
● LCRSAPRFC
The RFC destination LCRSAPRFC is required for the
connection to the
System Landscape
Directory (SLD).
It is used to read the exchange profile.
● SAPSLDAPI
The RFC destination SAPSLDAPI is required for the connection to the SLD. It is used by the ABAP API.
Depending on your client settings, it may be necessary to log on to your Integration Server host as SAP system user with the authorization to maintain customizing tables and to release transport orders.

User SAP* or DDIC does not have these authorizations.
This task covers the template steps 14 to 17.
Perform the following steps:
...
1. Log on to your Integration Server host.
2. Call transaction SM59.
3. Choose Create.
4. Enter at least the following:
○ RFC destination: AI_RUNTIME_JCOSERVER
○ Connection type: T
○ Description: <your description>
5. Choose ENTER.
6. Choose the Technical settings tab and do the following:
a. Select Registered Server Program.
b. In the Program ID field, enter: AI_RUNTIME_<SID>
<SID> is the SAP system ID of your Integration Server host.

Use uppercase letters only.
c. Enter Gateway host and Gateway service of your Integration Server host.
To find out the required parameters:
...
i. On the Integration Server host, call transaction SMGW.
ii. Choose Goto ® Parameters ® Display (see entries for gateway hostname and gateway service).
7. Choose the Special Options tab and select the Unicode flag in the Character Width in Target System box.
8. Save your settings.
9. Repeat steps 3 to 8 for the remaining destinations:
○ AI_DIRECTORY_JCOSERVER
Program ID: AI_DIRECTORY_<SID>, where <SID>is the SAP system ID of your Integration Server host.
○ LCRSAPRFC
Program ID: LCRSAPRFC_<SID>, where <SID> is the SAP system ID of your Integration Server host.
○ SAPSLDAPI
Program ID: SAPSLDAPI_<SID>, where <SID> is the SAP system ID of your Integration Server host.
10. Leave transaction SM59 open for later tests.
Perform the following steps:
...
1. On your Integration Server host, start the J2EE Engine Visual Administrator.
2. Choose Cluster ® Server ® Services ® JCo RFC Provider.
3. In the RFC destination section, enter exactly the same program ID and gateway options for AI_RUNTIME_JCOSERVER that you used in the step Maintain the RFC Connections (ABAP) above. Additionally, set the number of processes to 10.
4. In the Repository section, do the following:
a. Enter the parameters for the Integration Server host: Application Server, System Number, Client, and Language.
b. For User and Password maintain the login parameters for the user SAPJSF.
c. Select the Unicode flag.
5. Choose Set.
6. Repeat steps 3 to 5 for the remaining destinations:
○ AI_DIRECTORY_JCOSERVER
Corresponding values from transaction SM59
Number of processes: 10
○ LCRSAPRFC
Corresponding values from transaction SM59
Number of processes: 3
○ SAPSLDAPI
Corresponding values from transaction SM59
Number of processes: 10
After you have maintained all RFC destinations in both the ABAP and Java environments, you can check all the connections above as follows:
...
1. Call transaction SM59 again.
2. Open your RFC destination.
3. Choose Test Connection.
No errors should be displayed.