Skip Headers

Oracle® Application Server Integration Adapter for SAP R/3 User's Guide
10g (9.0.4)

Part Number B10299-01
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

2
Defining a Delivery Channel

This chapter describes how to use Oracle Application Server ProcessConnect to define a delivery channel to connect to an R/3 system.

In this chapter, the delivery channel parameters for RFC and BAPI are described separately from the ALE parameters. When defining a delivery channel for RFC and BAPI, the ALE parameters are not used and can be left blank. Similarly, when defining a delivery channel for ALE, the RFC and BAPI parameters are not used and can be left blank. You can also choose to define a single delivery channel for all exchange protocols (RFC, BAPI, and ALE) by combining both sets of parameters.

This chapter discusses the following topics:

Adding and Configuring a Delivery Channel

Part of the application definition includes adding a delivery channel for the adapter. Setting up the delivery channel in Oracle Application Server ProcessConnect requires information which is specific to the adapter.

See Also:

Oracle Application Server ProcessConnect User's Guide for details about adding an application delivery channel in Oracle Application Server ProcessConnect

  1. Select the Profiles > Applications tabs.

  2. Click Create.

    Text description of create.gif follows.

    Text description of the illustration create.gif

  3. Type an application name in the Name field.

  4. Select the application type from the Application Type box and click Apply.

  5. Click Add in the Adapter Types section to add the Oracle Application Server Integration Adapter for SAP R/3.

    The Add Adapter Type page appears.

    Text description of add.gif follows.

    Text description of the illustration add.gif

  6. Select SAP R/3 Adapter in the Type selection box in the Add Adapter Type page and click Apply.

    The Adapter Type Details: SAP R/3 Adapter page is displayed.

    Text description of del_create.gif follows.

    Text description of the illustration del_create.gif

  7. Click Create in the Delivery Channels section in the Adapter Type Details page.

    The Create Delivery Channel page is displayed.

  8. Add information to create a delivery channel.

    For specific information on RFC and BAPI parameters, use Table 2-1.

    For specific information on ALE parameters, use Table 2-2.

    Text description of r3_quest.gif follows.

    Text description of the illustration r3_quest.gif


    Note:

    For specific R/3 assistance, refer to your R/3 system administrator. You can also visit help.sap.com.


    See Also:

    "Troubleshooting R/3 Settings" for connection error information

  9. Click Apply after entering your parameters to connect to an R/3 system.

    Text description of del_update.gif follows.

    Text description of the illustration del_update.gif

    The delivery channel Confirmation screen appears. You can modify any parameters and click Update in the confirmation page to change your parameters or click Delete to remove the channel.

  10. Click the Return to List link to return to the Adapter Details page.

The delivery channel is added for the adapter and you can now add interactions.

See Also:

Chapter 3, "Defining an Interaction"


Note:

The Oracle Application Server ProcessConnect creates the Cache and Queue directories at the time you create the Delivery Channel using ALE parameters.


Parameters Specific for RFC or BAPI

The delivery channel screen contains parameters specific to RFC and BAPI and other parameters specific to ALE. When defining a delivery channel specifically for RFC and BAPI function modules, the ALE parameters are not used; therefore, their values can be left blank. You can define a delivery channel to handle both modules and IDOCs by combining both sets of parameters. You can also create two separate delivery channels; one for RFC and BAPI function modules, and one for ALE IDOCs.

In Table 2-1 an asterisk (*) indicates a required field.

In Table 2-1 a double asterisk (**) indicates that you can select either an application server or a message server. Depending on how your R/3 System Administrator set up your R/3 system you can have either: an application server; or a message server with any number of application servers. Verify with your R/3 System Administrator which server you can use.

Table 2-1  RFC or BAPI Specific Parameters
Field Description

Name*

Enter a name for the delivery channel.

Application Server **

Enter a string representing the machine on which the R/3 system is running and listening. The name defines a connection to the Application Server representing a single R/3 system and identifies the system, for example, ss1.

Application Server / System Number**

Enter a system number to identify the Host, for example, 00.

Message Server**

Enter the R/3 system host name, for example, hs0016.WDF.SAP-AG-DE. You get the value from an R/3 System Administrator. This message server provides a list of the currently available application servers that are running on the selected system.

Each R/3 system provides one Message Server. This information is stored in the R/3 SAPMSG.INI file.

Message Server / System ID**

Enter the System ID that identifies the R/3 system. The list of R/3 systems is retrieved from the R/3 SAPMSG.INI file. For example, D15.

Message Server / Message Server Group**

Enter the Message Server Group if your application servers belong to a logon group. The group is retrieved from a list of defined Groups in the R/3 system. The Message Server Group is used to log on to any application server defined in the group. The group is based on load balancing. For example, a group can be PUBLIC or JAPANESE. If you do not know which group you want to log on, you can use an empty string for this argument. The R/3 system selects one automatically to make the connection. The message server option is only valid for inbound calls.

Router

Optional. Enter a destination router to connect to the Application Server or Message Server, for example, /H/UNICENTER/H/204.79.199.5/H. Destination router is used to connect to the message server as well as to the listed application servers. The list of available SAPTM routers is retrieved from the R/3 SAPROUTE.INI file.

