on 09-19-2008 4:05 PM
Hello dear forum users,
I would like to start and register me in immediately SAPGUI visible with a Java program. Somebody has an idea of how to do this or with which technology to do this?
Regards,
Hüdayi
Hi,
To open SAPGUI from java program, use this code
String []command={"cmd.exe","/c","Start","C:\WINDOWS\SAPwksta\setup\SAL\SapLogon.sal" };
try {
Runtime run=Runtime.getRuntime();
Process proc=run.exec(command);
} catch (IOException e)
{
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then start the Java GUI instead from your Java code instead. In the configuration of the Java GUI, you can define parameters for each system (for e.g - client, user, password, language, etc). I am not sure if you can start the login process automatically too, but you certainly can set the login information in the configuration file.
I have the helpful answer,
Process p = Runtime.getRuntime().exec(
"C:/Programme/SAP/FrontEnd/SAPgui/sapshcut.exe -system=EE3 -client=300 -user=RWExxx -pw=yyyyyyy -language=E -command=PFCG");
Based on the parameters the SAPGUI will be logged in with Java code.
Anyway thank you for your help.
Regards,
Hüdayi
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.