Skip Headers
Oracle® Application Server Adapter for SAP R/3 User's Guide
10g Release 2 (10.1.2)
Part No. B14061-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

2 Adapter Configuration Using Application Explorer

This chapter describes how to use Application Explorer to define a target to connect to an SAP system, view system objects, and create XML schemas and Web services. This chapter also explains how to configure an event adapter.

This chapter discusses the following topics:

Starting Application Explorer

The server must be started where Application Explorer is deployed.

To start Application Explorer:

  1. Ensure the server is started where Application Explorer is deployed.

  2. On Windows, invoke iaexplorer.exe, found under OracleAS_home\adapters\application\tools or on UNIX, invoke the iwae script, iwae.sh, found under OracleAS_home/adapters/application/tools.

OracleAS_home

Is the directory where the Oracle Application Server is installed.

Application Explorer opens. You are ready to define new targets to your SAP system.

Configuring Settings for BSE or JCA

You need not configure the OracleAS Adapter Business Services Engine (BSE) for a file-based repository because it is configured during the Oracle installation. You also need not configure the OracleAS Adapter JCA because the ra.xml file is configured automatically during installation.

Configuring the OracleAS Adapter Business Services Engine

After BSE is deployed to Oracle Application Server, you can configure it through the BSE configuration page. This configuration is required only when using a database repository with BSE.

To configure BSE:

  1. Open the following page in your browser:

    http://hostname:port/ibse
    
hostname

Is the hostname of the Oracle Application Server.

port

Is the HTTP port for the Oracle Application Server.

For example,

http://localhost:7777/ibse

Note:

The first time you access this page, it may take time to load.

  1. When prompted, log on.

    When first installed, the user ID and the password are:

    • User name: iway

    • Password: iway

The BSE configuration page opens.

Business Services Engine configuration page.
Description of the illustration bse_config.gif

  1. Ensure the Adapter Lib Directory parameter specifies the path to the lib directory, for example:

    OracleAS_home\adapters\application\lib
    
    

After you specify the path, adapters in the lib directory are available to BSE.

  1. For security purposes, type a new password in the Admin Password field.


Note:

The Repository URL field specifies where the file system repository is located. To use a database repository, you must enter the repository connection information. For the initial verification, use a file system repository. See "Configuring an Oracle Repository" for information on switching to a database repository.

  1. Click Save.

Configuring BSE System Settings

To configure Business Services (BSE) system settings:

  1. Open the BSE configuration page by entering the following URL:

    http://hostname:port/ibse/IBSEConfig
    
hostname

Is the machine where BSE is installed.

port

Is the port number on which BSE is listening.


Note:

The server to which BSE is deployed must be running.

The BSE settings pane opens.

BSE configuration page
Description of the illustration ibse_config_page.gif

  1. Configure the system settings.

    The following table lists the parameters with descriptions of the information to provide.

    Parameter Description
    Language Specify your required language.
    Adapter Lib Directory Type the full path to the directory where the adapter jar files reside.
    Encoding Specify the default encoding from one of the following options:

    UTF-8

    EBCDIC-CP-US

    ISO-88859-1

    Shift JIS

    UNICODE

    Debug Level Specify the debug level from one of the following options:

    None

    Fatal

    Error

    Warning

    Info

    Debug

    Number of Async. Processors Select the number of asynchronous processors.

    The following image shows the Security pane.

    BSE security settings
    Description of the illustration security.gif

  2. Configure the security settings.

    The following table lists the parameters with descriptions of the information to provide.

    Parameter Description
    Admin User Provide a BSE administrator ID.
    Admin Password Type the password associated with the BSE administrator ID.
    Policy Select the check box to enable policy security.

    The following image shows all of the fields and the check box for the Repository pane.

    BSE repository settings
    Description of the illustration ibse_config_repos_loc.gif

  3. Configure the repository settings.

    BSE requires a repository to store transactions and metadata required for the delivery of Web services.

    See "Configuring a File System Repository" and "Configuring an Oracle Repository" for more information.

    The following table lists the parameters with descriptions of the information to provide.

    Parameter Description
    Repository Type Select one of the following repositories from the list:

    Oracle

    File

    Repository URL Type the URL to use when opening a connection to the database.
    Repository Driver Provide the driver class to use when opening a connection to the database (optional).
    Repository User Type the user ID to use when opening a connection to the database.
    Repository Password Type the password associated with the user ID.
    Repository Pooling Select the check box to enable pooling.

  4. Click Save.

