Skip to Content
avatar image
Former Member

Run Shorcut.Exe SAPGUI 730 From Java

Hi ,

We had written a Java application. It's build a command line as shurtcut and we ara login SAP ERP automaticaly.

There is no problem until SAP GUI 720 .

But Java application don't work for SAP GUI 730.

When i want to login , process is waiting. So I terminate

the java application but after command line work.

My java Code :

    Runtime rt = Runtime.getRuntime();

    Process pr = rt.exec(command_line);

Command line parameter is 'C/:....shurcut.exe -user..-password ...'.

Can anybody help us ?

I think this is interest securtiy in SAPGUI 730 .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 20, 2014 at 03:57 PM

    Hi

    You can either connect using SAPGui binary or the SAP shortcut binary.

    Here are two examples that I did test on a SAPGui 7.30

    The '-gui' parameter is optional but it can allow to connect on a SAP system that is not defined in the SAPLogon.ini config file of the client

    TheĀ  -command param allows to open a specific report/transaction.

    Regards


    "%ProgramFiles%\SAP\FrontEnd\SAPgui\sapgui.exe" /SHORTCUT="-system=XXX -client=200 -user=TEST -pw=password -language=E -type=Transaction -command=se38 -gui=/H/SAP_srv_hostname/S/3200"

    "%ProgramFiles%\SAP\FrontEnd\SAPgui\sapshcut" -system=XXX -client=200 -user=TEST -pw=password -language=E -type=Transaction -command=se38 -gui=/H/SAP_srv_hostname/S/3200



    103019 - SAPshortcut: Program parameters

    SAPshortcut - Netweaver Technology - SCN Wiki

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      got the same problem.

      A Java Applet is loaded and tries to start sapshcut.exe to view a transaction.

      In background a jp2launcher.exe (Java 8) is started.

      The sapshcut.exe is executed after several minutes. If i kill the jp2launcher process
      the sapshcut works immediately.

      The only workaround I found, is replacing the sapshcut.exe from SapGui Rel. 7.3 or 7.4
      with the sapshcut.exe from the 7.2 version.

      That works.

      Regards

      Ralf Mertens