Client Number*

Enter a number for the R/3 system. For example, 810.

Maximum Number of Concurrent Connections

Enter a number of concurrent connections to an R/3 system. This can range from 1 to 999. The default value is 15 connections.

Refer to "Connection Pooling" for more information.

Oracle Application Server ProcessConnect enables you to pool connections within particular logins but maintains critical control of the total number of connections into a system. Each connection to an R/3 system requires significant resources in R/3 to maintain the connection state. You must determine the optimum number for the maximum number of concurrent connections so that your R/3 system is not overloaded (while allowing as many simultaneous requests that can be served) to minimize the amount of time spent waiting for requests to be processed.

The following equation is a rough rule-of-thumb to determine the value to use to ensure that the processes do not overload a system:

  • (Maximum Connection Parameter) is less-than-or-equal-to the (number of R/3 Worker Processes) times(*) 1.2.

If you have more than one Delivery Channel definition for a particular R/3 host, you must use the total of the Max Connection Parameter values across all of the Delivery Channels in the equation.

Additional Outbound Connection Parameters

Enter any additional connection parameters. This setting passes additional connection parameters when Oracle Application Server ProcessConnect connects to an R/3 system. The format is a space-separated list of name=value pairs:ID1=value1 ... IDn=valuen. The IDs are not case-sensitive but the values are case-sensitive and must be set in "..." if blanks are included.

  • Refer to the R/3 documentation for the function RfcOpenEx. For a list of IDs, consult the file saprfc.h, part of the RFC SDK.

RFC Program ID

Enter an RFC Program ID to be used by the adapter to register itself with the RFC Gateway in the R/3 system. This is mandatory for inbound calls (R/3 system is initiating the call).

Additional Inbound Connection Parameters

Enter any additional connection parameters. This setting passes additional connection parameters when Oracle Application Server ProcessConnect is listening for calls from an R/3 system. The parameters are case-sensitive. The format is a space-separated list of name=value pairs:ID1=value1 ... IDn=valuen. The IDs are not case-sensitive but the values are case-sensitive and must be set in "..." if blanks are included.

  • Refer to the R/3 documentation for the RfcAccept function. For a list of IDs, consult the file saprfc.h, part of the RFC SDK.

Maximum Number of Sessions

Enter the maximum number of sessions. This is the number of simultaneous calls an R/3 system can make to the adapter.

User ID*

Enter an R/3 user name to login to the R/3 system.

Password*

Enter the password of the specified user. You must have developer rights to the areas of the R/3 system you want to access.

Language

A parameter that specifies the language to be used by the R/3 system. If not specified, the default language on the R/3 system is used.

Connection Pooling

The Oracle Application Server Integration Adapter for SAP R/3 creates pools of connections to an R/3 system by sharing login sessions and keeping the total number of sessions below a maximum number determined according to the capacity of the R/3 system. By sharing connections, callers avoid the delay of waiting for a login to complete, since they can use an existing session that had been opened for a previous request. Keeping the number of connections to a minimum avoids the severe performance degradation that can happen if too many sessions are opened on the R/3 system, and session swapping occurs. In such conditions, requests take a long time to execute.

Sessions can be shared across instances of a business process or across multiple business processes when they use the same login credentials into R/3. If several instances of a business process need to execute requests at the same time, additional sessions are opened for the pool, up to the maximum number of concurrent connections (Max Concurrent Connections). After a period of inactivity, idle sessions are released.

R/3 reserves approximately 1MB of memory for each R/3 connection. As a result, connection pooling and concentration (allocating calls and requests) across a number of existing, open connections can substantially increase the level of resources available, thus increasing scalability. It is effective because not every call has pending requests, so the connections are reused for multiple calls.

For optimum performance, benchmarking should be performed by gradually increasing the number of connections.

See Also:

"Maximum Number of Concurrent Connections".

Parameters Specific for ALE IDOCs

The delivery channel screen contains parameters specific to ALE and other parameters specific to RFC and BAPI. When defining a delivery channel specifically for ALE, the RFC and BAPI parameters are not used; therefore, their values can be left blank. You can define a delivery channel to handle both IDOCS and modules by combining both sets of parameters. You can also create two separate delivery channels; one for ALE IDOCS, and one for RFC and BAPI function modules.


Note:

The Oracle Application Server ProcessConnect creates the Cache and Queue directories at the time you create the Delivery Channel using ALE parameters.


In Table 2-2 an asterisk (*) indicates a mandatory field.

In Table 2-2 a double asterisk (**) indicates you can select either an Application Server or a Message Server. Depending on how your R/3 System Administrator set up your R/3 system you can have either: an Application Server; or a Message Server with any number of Application Servers. Verify with your R/3 System Administrator which server you can use.

In Table 2-2 a triple asterisk (***) indicates you can select an ALE Partner Logical System and OracleAS ProcessConnect Logical System for outbound. (Select only RFC Program ID for inbound.)

Table 2-2  ALE Specific Parameters
Field Description

Name*