Configuring a File System Repository

If you do not have access to a database for the repository, you can store repository information in an XML file on your local machine. However, a file system repository is less secure and efficient than a database repository. When BSE is first installed, it is automatically configured to use a file system repository.

The default location for the repository on Windows is:

OracleAS_home\j2ee\OC4J_CONTAINER\applications\ws-app-adapter \ibse\ibserepo.xml

On other platforms, use the corresponding location.

If you are using a file system repository, you are not required to configure any additional BSE components.

Configuring an Oracle Repository

To configure an Oracle repository:

  1. Contact your database administrator to obtain an Oracle user ID and password to create the BSE repository.

    This user ID should have rights to create and modify tables as well as the ability to create and execute stored procedures.

  2. Open a command prompt and navigate to the setup directory. The default directory location on Windows is:

    OracleAS_home\adapters\application/etc 
    
    

    For other platforms, see the corresponding location.

    This directory contains SQL to create the repository tables in the following file:

    iwse.ora
    

    Note:

    If Oracle is not on the same machine as the Oracle Application Server, copy the iwse.ora file to the Oracle machine. Then, from a command prompt on the Oracle machine, navigate to the directory containing the iwse.ora file.

  3. Type the following command:

    sqlplus userid/password @database @ iwse.ora
    

Creating a Repository Project

Before you use Application Explorer with the OracleAS Adapter for SAP, you must create a repository project. You can create two kinds of repository projects, Web services and JCA, depending on the container to which the adapter is deployed.

At design time, the repository is used to store metadata created when using Application Explorer to configure adapter connections, browse EIS objects, configure services, and configure listeners to listen for EIS events. The information in the repository is also referenced at runtime.

A default JCA repository is created for the default ManagedConnectionFactory. The name of this project is jca_sample.

Web services and the OracleAS Adapter Business Services Engine (BSE) refer to the same type of deployment. See "Adapter Features" for more information.

Creating a Web Service Project for the Web Service Adapter

To create a Web service project for the Web service adapter using Application Explorer, you must first define a new configuration.

Defining a New Configuration for BSE

To define a new configuration for BSE:

  1. Right-click Configurations and select New.

    The New Configuration dialog box opens.

  2. Enter a name for the new configuration, for example, SampleConfig, and click OK.

    BSE new configuration
    Description of the illustration app_exp_new_config_type.gif

  3. From the Service Provider list, select BSE.

  4. In the BSE URL field, accept the default URL or replace it with a different URL with the following format:

    http://hostname:port/ibse/IBSEServlet
    
hostname

Is the machine where your application server resides.

port

Is the port number where the application server is listening.

  1. Click OK.

    A node representing the new configuration appears beneath the root Configurations node.

    sample config
    Description of the illustration sampleconfig.gif

The Web service repository project file is stored in OracleAS_home\j2ee\home\applications\ws-app-adapter\ibse.

Creating a Repository Project for OracleAS Adapter JCA

To create a repository project for the OracleAS Adapter JCA using Application Explorer, you must first define a new configuration.

Defining a New Configuration for JCA

To define a new configuration for JCA:

select new configuration
Description of the illustration selectnewconfig.gif

  1. Right-click Configurations and select New.

  2. In the dialog box, type a name for the new configuration, for example, SampleConfig, and click OK.

    The following dialog box opens.

    select new JCA configuration
    Description of the illustration new_jca_config.gif

  3. From the Service Provider list, select JCA.

  4. In the Home field, enter a path to your JCA configuration directory where the repository, schemas, and other information is stored, for example:

    OracleAS_home\adapters\application
    
    
  5. Click OK.

    A node representing the new configuration appears beneath the root Configurations node.

    sample configuration
    Description of the illustration sampleconfig.gif

