SAP Basis

SAP Basis Cafe – Exploring SAP R/3 Basis World

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.

August 22, 2007 - Posted by ardhian | Linux, SAPGUI, Unix | , , , , , , , , , , , , , , , , , | 53 Comments

53 Comments »

  1. I have installed SAP Solution Manager 4.0 on SUSE Linux 10 SP1.

    I am able to connect to SAP system using SAP GUI for Java on the console system only.
    I use string “conn=/H/(IP_Address_server_SAP)/S/3201″ in SAP GUI Java expert configuration field.

    But when I try to connect from a windows PC using SAP GUI for windows, I am not able to connect to SAP system, it displays a message, “connection refused”.

    I can login to SAP server at (unix level) using ssh from the windows PC.

    The /etc/services file has ports starting from 3201 for dispatcher.

    Can you lead me, how can I resolve this problem.

    Comment by Vijay Ingle | January 10, 2008 | Reply

  2. hi vijay,

    that’s really strange. please try to check your windows firewall.
    try not to use windows firewall.

    let me know if it doesn’t worked.

    best regards,
    ardhian

    Comment by ardhian | January 11, 2008 | Reply

  3. Hi Ardhian,

    Turning windows firewall off has not helped me.
    And I turned off the SUSE Linux firewall as well.

    Is there any configuration file for SAP GUI for Windows, where I can change the default port on which the SAPGUI sends the request for connection to SAP system.

    Thanks and regards,
    Vijay

    Comment by Vijay Ingle | January 18, 2008 | Reply

  4. Hi Vijay,

    I don’t know if you can change your SAP port because it have been decided when you install your SAP Solman. When installing SAP Solman, you have been asked about SAP system number.

    best regards,
    ardhian

    Comment by ardhian | January 18, 2008 | Reply

  5. Hi,

    I meant configuration file/setting for SAPGUI for windows on the windows client.

    Because the port number for an SAP application server is by convention 3200 plus the two-digit SAP system number, in my example the system no is 01 hence I used 3201.
    It is working perfectly with SAPGUI for Java but on the console system only.
    Thanks for your inputs.

    Vijay

    Comment by Vijay Ingle | January 20, 2008 | Reply

  6. Hi Vijay,

    I’m sure that you have configured your SAPGUI for Windows correctly, right ?
    Make sure that your PC was connected to your network and SAP Solman server correctly. Try to ping your SAP Solman server and make sure its replies.

    Hope that help you.

    If it doesn’t work, then i have no ideas anymore.

    ardhian

    Comment by ardhian | January 21, 2008 | Reply

  7. HI,

    I’ve installed the SAPGUI over SLED 10.1 SP2, i change the type of font of the SAPGUI (Options – Preferences – Design – Fonts). But, the SAPGUI displays allways a kind of font that is not good to read. I allways get a bold font very ugly.

    I want to change the font in such a way that the SAPGUI could be readable for the user.

    Thanks on advance.

    Comment by David Funez | June 27, 2008 | Reply

  8. Hi david,

    What’s SAPGUI version you are using ? JRE version ?

    Try to import some Windows fonts to your Linux ?

    Hope that can help.

    ardhian

    Comment by ardhian | June 28, 2008 | Reply

  9. Vijay,

    Thanks a million for your tip. I had the expert config string constructed in seconds and JAVA GUI up and running on my Mac in minutes.

    Power to the people!

    Comment by wwm2 | July 9, 2008 | Reply

  10. What if I want to connect SAPGui with a SAPRouter?
    Sap router have a public IP, but I just know local IP of servers…

    regards…

    Comment by Hugo | July 15, 2008 | Reply

  11. Hi Hugo,

    You need your SAP router IP Public information. You cannot connect to your SAP Server just using local IP info if you’re try to connect through intenet.

    Ardhian

    Comment by ardhian | July 16, 2008 | Reply

  12. Pak Ardhian,

    Thanks a lot for sharing yr knowledge, i try to connect to server (with logon balancing) and no success. Is there other logon balancing method other from you’ve discussed here? because (windows version) our logon balancing configuration script (created by implementation consultant) is changing services.ini and there is declarations of services more than just 3200 and 3600 (the also include 1200 to 1600).

    I just begin to learn basis, so please forgive me silly questions.

    God Bless You

    Comment by ery | July 23, 2008 | Reply

  13. I need to connect to the SAP server in my job, but i’m at home. I have the SAP router string ip, it’s a public IP and the server Ip it’s a local ip. How i modify the command line to get to connect. In windows xp simply i fill the field “router string” and “app server”, but in ubuntu i can’t do it.

    Espero tu ayuda, mi inglés no es muy bueno.

    Gracias

    Comment by Javier | September 3, 2008 | Reply

  14. I’m connected using a sap router with the next command:

    conn=/H/(SAP Router String)/H/(IP Address server)/S/3200

    thx

    Comment by Javier | September 3, 2008 | Reply

  15. Hi Javier,

    It seems that you missed little configuration. When you’re using SAProuter, you need to mention your SAProuter port, by default 3299.

    So, your connection string should be :

    conn=/H/(SAProuter_Public_IP)/S/3299/H/(Your_SAP_Server_Local_IP)/S/3200

    Make sure that your SAPGUI port is correct, 3200. For other people may be different.

    I hope this config could help you.

    Best Regards,
    Ardhian
    Please consider donation through my paypal account : devratt@yahoo.com

    Comment by ardhian | September 4, 2008 | Reply

  16. hi thanks for the post, i have configured sap gui on linux, every thing works okay but not able to print from sap gui
    kindly suggest how to solve this issue

    Comment by ashit | September 25, 2008 | Reply

  17. hi ashit,

    If you’re using SAP R/3 4.7 and has Basis patch level 52 or above, you can use SAPGUI for Java version 7.10 and using G access method to print.

    G access method can print directly on frontend printing printer. Just as Windows based type (F access method)

    ardhian

    Comment by ardhian | September 26, 2008 | Reply

  18. Worked perfect for me, thank you very much and keep up the good work!!

    Comment by Gokudan | October 2, 2008 | Reply

  19. Dear Expert,

    You have done very great job regarding SAP GUI for JAVA.

    I need specifically for RedHat Linux. Could you please provide them.

    Regards,
    Ashok Kumar R

    Comment by Ashok Kumar | October 9, 2008 | Reply

  20. Hi Ashok,

    since this tutorial can work on Fedora, so it should be working when you work on Redhat Linux. No problem at all.

    all you need is first installed SUN java and update its alternatives command, then install SAPGUI for Java (PlatinGUI). Use the newest one.

    ardhian

    Comment by ardhian | October 11, 2008 | Reply

  21. Hi great little blog here.

    What is the significance of getting the following partial error with PlatinGUI 710r6 for Linux on Fedora Core 8 based setup, when SAP Server IP (not message server IP) is used in connection string, when trying from Internet-based connection?

    Error: partner not reached Release 710 Component NO (network interface), version 39 rc = -10, module nibuf.cpp, line 4628 Detail NiBufIConnect: connection pending after 10000ms System Call connect Error No 115 ‘Operation now in progress’

    JRE Verion is 1.5.0.10 methinks. Thanks in advance.

    (BTW works fine with Windows 2000/SAPGUI 620).

    Comment by Super | October 22, 2008 | Reply

  22. hi,

    are you connecting to your SAP server using SAProuter ?
    If so, check your SAProuter first.

    ardhian

    Comment by ardhian | October 22, 2008 | Reply

  23. No SAProuter. Just by IP in the connection string.

    Comment by Super | October 23, 2008 | Reply

  24. Let me get clearly. Do you install your SAP server using public IP address ? If not, then you cannot connect directly to your SAP server from internet.

    To connect to SAP server (which is usually reside on internal network), SAP has provide SAProuter.

    ardhian

    Comment by ardhian | October 23, 2008 | Reply

  25. Hi it’s public IP.

    But no problems at all connecting by internet from Win2K and SAP logon pad 620. Very unusual.. maybe the error is a timeout error that has a changeable wait parameter?

    Comment by Super | October 23, 2008 | Reply

  26. Hi,

    It was resolved by adding “32″ ahead of the system number in my connection string, as explained here:

    https://www.sdn.sap.com/irj/sdn/thread?threadID=825463&start=0&tstart=30

    Keep up the nice blog. I will email you about the printing functionality sometime and the current price.

    Comment by Super | October 23, 2008 | Reply

  27. hi,

    congratulations !

    I’ll wait for your consult about printing. I have just finished my client from Phillipines for this printing solution.

    ardhian

    Comment by ardhian | October 23, 2008 | Reply

  28. nice

    Comment by devratt | November 12, 2008 | Reply

  29. hi ardhian,
    I dont know wheather u can help or direct me where i can get this solution,the problem involves inside sap system,i hv 140,000 records,and i wante to delimit a code,in each of the 140,000 records,am doing it manually is there anyway i can delimit this code automatically,all at once?

    thanks

    Comment by musopelo | December 29, 2008 | Reply

  30. hi Ardhian,

    I have just installed the JAVA gui on linux.
    every thing works fine except, I cannot get the histories.
    The drop down list we get when spacebar is hit, last input entries say.

    How can we reciprocate this in the java gui.

    Please help

    Regards

    Comment by kermitz | January 21, 2009 | Reply

  31. hi,

    use SAPGUI for Java version 7.10 if you need input history.
    The latest version is SAPGUI for Java 7.10 rev 7.

    ardhian

    Comment by ardhian | January 21, 2009 | Reply

  32. Dear All,

    We have installed the windows 2003 Server but we need to install the SAP GUI Linux client for the client side. So any prerequisite needed the SAP GUI Linux install. Please help me for this issue.

    Best Regards,
    Thiru
    +91 9840544311

    Comment by Thirumoorthi | February 7, 2009 | Reply

  33. Hi All

    We i am trying to install the JRE its showing error message “The download file appears to be corrupted. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Please do not attempt to install this archive file.”
    pl can u help us any one?

    Thanx
    Sriram

    Comment by sriram | February 17, 2009 | Reply

    • hi sriram,

      you should download JRE from SUN (http://java.sun.com). All you need to extract and set appropriate JAVA environment.

      ardhian

      Comment by ardhian | February 17, 2009 | Reply

  34. Hi Ardhian

    1. sapgui for java weather it will support Fedora 10 ?

    2. In Fedora 10 how we can install the SAPgui for JAVA ?

    My email address sriram.sbg@gmail.com

    Thanx
    Sriram

    Comment by Sriram | March 7, 2009 | Reply

  35. hi,

    although your Linux distro is not specifically mentioned to be supported, it is still possible to install SAPGUI for Java. I am sure that fedora 10 is supported.

    first check whether java is already installed on fedora by typing command :

    #java -version

    if this command gives you info about java from SUN then you are ready to install SAPGUI for Java.

    To install SAPGUI for Java just follow my step by step tutorial on this posting.

    ardhian

    Comment by ardhian | March 8, 2009 | Reply

  36. hiie , m i know about all tips regarding SAP application on (specific kubuntu 8.10)linux how work well …

    Comment by aMoL z | March 16, 2009 | Reply

  37. Hi,

    I have this odd issue with SAPGui for jawa.

    It works file and I can log in to system but only with ddic and when I try to use my own user account I get this kind of error:

    —-
    Your Windows uses codepages and SAPLogon uses 1100
    Windows and SAPLogon codepage mismatch
    Ajust Windows default codepage or SAPlogon codepage. You will be logged off!

    Like I say this appears ONLY with my own user accound with ddic everything works fine.

    SAPLogon version is: SAPGUI for java 7.10 rev 8
    my linux is ubuntu

    Mikko

    Comment by Mikko | April 8, 2009 | Reply

  38. Hi Mikko,

    It seems that you’re experiencing SAPLogon Codepage problem. Although SAPGUI for Java was support Unicode but some function still won’t work properly.

    Check this link
    (http://help.sap.com/saphelp_40b/helpdata/de/93/e6415d4ba811d189510000e829fbbd/content.htm)

    I think this is because of your Windows codepage. Maybe you’re using non standard codepage.

    FYI, I am using Linux so I couldn’t test it.

    ardhian

    Comment by ardhian | April 13, 2009 | Reply

  39. Hi Mikko,

    Also check your Windows codepage conversion table.

    From your Windows Start Menu – Control Panel – Regional and Language Options.

    See Advanced Tab and check your codepage conversion tables.

    ardhian

    Comment by ardhian | April 13, 2009 | Reply

  40. Hi Ardhian,

    I would like to know that in the most recent release of the JAVA gui for sap rev 8, is it possivble to do a CTRL + Y and copy the data.

    As i’ve seen that in the ALV reports we are not able to do this.
    I went to sm50 and tried it, and the cursor will not select the data.

    Kindly help me out.

    Regards
    Nirmit

    Comment by Nirmit | April 13, 2009 | Reply

  41. hi nirmit,

    as long as i know, it is possible to do copy and paste using SAPGUI for Java.

    Use CTRL + Y to select and then use CTRL + C to copy.

    You can use CTRL + V to paste.

    ardhian

    Comment by ardhian | April 14, 2009 | Reply

  42. Yes Ardhian,

    You are right it is possible to do crtl+y & ctrl+t.
    but when i am in any alv report, and try to do a drag, i.e. selecting multiple columns & rows, that does not happen after the ctrl+y in java gui rev8.
    as compared to the normal gui under windows.

    Be it the java gui under linux or windows, i encountered the same.

    Plz let me know if you face the same problem or not.?? or is it just me.

    thanks
    nirmit

    Comment by nirmit | April 14, 2009 | Reply

  43. hi nirmit,

    This DRAG AND DROP feature you’re looking is still one of the missing feature from SAPGUI for Java, even in SAPGUI for Java 710 rev 8.

    Hope that SAP will solved this problem soon…(Hope MODE ON)
    :D

    ardhian

    Comment by ardhian | April 15, 2009 | Reply

  44. Thanks for letting me know.
    I though I was missing something.

    Nirmit

    Comment by Nirmit | April 15, 2009 | Reply

  45. hi Adrian

    I’m using Linux also and that makes this problem difficult. I don’t know which codepages I should install and why this problems appears only with my own user account, not ddic

    Mikko

    Comment by Mikko | April 23, 2009 | Reply

  46. hi mikko,

    what linux distro you’re using ? is it using specific language/code ? for example, you are using arabic language or something. i never faced those problem since i always use default (usually English) language distro.

    ardhian

    Comment by ardhian | April 27, 2009 | Reply

  47. Hi Adrian,

    I have Ubuntu and using English language.

    And what confusing me most is that with ddic everything works well but with my own user I got this error:

    Your Windows uses codepages and SAPLogon uses 1100
    Windows and SAPLogon codepage mismatch
    Ajust Windows default codepage or SAPlogon codepage. You will be logged off!

    As you can see myt “windows” codepage is empty and saplogon wants to use 1100. and why it keeps telling Windows?

    Mikko

    Comment by Mikko | April 27, 2009 | Reply

  48. hi mikko,

    may i know your system config ?
    OS :
    DB :
    your SAP version :

    ardhian

    Comment by ardhian | April 28, 2009 | Reply

  49. if you mean SAP server side it is:
    OS:HP-UX
    DB Oracle 10
    SAP: 7.00

    but I think problems is in my linux client

    M

    Comment by Mikko | April 28, 2009 | Reply

  50. I found your blog on google and read a few of your other posts. I really interested and I just added you to my Google News Reader. Keep up the good work. Look forward to reading more from you in the future.Cheer!

    Comment by SAP Solution | June 30, 2009 | Reply

  51. When tried to do this step
    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).

    I got this below error message in terminal

    Unable to access jarfile PlatinGUI-Linux-710r10.jar.

    I am new to linux, using Ubuntu want to install SAPGUI for Java. I have successfully installed JRE following your steps, but have issue with installing SAPGUI.

    Guide me!!!!

    Comment by Arvind | October 22, 2009 | Reply

  52. @arvind : make sure that you can access this jar file.

    ardhian

    Comment by ardhian | October 23, 2009 | Reply


Leave a comment