Skip to Content
author's profile photo Former Member
Former Member

What does JCO.Client.setSapGui( ) do?

I'm looking at the javadoc for JCO, and there is a call for setSapGui(int). The doc doesn't really say what it does. Can anyone tell me what this method is for?

I would like to use it to bring up the login dialog on Windows if possible.

~John

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Posted on Mar 01, 2004 at 06:35 PM

    Hello John,

    I think by enabling the SAP GUI with setSapGui(1) you can also call functions with GUI output. But this is only possible when you have SAP GUI installed on the computer you are running the JCO Program. In a Web environment it does not make sense.

    Regards

    Gregor

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Gregor Wolf

      Yes Gregor. I am getting the login details from the user.

      But my question is different.Suppose, I want to invoke the Login window of SAP. First I will call setSapGui(1). Then I have to call some function module to invoke the login window. What is that function module? What are the function modules for some other SAP windows? How can I find those function modules? This is my question. Thanks in advance.

      Regards,

      Vijaya Gopal.

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2004 at 03:19 PM

    I don't have a probelm connecting in the standard way with JCO, that works fine. I'm actually reimplementing an existing piece of software that used the Login Dialog provided with SAP GUI to allow the user to login. I was hoping that I could invoke that dialog with JCO to maintain the same look and feel for the user, rather than implement my own dialog with swing.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2004 at 03:28 PM

    Hi John,

    I don't know if this can help you but I used setSapgui(2) to launch the sapgui in invisible mode. That's mean that the sapgui is launched but it isnot displayed.

    regards

    Mert

    Add comment
    10|10000 characters needed characters exceeded