Pages

Download SAP Certification Material for FREE @ http://sap-ebooks-den.blogspot.com

Thursday, December 22, 2011

How to Configure RFC Destinations in ABAP & 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.



Maintain the RFC Connections (ABAP)


1. Log on to your Integration Server host. Call transaction SM59. Choose Create. Enter at least the following:

• RFC destination: AI_RUNTIME_JCOSERVER
• Connection type: T
• Description: <your description>


2. Choose ENTER. Choose the Technical settings tab and do the following:

• Select Registered Server Program.
• In the Program ID field, enter: AI_RUNTIME_<SID>. <SID> is the SAP system ID of your Integration Server host. Use uppercase letters only.
• Enter Gateway host and Gateway service of your Integration Server host.



Note: To find the gateway host and service, call transaction SMGW on the Integration Server host. Choose Goto > Parameters > Display (see entries for gateway hostname and gateway service).


3. Choose the Special Options tab and select the Unicode flag in the Character Width in Target System box. Save your settings.


4. Repeat steps 1 to 3 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.


5. Leave transaction SM59 open for later tests.



Configure the Destinations (Java)


1. On your Integration Server host, start the J2EE Engine Visual Administrator. Choose Cluster > Server > Services > JCo RFC Provider.


2. 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.


3. In the Repository section, do the following:

• Enter the parameters for the Integration Server host: Application Server, System Number, Client, and Language.
• For User and Password maintain the login parameters for the user SAPJSF.
• Select the Unicode flag.


4. Choose Set and repeat steps 1 to 3 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



Test the RFC Destinations


After you have maintained all RFC destinations in both the ABAP and Java environments, you can check all the connections.

Call transaction SM59 again. Open your RFC destination. Choose Test Connection.




No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...