on 02-20-2014 2:06 PM
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 .
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Yves.
My problem is , when I run my command text via Windows Command Line no problem occurs but
same line run via My Java Application GUI dont open until i terminate application.
Why is Java Appilication Don' Work ? My Application is worked SAPGU 720.
My Command Text
C:\Program Files\SAP\FrontEnd\SAPgui\sapshcut.exe
-sysname="Customer PRD" -client=100 -user=CONUSER -pw=PASS -language=EN -type=Transaction -command=SESSION_MANAGER
This can happen if option are not recognized.
So the command is working when you launch it from shell prompt but not working when called from Java ?
Pay attention to the fact that sysname parameter depends on option defined in the SAPGui of the computer you are running the command on ( => saplogon.ini). If the saplogon.ini is not the same on all machine you can get into trouble.
Regards
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 😎 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.