Thursday, September 18, 2008

Installation and Configuration of SAPGUI for Java on Linux

Based on many questions in my email inbox, asking how to install and configure SAPGUI for Java on Linux, here I’ll explain it briefly.

Prepare these stuffs before you can proceed to installation :

  1. You have to make sure that your Linux system has been installed with JRE (Java Runtime Environment) from SUN Microsystem (http://java.sun.com). If you don;t have it, just download it from here. Some of linux distros such as Fedora, Ubuntu, OpenSuSE etc using JRE from GNU called GIJ (GNU for Java). We can’t use this JRE. We need to replaced it. I’ll show you how to changed it later.
  2. You also need SAPGUI for Java installer. You can download it freely from ftp://ftp.sap.com.





After you have all prerequisite, you can proceed to next step to extract and change your JRE. This step is valid for Fedora, Ubuntu, and OpenSuSE. Please let me know if these doesn’t work for you.

  1. Logon as root
  2. Copy your JRE installer file to /opt folder.Please use .bin extention file.
  3. Change file permission if needed to executable. Use this command : #chmod 755 jre-1.xxx.bin (xxx = refer to JRE version you’re using).
  4. Extract JRE files. Use this command : #./jre-1.xxx.bin
  5. Install JRE you just extracted inside alternatives system. Use this command : #/update-alternatives –install /usr/bin/java java /opt/jre1-xxx/bin/java 2
  6. Update java command configuration on alternatives system. Choose java number 2 because usually GIJ had number 1 position. Use this command : #update-alternatives –config java
  7. Use this command to verify your JRE configuration. You can use this command : #java -version
  8. If you get something like this on your screen then you are succeeded. java version “1.6.0″
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

After you finish this step, you can proceed to SAPGUI for Java installation.

  1. Logon as root
  2. Use this command (on terminal) to install SAPGUI for Java. #java -jar PlatinGUI-Linux-xxxx.jar (Use the latest version).
  3. Installed on /opt folder as default (usually on /opt/SAPClients folder)

Next step is configure your SAPGUI for Java and try to test to SAP R/3 server connection.

  1. Run executable file called guilogon (reside on /opt/SAPClients/SAPGUI700rev1/bin). It willpop up SAPGUI for Java window.
  2. Click New button.
  3. Fill the Description column as you like.
  4. Click Advanced Tab.
  5. Give check (V) to Use Expert Configuration
  6. Fill the connection string. If your server using load balancing configuration, use this connection string conn=/M/(IP_Address_Message_Server)/S/36(system_number)/G/(nama_group) and use this connection string configuration if yor SAP R/3 server are not using load balancing system, conn=/H/(IP_Address_server_SAP)/S/32(system_number).

There you go ! Now, you can use your SAPGUI for Java to access your SAP R/3 server. Comments and suggestions are welcome. I’ll try to update this tutorial as best as I can.




16 comments:

Unknown said...

Hi All

Is this same steps for Fedora 10? or another steps are there ?

Regards
Sriram

SASHI said...

Sriram,

The steps for configuration for the SAP GUI are all same for all versions of Linux and Unix. Though the .jar files for each O.S differs. Try to carefully see the prefix of the labels.

SASHI said...

1. Navigate the CD. Look for the appropriate version of Operating System.
2. In the directory corresponding to your O.S unpack being 'root.'
3. Default directory is /opt/SAPClients.
4. Look for sapgui.sh and execute it.
5. Go to 'Expert mode' for configuration and then run the script as described by previous bloggers.
5. BE WARY OF THE IP ADDRESS AND THE SYSTEM NUMBER.
3200 IS THE DEFAULT PORT. DO ADD YOUR SYSTEM'S NR TO IT.

Bye.

Unknown said...

dear sashidhar

Thanks for your replay i will try and the get back u incase of any problem

Regards
Sriram

Dawn said...

Hi,

What will be the format if i need to add our SAProuter String?

Thanks

Dawn

saumya said...

This is the good and best one .

Anonymous said...

Do you know wich folders must to be writeable? We have a diskless solution with Red Hat Enterprise 5. We have a strange issue selecting in a schedule (ISH module) a date, sap takes other date.
Thanks.

logistic-solutions said...


Nice post ! Thanks for sharing valuable information with us. Keep sharing.
big data & analytics services in NA

Deep Technologies said...

nice blog, ecommerce development services in surat , i am impress to read this article

Anonymous said...


Thanks, this is generally helpful.
Still, I followed step-by-step your method in this Java training
Java course

cloudbeginners said...

ras study material in hindi

cloudbeginners said...

aws inspector
openshift vs kubernetes
azure data lake
arm templates
azure traffic manager
azure bastion
azure synapse analytics

pragyan said...

aws interview questions
aws solutions architect interview questions and answers
data science interview questions
azure solution architect interview questions
power bi interview questions
azure data factory interview questions

Techystick said...

"ebs on oci free guide
EBS R12 to Cloud For Beginners
oracle integration cloud services
az-303 questions
AWS Certified Solutions Architect For Beginners
AWS Solutions Architect Interview Questions
aws certified solutions architect - associate q&a
AWS Certified Solutions Architect Free training
da 100 examination questions
Power BI Data Analyst Certification For Beginners
Docker & CKA free training
Guide for Kubernetes Admin"

aaradhya mehta said...

Elevate your business with our managed ibm cloud solutions. Let our experts handle your infrastructure while you focus on growth.

techarinatips said...

Explore top-notch Docker consulting services to optimize containerization strategies. Unlock efficiency and seamless deployment for your business success.