Convert saplogon.ini file to connections file for SAPGUI Java
A few days ago I installed Ubuntu in a second partition on my Workstation. Everything went well so far. Eclipse was easy to install and the relocation of workspaces was a pleasure. As Linux in general has no problems in using data stored in a Windows (e. g. NTFS) partition, I did not have to copy huge amounts of data from my Windows partition to my new Ubuntu partition.
After playing a bit around with Ubuntu I started thinking about my next day in the project. A SAPGUI was required. Therefore I downloaded SAPGUI for Java environments from SAP Service Marketplace. The installation was easy and SAPGUI started properly on my Gnome Desktop.
Then, after SAPGUI finishes starting, I recognized the vacuum – There was no connection to any of my SAP systems configured. “OK” I thought “just go back to the Windows partition and copy saplogon.ini to my user’s home directory”.
After restarting SAPGUI the vacuum remains, unfortunately. Then I created a new connection to a random system and recognized that a file called “connections” changed its size. So, connections must be the file that contains the connections to my SAP systems. That must be the file to modify and to import the data stored in saplogon.ini to. Unfortunately, the connections stored in connections file look totally different from the connections stored in saplogon.ini.
Google did not give me any hints to a tool that was able to convert a saplogon.ini file to a connections file as used by SAPGUI for Java environments.
To keep things short: I implemented a small tool, that is able to convert a saplogon.ini file in a way, that the i nformation stored in it can be used by a SAPGUI for Java environments. It is implemented in Java. Here the link to JAR file: SapGuiIniToSapcConverter.jar. The tool can be used on Windows or Linux platforms, thanks to Java. Here is how to use it: Open your favorite command line (terminal on Linux / UNIX environments or command prompt in Windows environments) and type in the following command:
java -jar [complete path to SapGuiIniToSapcConverter.jar] [path to source saplogon.ini file] [path to target connections file]