The OracleAS Adapter JCA repository project file is stored in OracleAS_home\adapters\application\config\configuration_name

configuration_name

Is the name of the configuration you created; for example, SampleConfig.

Connecting to a New Configuration

To connect to a new configuration:

  1. Right-click the configuration to which you want to connect, for example, SampleConfig.

  2. Select Connect.

    Nodes appear for Adapters, Events, and Business Services (also known as Web services).

new configuration
Description of the illustration new_config.gif

  • Use the Adapters folder to create inbound interaction with SAP. For example, you use the SAP node in the Adapters folder to configure a service that updates SAP.

  • Use the Events folder to configure listeners that listen for events in SAP.

  • Use the Business Services folder to test Web services created in the Adapters folder. You can also control security settings for the Web services by using the security features of the Business Services folder.

You are now ready to define new targets to SAP.

Establishing a Connection (Target) for SAP

Defining the application includes adding a target for the OracleAS Adapter for SAP. Setting up the target in Application Explorer requires information that is specific to the adapter.

To browse the available business functions, you must first define a target to SAP. After you define the target, it is automatically saved. You must connect to the SAP system every time you start Application Explorer or after you disconnect.

When you launch Application Explorer, the left pane displays (as nodes) the application systems supported by Application Explorer, based on the adapters that are installed.

Connecting to SAP

To connect to SAP for the first time, you must define a new target.

Defining a Target for SAP

To define a target:

  1. In the left pane, expand the Adapters node.

    expanded adapter list
    Description of the illustration adapterexpandedpartial.gif

    The applications systems supported by Application Explorer appear as nodes based on the adapters that are installed.

    SAP add target
    Description of the illustration addtarget.gif

  2. Right-click the SAP node and select Add Target.

    The Add Target dialog box opens.

    1. In the Name field, type a descriptive name, for example, SAPTarget.

    2. In the Description field, type a description for the target (optional).

    3. From the Target Type list, select a target type.

  1. Click OK.

    The Application Server dialog box appears.

    The following tabs are available:

    • System (Required)

    • User (Required)

    • Advanced

    • Security

  2. For the System tab, type the appropriate information for your SAP target based on the information in the following table.

    Table 2-1 System Tab Parameters

    Target Parameter Description
    Application Server The host name or IP address for the computer that is hosting the SAP application.
    System Number The system number defined to SAP for client communications.
    EDI Version The Electronic Data Interchange (EDI) document version that you are using with the adapter. Version 3 is the default value.

  3. For the User tab, type the appropriate information for your SAP target based on the information in the following table.

    Table 2-2 User Tab Parameters

    Target Parameter Description
    Client The client number defined for the SAP application for client communications.
    User A valid user ID for the SAP application.
    Password A valid password for the SAP application.
    Language A language key. EN (English) is the default.
    Code page A character code page value.
    SAP Trace Select this option to enable traces.

  4. For the Advanced tab (optional), type the appropriate information for your SAP target based on the information in the following table.

    Table 2-3 Advanced Tab Parameters

    Target Parameter Description
    Connection pool size Enter the number of connections you want to make available to SAP.
    Connection pool name Enter the name of your SAP connection pool.
    BAPI Exception Handling Select Throws Exception or Creates Error Document from the list in the event of a BAPI exception.
    Commit with wait This option is disabled by default.

  5. For the Security tab (optional), type the appropriate information for your SAP target based on the information in the following table.

    Table 2-4 Security Tab Parameters

    Target Parameter Description
    Logon ticket (SSO2) If you are using a Secure Network Communications (SNC) adapter with SAP, enter the name of the SSO2 logon ticket you are using.
    Logon ticket (X.509) If you are using an SNC adapter with SAP, enter the name of the X.509 logon ticket you are using.
    SNC mode By default, SNC is disabled. To enable SNC, select 1 from the list.
    SNC partner Enter the name of the RFC server or message server (load balancing) that provides the SNC services.
    SNC level From the list select the version of the SNC library.
    SNC name Enter the name of the SNC library you are using.
    SNC library path Enter the path to the SNC library.


    Note:

    SNC provides protection for the communication links between the distributed components of an R/3 System. Using SNC, SAP R/3 can support products which adhere to the GSS-API Version 2 standard. SNC supports application level (end-to-end security), Smartcard authentication, and single sign-on.

  6. When you have supplied all the required information for your target, click Finish.

    After the extraction finishes, the new target, SAPTarget, appears under the sap node.

    SAP target under SAP node
    Description of the illustration adapters_list.gif

    See "Creating an XML Schema" for information on how to create schemas for the adapter.

