Installing the SAP MI Client on the Compact Flash Card

Use

You can install the client on the Compact Flash Card (CF card) of a PDA.

The installation is only possible with CF cards, and not with Secure Digital Memory cards (SD cards).

If you want to perform the installation on multiple devices, you can create a master installation and then either copy it manually to the mobile devices or create a new installation file with it.

Prerequisites

?      You determined the correct version of CrEme (see Framework Files).

?      You have fulfilled the general prerequisites (see Prerequisites).

Installing the Client and CrEme on the PDA

...

       1.      Install the client on the mobile device.

Do not perform synchronization afterwards.

       2.      Install the CrEme file in the directory \CrEme.

Installing a Patch on PDA

...

...

       1.      If a patch exists, copy the corresponding JAR file to directory \MI\lib.

       2.      Adjust file \MI\listOfJars.txt:

                            a.      Copy the files to a directory of your choice where they can be edited.

                            b.      Enter the path and name for the JAR file, for example

\MI\lib\MI25SP03patch02;<further JAR files>.

Separate the entries with a semicolon (;).

       3.      Copy the file back to the directory.

       4.      Adjust file \MI\creme_listOfJars.txt by specifying the path and name for –classpath, for example –classpath='MI\lib\MI25SP03patch02;<further JAR files>'.

Copying SAP MI and CrEme to the PDA

...

       1.      Copy directory \MIto \CF Card\MI.

     2.      Copy the installation directory for CrEme into the directory \CF Card\CrEme. The file creme.exe can then be found in the directory \CF Card\CrEme\bin.

       3.      Copy the file localhostworkaround.cpf from the directory \Start Menu (AWT version) or \startup (JSP version) into the directory \CF Card.

Installing Database Support

...

       1.      If you want to use applications that need database support on the mobile device, copy the relevant JAR file, for example db2ejdbc.jar, from the database add-on to directory \CF Card\MI\lib.

       2.      Adjust file CF Card\MI\listOfJars.txt as described above for patches.

       3.      Adjust file \MI\creme_listOfJars.txt as described above for patches.

       4.      Copy the relevant DLL files for the database to directory CF CARD\creme\bin, for database DB2e for example:

0       CryptoPlugin.dll

0       DB2e.dll

0       DB2eJDBC.dll

       5.      Insert the following lines in file CF CARD\MI\settings\MobileEngine.config:

0       MobileEngine.Persist.Jdbc.PreparedStatementCacheSize=15

0       MobileEngine.Persist.Encryption=

0       MobileEngine.Persist.Jdbc.Driver=com.ibm.db2e.jdbc.DB2eDriver

0       MobileEngine.Persist.Jdbc.DbUrl=jdbc:db2e:%d

0       MobileEngine.Persist.Jdbc.DbName=db2e

0       MobileEngine.Persist.Jdbc.Db2.Dll=DB2eJDBC,CryptoPlugin, DB2e

0       MobileEngine.Persist.Implementation.TransactionManager = com.sap.ip.me.persist.jdbc.DBPersistenceManagerImpl

0       MobileEngine.Persist.Implementation.TransactionManager2 = com.sap.ip.me.persist.jdbc.DBPersistenceManagerImpl

0       MobileEngine.Persist.Implementation.DescriptorRuntime = com.sap.ip.me.persist.jdbc.DBDescriptorRuntimeImpl

0       MobileEngine.Persist.Implementation.PersistenceRuntime = com.sap.ip.me.persist.jdbc.DBPersistenceRuntimeImpl

0       MobileEngine.Persist.Implementation.QueryRuntime = com.sap.ip.me.persist.core.QueryRuntimeImpl

Modifying and Copying the Start Link (AWT Version)

...

       1.      For the AWT version, copy file \windows\Start Menu\MobileEngine.lnk to a directory of your choice in which you can edit the file.

       2.      Change:

Old

New

\windows\CrEme\bin\CrEme.exe

\CF Card\CrEme\bin\CrEme.exe

-cf 'MI\nlfont.txt'

–cf 'CF Card\MI\nlfont.txt'

-cf 'MI\creme_listOfJars.txt

–cf 'CF Card\MI\creme_listOfJars.txt'

'-home:\MI'

'–home:\CF Card\MI'

Example for a modified start link (modified elements are in bold).

255#“\CF Card\CrEme\bin\CrEme.exe“ –Of –cf ‘CF Card\MI\mlfont.txt’–cf ‘CF Card\MI\creme_listOfJars.txt’ com.sap.ip.me.core.Startup ‘-home:\CF Card\MI’

       3.      Copy the modified file back to directory \windows\Start Menu\.

       4.      Copy file MobileEngine.lnk from directory \windows\Start Menu\ to directory CF Card.

Modifying and Copying the Start Link (JSP Version)

...

       1.      For the JSP version, copy file \windows\startup\MobileEngine.lnk to a directory of your choice in which you can edit the file.

       2.      Change:

Old

New

\windows\CrEme\bin\CrEme.exe

\CF Card\CrEme\bin\CrEme.exe

-cf 'MI\creme_listOfJars.txt

–cf 'CF Card\MI\creme_listOfJars.txt'

'-home:\MI'

'–home:\CF Card\MI'

Example for a modified start link; modified elements are in bold.

255#"\CF Card\CrEme\bin\CrEme.exe"-Of -cf 'CF Card\MI\creme_listOfJars.txt'com.sap.ip.me.core.Startup '-home:\CF Card\MI'

       3.      Copy the modified file back to directory \windows\startup\.

       4.      Copy file MobileEngine.lnk from directory \windows\startup\ to directory CF Card.

Adjusting Files on the CF Card

...

       1.      Adjust file CF Card\MI\listOfJars.txt as described above for patches. Change the paths so that they refer to the relevant directories on the CF card.

       2.      Adjust file CF Card\MI\creme_listOfJars.txt as described above for patches. Change the paths so that they refer to the relevant directories on the CF card.

Preparing for Mass Installation

...

       1.      On your computer, create a directory named MobileOnCfCard.

       2.      Copy all the files and subdirectories from directory \CF Card to this directory. The directory has the following structure:

CF Card

CrEme

MI

       3.      In directory MobileOnCfCard, create a directory named \windows\Start Menu (AWT) or \windows\startup\ (JSP) and copy file MobileEngine.lnk to this directory.

       4.      Restart the device.

Manually Performing Mass Installation

...

       1.      Copy the subdirectories and files from directory MobileOnCfCard to the PDA.

Subdirectories CF Card and windows must overwrite the corresponding directories on the device.

       2.      Copy the file localhostworkaround.cpf into a directory of your choice and execute it.

       3.      Restart the device.

       4.      Report these steps for PDAs with the same processor and operating system.

Performing Mass Installation Using the Installer

As an alternative to manual installation, you can create a new CAB file for the installation on the mobile device. To do this, you require the Pocket PC Software Development Kit (see Preconfiguring on Windows Mobile Platforms).

...

       1.      Copy files cabwiz.ddf, cabwiz.exe and makecab.exe to directory MobileOnCfCard.

       2.      Copy the files for the SAP Cab tool (see Note 746778) to directory MobileOnCfCard.

       3.      Open the input request and navigate to directory MobileOnCfCard.

       4.      Enter the following:

java -jar cabTool.jar . out.inf "Mobile Infrastructure"

The following message appears: .inf File successfully created.

       5.      Create the CAB file with the following entry:

cabwiz.exe out.inf

File out.cab is generated.

You can copy this file to all PDAs with the same processor and operating system and install it there simply by clicking. Alternatively, you can also deploy the files and assign them using the Mobile Administrator.