cancel
Showing results for 
Search instead for 
Did you mean: 

Start external Java application out of SAP

Former Member
0 Kudos

Hi!

How can I start an external java application out of the SAPGui. This extrnal java client uses JCo to connect against this SAP system and works remotly with it. It would be great if I could setup a mechanism that the java client is already connect against SAP since it is started out of it... Is this possible or is it necessary that the users provide there login information again?

Thanks,

Konrad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Konrad,

You can start a basic java program from the SAP client by executing the .bat file that are generally used to start a java application. If you give some more details about that application then i may suggest you how to call and how to pass the user names and parameters to the java application through the SAPGui.

Thanks,

Guru.

Former Member
0 Kudos

Hi!

What details do you need about the application?

It should run as a standalone java client and should be started out of SAP. The interaction with SAP is done with JCo. As the user was already in the SAPGui it should not be necessary to logon in the new application again...

Thanks,

Konrad

Former Member
0 Kudos

Hi Konard,

Since the user has logged into the SAPgui, only thing we need to next do is to call the standalone JAVA application and pass the username and other details to the .bat file as parameters. In turn the bat file will pass these parameters to the actuall java classes which will connect to the SAP through JCO.

Thanks,

Guru.

Former Member
0 Kudos

What details are necessary to pass to the .bat file? As LogOn for the JCo you need user, password, connection-parameters like Host... Can I get this info to pass it to the java application?

Thanks,

Konrad

Former Member
0 Kudos

Hi,

I am looking for the exact solution you are pointing to.

How can i pass the username and password from SAP GUI to my java client program..

Rgds

Shashank

Former Member
0 Kudos

I also need the same solution.

I need to pass username and password from my SAP GUI to the java client program.Can you suggest

Rgds

Shashank

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Konrad,

the answer to your problem is SSO (single sign-on). There are several scenario that is possible to configure with SSO. A typical scenario is that a user logon the java application, this application then calls sap system via JCO without the need to ask for others authetications.

There are several authentication methods. For example you can use the SAP logon ticket: the java application issue the logon ticket and the sap system read it.

But if the java application is external to the SAP application server others methods are possible. In any case take a look to this, this should help you:

System side:

http://help.sap.com/saphelp_nw2004s/helpdata/en/12/9f244183bb8639e10000000a1550b0/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/12/9f244183bb8639e10000000a1550b0/frameset.htm

Application side:

http://help.sap.com/saphelp_nw2004s/helpdata/en/f8/9636eedafe8b4589cd6e9e4e73fd3c/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/17/d609b48ea5f748b47c0f32be265935/content.htm

Regards,

Vito

Please mark helpful answers