Preparing the Unwired Platform Environment for SAP Connections

The SAP JCO connector is used by all Unwired Platform components. Therefore, Sybase recommends that you make all changes concurrently in a distributed environment for development and production installations of Unwired Platform.

Prerequisites
Before you can access the SAP Web site, you must have an SAP account.

These steps describe the common tasks for setting up an SAP environment. Other details, such as where to copy files, differ by component.

  1. Go to the SAP Web site at http://service.sap.com/connectors and download the latest SAP JavaConnector, for example, sapjco-ntintel-2.1.8.
  2. Unzip the file, which contains:
    • sapjco.jar
    • librfc32.dll
    • sapjcorfc.dll
  3. Shut down all Unwired Platform components, including Unwired WorkSpace and all Unwired Servers on your network.
  4. Copy librfc32.dll and sapjcorfc.dll into the following target directories:
    Component Targets
    Eclipse Unwired WorkSpace
    • C:\WINDOWS\system32
    • <SUP Installation root>\UnwiredPlatform\JDK1.6.0_12\bin
    Visual Studio Unwired WorkSpace
    • \Program Files\Microsoft Visual Studio 9.0\Common7\IDE
    • <SUP Installation root>\UnwiredPlatform\Unwired_WorkSpace\VisualStudio\toolingapi\lib
    Unwired Server
    • <SUP Installation root>\UnwiredPlatform\Servers\UnwiredServer\dll
  5. Copy sapjco.jar into the following target directories:
    Component Targets
    Eclipse Unwired WorkSpace
    • <SUP Installation root>\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.com.sap.mw.jco_1.2.0.<version>\lib
    Visual Studio Unwired WorkSpace
    • \UnwiredPlatform\Unwired_WorkSpace\VisualStudio\toolingapi\lib
    Unwired Server
    • <SUP Installation root>\UnwiredPlatform\Server\UnwiredServer\lib
  6. In a clustered production environment, you must also enable SAP mobile business objects to connect to an SAP R/3 system that uses a router:
    1. Change to \UnwiredPlatform-1_2\Servers\UnwiredServer\Repository\Instance\com\sybase\sap.
    2. In a text editor, open <SAPprofile>.properties, where SAPprofile is the name of the connection profile that is used to deploy SAP mobile business objects from Unwired WorkSpace to the server.
    3. Set the value of the jco.client.ashost property to /H/proxyHost/H/applicationServer , where:
      • proxyHost is the name of the proxy-server machine, and
      • applicationServer is the name of the application server
  7. After copying the files, restart all components and all Unwired Servers.