Connecting to a Defined SAP Target

To connect to a target:

  1. Expand the Adapters node.

  2. Expand the SAP node.

  3. Under the SAP node, click the target name, for example, SAPTarget.

    The Connection dialog box opens, populated with values you entered for the connection parameters.

  4. Verify your connection parameters. If required, provide the password.

  5. Right-click the target name and select Connect.

    The x icon disappears, indicating that the node is connected.

Managing a Connection to SAP

To manage SAP connections, you can:

  • Disconnect from a connection that is not currently in use.

    Although you can maintain multiple open connections to different transaction processing systems, it is recommended to disconnect from connections not in use.

  • Edit a target.

  • Delete a connection that is no longer required.

Disconnecting from a Connection to SAP

  1. Expand the Service Adapters node.

  2. Expand the SAP node.

  3. Right-click the target to which you are connected, for example, SAPTarget, and select Disconnect.

    Disconnecting from the SAP target drops the connection with SAP, but the node remains. The x icon appears, indicating that the node is disconnected.

Editing a Target

To edit a target:

  1. In the left pane, ensure the target you wish to edit is disconnected.

  2. Right-click the target and select Edit.

    The Edit pane opens on the right.

  3. Modify the target information.

  4. Click OK.

Deleting a Connection to SAP

  1. Expand the Service Adapters node.

  2. Expand the SAP node.

  3. Right-click the target to which you are connected, for example, SAPTarget, and select Delete.

    The node disappears from the list of available connections.

Viewing Application System Objects


Note:

Depending on the release or service pack installed, certain RFCs, for example, RFC_CUSTOMER_GET, may not exist in your particular SAP system. Therefore, the examples included in this documentation may not be relevant to your system. If this is the case, you should use the examples as a general reference for adapter functionality and choose an RFC that exists within your SAP application environment.As described in SAP Release Note 109533, SAP Function Modules (RFCs) can be delivered with different release statuses. SAP supports only RFCs that are awarded with the Released for Customer status. There is no claim to the release independencies of the interfaces and the continued existence/functionality of the modules. For more information on the status of a specific function module, consult your SAP Service Marketplace.

See the SAP User's Guide for more information.

Creating an XML Schema

After you explore the SAP business function library and select an object, you can use Application Explorer to create the XML request schema and the XML response schema for that function.

Creating a Request and a Response Schema

The following procedure explains how to create request and response schemas for an SAP business function. Application Explorer enables you to create XML schemas for this function.

  1. Connect to an SAP target as described in "Connecting to a Defined SAP Target".

  2. Expand the Business Object Repository node.

  3. Click the icon to the left of the Financial Accounting group.

  4. Scroll down and click the icon to the left of the Company business object.

  5. Scroll down and select the BAPI named BAPI_COMPANY_GETLIST.

    The following screen appears on the right.

    Schema tabs
    Description of the illustration schema1.gif

  6. To view the XML for each schema type, click the appropriate tab.

Creating and Testing a Web Service or Business Service

You can generate a Web service (also known as a business service). You can explore the business function repository and generate Web services for the SAP functions you want to use with the adapter. The following procedure uses the SAP BAPI method called BAPI_MATERIAL_GETLIST as an example and returns a list of materials from SAP.


Note:

In a J2EE Connector Architecture (JCA) implementation of the adapter, Web services are not available. When the adapter is deployed to use the OracleAS Adapter JCA, the Common Client Interface provides integration services using the adapter.