Enter a name for the delivery channel.

Application Server **

Enter a string representing the machine on which the R/3 system is running and listening. The name defines a connection to the Application Server representing a single R/3 system and identifies the system, for example, ss1.

Application Server / System Number**

Enter a system number to identify the Host, for example, 00.

Message Server**

Enter the R/3 system host name, for example, hs0016.WDF.SAP-AG-DE. You get the value from an R/3 System Administrator. This message server provides a list of the currently available application servers that are running on the selected system.

Each R/3 system provides one Message Server. This information is stored in the R/3 SAPMSG.INI file.

Message Server / System ID**

Enter the System ID that identifies the R/3 system. The list of R/3 systems is retrieved from the R/3 SAPMSG.INI file. For example, D15.

Message Server / Message Server Group**

Enter the Message Server Group if your application servers belong to a logon group. The group is retrieved from a list of defined Groups in the R/3 system. The Message Server Group is used to log on to any application server defined in the group. The group is based on load balancing. For example, a group can be PUBLIC or JAPANESE. If you do not know which group you want to log on, you can use an empty string for this argument. The R/3 system selects one automatically to make the connection. The message server option is only valid for inbound calls.

Router

Optional. Enter a destination router to connect to the Application Server or Message Server, for example, /H/UNICENTER/H/204.79.199.5/H. Destination router is used to connect to the message server as well as to the listed application servers. The list of available SAPTM routers is retrieved from the R/3 SAPROUTE.INI file.

Client Number*

Enter a number for the R/3 system. For example, 810.

ALE IDOC Version*

Enter three upper-case letters to specify the version of R/3 that the IDOC definitions follow. For example, 46B or 46C. This is mandatory if you are using ALE.

ALE Partner Logical System***

Enter the name of an ALE Logical System in R/3 that receives IDOCs. This is mandatory for outbound calls (Oracle Application Server ProcessConnect is initiating the call).

For example, if the R/3 system is to receive an IDOC, enter the Logical System Name of the recipient registered in R/3. The name contains a maximum of 10 characters.

  • Note: The Logical System is called the System Base Logical System ID in R/3 documentation. The Logical System is named and created in an R/3 system by an R/3 System Administrator and must be configured to receive IDOCs.

OracleAS ProcessConnect Logical System***

Enter the name of a Logical System that sends the IDOC. This is mandatory for outbound calls (Oracle Application Server ProcessConnect is initiating the call).

For example, if Oracle Application Server ProcessConnect sends an IDOC to R/3, enter the Logical System Name for Oracle Application Server ProcessConnect. The name contains a maximum of 10 characters.

  • Note: The name for the Logical System must be registered as an external source in the R/3 system by the R/3 System Administrator.

Additional Outbound Connection Parameters

Enter any additional connection parameters. This setting passes additional connection parameters when Oracle Application Server ProcessConnect connects to an R/3 system. The parameters are case-sensitive.

  • For more information on connection parameters, refer to the R/3 documentation on the RfcOpenEx function.

RFC Program ID***

Enter an RFC Program ID to be used by the adapter to register itself with the RFC Gateway in the R/3 system. This is mandatory for inbound calls (R/3 system is initiating the call).

Additional Inbound Connection Parameters

Enter any additional connection parameters. This setting passes additional connection parameters when Oracle Application Server ProcessConnect is listening for calls from an R/3 system. The parameters are case-sensitive.

  • For more information on connection parameters, refer to R/3 documentation for RfcAccept function.

User ID*

Enter an R/3 user name to login to the R/3 system.

Password*

Enter the password of the specified user. You must have developer rights to the areas of the R/3 system you want to access.

Language

A parameter that specifies the language to be used by the R/3 system. If not specified, the default language on the R/3 system is used.

Troubleshooting R/3 Settings

Error ID Possible Cause / Error Description Possible Correction

E-SAP0110

Wrong user or wrong password or wrong client.

RfcOpenEx returned, Communication error. Error message: You are not authorized to logon to the target system.

Verify your connection parameters and your log permissions into the R/3 system.

Refer to "User ID*".

Wrong server name. A wrong host ss6 was given as the host name.

RfcOpenEx returned, Communication error.

Verify the server and host name in your R/3 settings.

Refer to "Application Server **".

Wrong system number.

RfcOpenEx returned. Error message: Connect to SAP gateway failed. Connection refused.

Verify system number parameter setting.

Refer to "Application Server / System Number**".

E-SAP0106

Wrong Server Name.

RFC Communication error. Error message: Connect to SAP gateway failed.

Verify Host name parameter.

Refer to "Application Server **".

Wrong System Number.

RFC Communication error. Error message: Connect to SAP gateway failed. Connection refused.

Verify system number parameter setting.

Refer to "Application Server / System Number**".

E-CORE0036

No librfccm.so in the library path.

Could not load Oracle Application Server Integration Adapter for SAP R/3 or one of its dependencies may not be installed.

Verify the existence of the R/3 librfccm.so. Verify that the library path points to the librfccm.so.

Refer to "Required Software".


Go to previous page Go to next page
Oracle
Copyright © 2003 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index