Creating a Web Service or Business Service

To create a Web service for an SAP business function:

  1. Expand the sap node and then expand the Business Object Repository node.

  2. Select the BAPI_MATERIAL_GETLIST method from the Business Object Repository.

  3. Right-click the node from which you want to create a business service and select Create Business Service.

    The Create Web Service dialog box opens.

    You can add the business function as a method for a new Web service or as a method for an existing one.

  1. Click Next.

    The License and Method dialog box opens.

    1. In the License field, select one or more license codes to assign to the Web service. To select more than one, hold down the Ctrl key and click the licenses.

    2. In the Method Name field, type a descriptive name for the method.

    3. In the Description field, type a brief description of the method.

  2. Click OK.

    Application Explorer switches the view to the Business Services node, and the new Web service appears in the left pane.

Testing a Web Service or Business Service

After a Web service is created, you can test it to ensure it functions properly. A test tool is provided for testing the Web service.

To test a Web service:

  1. If you are not on the Business Services node of Application Explorer, click the node to access Web services.

  2. If it is not expanded, expand the list of Web services under Business Services.

  3. Expand the Services node.

  4. Select the name of the business service you want to test.

    The business service name appears as a link in the right pane.

  5. In the right pane, click the named business services link.

    The test option appears in the right pane.

    If you are testing a Web service that requires XML input, an input field appears.

  6. Enter the appropriate input.

  7. Click Invoke.

    Application Explorer displays the results.

Configuring an Event Adapter

Events are generated as a result of activity in a database or in an application system. You can use events to trigger an action in your application. For example, an update to a database can reflect an update to customer information. If your application must perform when this happens, your application is a consumer of this event.After you create a connection to your application system, you can add events using Application Explorer. To create an event, you must create a port and a channel.


Note:

OC4J currently conforms to JCA 1.0, which does not call for event capabilities. When conforming to JCA 1.0, only service interactions are supported.

Creating an Event Port

Application Explorer enables you to create event ports from the Adapters node or from the Events node.

Creating an Event Port From the Adapters Node

You can bypass the Events node and create an event port directly from the Adapters node.

To create an event port from the Adapters node:

  1. Select the SAP object for which you want to create an event port.

  2. Right-click the node and select Add Port.

    The Add Port dialog box opens.

    1. Type a name for the event port and provide a brief description.

    2. From the list, select the required disposition, for example, File.

    3. Type the disposition url.

  3. Click OK.

    See "Creating an Event Port From the Events Node" for information on configuring port dispositions.

Creating an Event Port From the Events Node

The following procedures describe how to create an event port from the Events node for various dispositions using Application Explorer. You can switch between a BSE and a JCA deployment by choosing one or the other from the menu in the upper right of Application Explorer.

See "Creating an Event Port From the Adapters Node" for information on creating an event port directly from the Adapters node.

Creating an Event Port for RMI

To create a specific event port for RMI:

  1. Click the Events node.

    expanded events list
    Description of the illustration eventexpandedpartial.gif

  2. Expand the SAP node.

  3. Right-click the Ports node and select Add Port.

    The Add Port dialog box opens.

    1. Type a name for the event port and provide a brief description.

    2. From the Protocol list, select RMI.

    3. In the URL field, specify a destination file to which the event data is written using the following format:

      rmi://host:port;RemoteObject=[APPNAME];errorTo=[pre-defined port name or another disposition url]
      
      
    4. From the Disposition protocol list, select RMI.

    The following table defines the parameters for the disposition.

    Parameter Description
    host The host name or IP address from which the RMI server accepts RMI requests. If you omit this attribute, the RMI server will accept RMI requests from any host.
    port The port number on which the RMI server listens for RMI requests.
    RemoteObject A home or Enterprise Java Bean (EJB) object.
    errorTo Predefined port name or another disposition URL to which error logs are sent.

  4. Click OK.

    The port appears under the ports node in the left pane. In the right pane, a table appears that summarizes the information associated with the event port you created.

    You are ready to associate the event port with a channel. See "Creating a Channel Using Application Explorer" for more information.

Modifying an Event Port

The following procedures describe how to edit and delete an RMI event port using Application Explorer.

Editing an Event Port

To edit an event port using Application Explorer:

  1. Expand the Events node.

    expanded events list
    Description of the illustration eventexpandedpartial.gif

  2. Expand the SAP node.

  3. Right-click the event port you want to edit and select Edit.

    The Edit Port pane opens.

  4. Make the required changes and click OK.

Deleting an Event Port

To delete an event port using Application Explorer:

  1. Expand the Events node.

    expanded events list
    Description of the illustration eventexpandedpartial.gif

  2. Expand the SAP node.

  3. Right-click the event port you want to delete and select Delete.

    A confirmation dialog box opens.

  4. To delete the event port you selected, click OK.

    The event port disappears from the list in the left pane.

Creating a Channel Using Application Explorer

The following procedure describes how to create a channel for your event. All defined event ports must be associated with a channel.

Creating a Channel

To create a channel:

  1. Click the Events node.

    expanded events list
    Description of the illustration eventexpandedpartial.gif

  2. Expand the SAP node.

    The ports and channels nodes appear in the left pane.

  3. Right-click Channels and select Add Channel.

    The Add Channel dialog box opens.

    1. Type a name for the channel, for example, TEST_CHANNEL.

    2. Type a brief description.

    3. From the Protocol list, select SAP Channel.

    4. Select an event port from the list of available ports.To select more than one, hold down the Ctrl key and click the ports.

    5. To transfer the ports to the list of selected ports, click the >> (double right) arrow button.

  1. Click Next.

    The Message Server dialog box opens.

    The following tabs are available:

    • System (Required)

    • User (Required)

    • Advanced

  2. For the System tab, type the appropriate information for your SAP channel based on the information in the following table.

    Table 2-5 System Tab Parameters

    Target Parameter Description
    Gateway host A host name for the SAP Gateway.
    Gateway service A service for the SAP Gateway.
    Program ID of the server An SAP program ID you want to use for this channel.
    Message Server A host name for the message server.
    R/3 name An SAP R/3 name.
    Server group An SAP server group.

  3. For the User tab, type the appropriate information for your SAP channel based on the information in the following table.

    Table 2-6 User Tab Parameters

    Target Parameter Description
    Client The client number defined for the SAP application for client communications.
    User A valid user ID for the SAP application.
    Password A valid password for the SAP application.
    Language A language key. EN (English) is the default.
    Code page A character code page value.

  4. For the Advanced tab (optional), type the appropriate information for your SAP channel based on the information in the following table.

    Table 2-7 Advanced Tab Parameters

    Target Parameter Description
    IDOC Format Select an IDoc type from the list.
    User Defined Function Modules Enter the path to the user-defined function module you created.
    SAP trace Select this check box if you want to enable SAP traces for troubleshooting purposes.
    Unicode Select this check box if you are expecting your response in Unicode format.
    Synchronous Processing Select the type of synchronous processing from the list.

  5. Click OK.

    The channel appears under the channels node in the left pane.

    Channel node
    Description of the illustration sapchannel4.gif

    An X over the icon indicates that the channel is currently disconnected. You must start the channel to activate your event configuration.

  6. Right-click the channels node and select Start.

    The channel you created becomes active.

    Activated channel
    Description of the illustration sapchannel5.gif

    The X that was over the icon in the left pane disappears.

  7. To stop the channel, right-click the connected channels node and select Stop.

Editing a Channel

To edit a channel:

  1. In the left pane, locate the channel you want to edit.

  2. Right-click the channel and select Edit.

    The Edit channels pane opens.

  3. Make the required changes to the channel configuration and click Finish.

Deleting a Channel

To delete a channel:

  1. In the left pane, locate the channel you want to delete.

  2. Right-click the channel and select Delete.

    A confirmation dialog box opens.

  3. To delete the channel you selected, click OK.

    The channel disappears from the list in the left pane.