Open a SAPGUI transaction from a Java web application

Hi all,
   We are in the process of developing a Java based web application with SAP J2EE engine - but not SAP Enterprise Portal. One of the requirements we have is from one of the web screens there needs to be a button which launches SAPGUI and take the user to a particular transaction in SAPGUI. The  user is going to have SAPGUI installed on their desktop.
   We were planning to user SAP Shortcut technique for launching the SAPGUI but the issue with that is the user has to logon each time ( even thought it is possible to have the password stored - even then there will be other messages that the user has to pass through before reaching the final  transaction ). The users are going to have a number of items in the screen and they need to go through this for every item.
   I was wondering if there is anyway this can done so that the user does not have to go through all these steps ( BTW, the user is already authenticated on the web application and so functionally done not have to be authenticated again).
ANy suggestions will be highly appreciated.
Regards
Ravi

Hello Gregor,
SAPGui is inatalled on each user box, we can launch the SAPGui thick client from an iview (to run on a seperate window).
How can I pass (R/3 logon) parameters to the SAPGui command line?
Thank you
AAAttar
eg:
would a batch file with saplogon then sapgui work?
DOS command prompt [CMD]
>saplogon.exe -user=... -password=... -system=QAS123 -client=001 -tcode=session_mananger
>SAPGui.exe...

Similar Messages

  • Using a VB Class from a Java Web Application

    Hi,
    I need to instance a VB class, and then to invoke their methods, from a java web apllication. The code is:
    Set object = CreateObject("AS2.OBJECTS")
    If object.PutName(sCadenaError, sEntidad) Then
    Array1 = object.getData(sCadenaError, iEntorno, False)
    End if
    "AS2" is the VB dll library. "OBJECTS" is the class to instance. And "PutName" and "getData" are the methods that the web application has to call.
    Can I instance the class from Java, and use the methods with the same data types? What steps have I to do in JNI?
    Thanks in advance,
    Mary

    You are right, I guess my question is a good candidate for RTFM!
    I should have searched also on help.ondemand.com
    I just looked into SDN and ui5 sdk help.
    Thanks for your help
    Regards
    Vincenzo

  • How to logoff from HCP Java Web application

    Hi all,
    I need to enable logoff from my UI5 application, based on Java EE / HCP.
    Authentication is enforced with SAML and SAP ID Service.
    I guess that, upon clicking a button, a request should be sent to the SAML IdP service in order to perform logout.
    However, I'm not sure how that is performed.
    Any help or link to documentation would be greatly valued.
    Thanks a lot
    Regards
    Vincenzo

    You are right, I guess my question is a good candidate for RTFM!
    I should have searched also on help.ondemand.com
    I just looked into SDN and ui5 sdk help.
    Thanks for your help
    Regards
    Vincenzo

  • How to call Xcelsius in Java Web application without OpenDoc

    Hi,
    We require to call Xcelsius Dashboard from a Java Web application. We cann't use OpenDoc function as result of some client preferences/restrictions
    Please let me know, what would be the other method to call the Xcelsius Dashboard from a Web application.
    Regards,
    Sachin

    Xcelsius docs are in swf format.  You could probably just host them without security and view with flash.

  • Open a word document from a Java Application

    Hi,
    Can I open a word document from a java GUI apllication and point to a bokkmark automatically in the word document when opened.

    See this thread:
    http://forum.java.sun.com/thread.jspa?threadID=228332&messageID=810684

  • Can't connect to Oracle XE instance from Java web application

    I'm a long-time Java developer but can't figure this out.
    I've been pouring over the forum for over a week and can't
    find the solution that will let me connect.
    Hardware: Intel/Vista.
    DB: Oracle Express 10G.
    Application: Java web application (Jakarta Struts)
    Application Server: Tomcat 5.5
    I copied the latest JDBC driver from OTN into my app server's "/LIB" directory.
    I get no driver errors. ("ojdbc14.JAR)"
    I can connect locally from my TOAD client, using SYSTEM/PASSWORD/XE.
    My listeners seem to be OK.
    Depending on which connection string I use from my Java application,
    I get one of two messages.
    "ORA-01017: invalid username/password; logon denied"
    OR
    "Io exception: The Network Adapter could not establish the connection"
    ------------ lsnrctl status ---------------------------------------------------
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XEXDB" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance "xe", status READY, has 1 handler(s) for this service...
    The command completed successfully
    ------------ SOURCE CODE ------------------------------------------------------
    OracleDataSource ods = new OracleDataSource();
    ods.setURL(" jdbc:oracle:thin:@localhost");
    conn = ods.getConnection("system", "password");
    //ods.setURL("jdbc:oracle:thin:@rsosborn-PC:1521:XE");
    //conn = ods.getConnection("system", "password");
    String query = "select * from books;";
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery(query);

    Using the code you supplied I was able to reproduce your errors. I've adjusted it accordingly and can connect to one of my 10.2 test databases.
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.*;
    class Conn {
      public static void main (String args []) throws SQLException
        Connection conn = null;       
        OracleDataSource ods = new OracleDataSource();
        // ods.setURL(" jdbc:oracle:thin:@localhost:1521:TEST");
        // conn = ods.getConnection("scott", "tiger");
        ods.setURL("jdbc:oracle:thin:@localhost:1521:TEST");
        conn = ods.getConnection("scott", "tiger");
        Statement stmt = conn.createStatement();
        ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
        while (rset.next())
            System.out.println (rset.getString(1));   // Print col 1
        stmt.close();
    }There are several different ways to configure OracleDataSources:
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/urls.htm#BEIDBFDF
    So, hopefully it's just a mismatch config.

  • Calling a soap web service from a java desktop application

    Hi,
    Does anyone know how to call a soap web service from a java desktop application? I've seen examples using Apache Axis, but it sounds like Axis needs to run on a web server and we are trying to avoid that. My initial thought was that, "of course we need a web server", but I'm wondering if there is a way to do this without a web server.
    Any help is greatly appreciated.
    thank you,
    Julie

    If you are the consumer you don't need any web server. The web server is only needed in the provider end.
    In java 6 there is a built in framework to call web services without the need of third parties (such as apache axis)
    take a look at:
    https://jax-ws.dev.java.net/guide/Developing_client_application_with_locally_packaged_WSDL.html
    http://java.sun.com/webservices/technologies/index.jsp
    For the provider end there is also a built in http server to expose web service via HTTP without the need to
    use any external web server.
    take a look at:
    http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html

  • Could not run the bookstore1 example from the Java Web Services Tutorial

    The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
    After deploying the application the Tomcat Web Application Manager shows the entry:
    /bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
    when entering the command: http://localhost:8080/manager/list.
    After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
    FAIL - Application at context path /bookstore1 could not
    It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Call SAPGUI transaction from BSP and vice versa

    Hi all
    There was some discussion about this topics before. Maybe someone can just point me to the thread answering this issue:
    1. I need to call a SAPGUI transaction from a BSP application: I want to use SAPGUI, not ITS/webgui, I need single sign on, the SAPGUI transaction could possible run in another SAP system then the BSP.
    As far as I understand I need to create a *.sap file with the correct parameters for sapshortcut. But how does single sign on work? Can I create a logon ticket in my BSP and forward it to sapshortcut?
    2. I need to call a BSP application from a SAPGUI transaction or report, with single sign on but in a MS IE window, not inside a SAPGUI HTML control
    Can I create a logon ticket in my coding an append it to the start url for the BSP?
    any hints?
    thanks
    Michael

    hi Michael,
    For your second issue,to call a BSP application from a SAP GUI in MS IE explorer,
    you can use the Function Module CALL_BROWSER in your report,like
    data url(200) type c.
    url = 'http://<server>.<domain><port>:'.
    concatenate url '/sap/bc/bsp/sap/' into url.
    concatenate url 'znw_poc2_1_prtl/dts.htm' into url.
    concatenate url '?sap-user=<userid>' into url.
    concatenate url '&sap-password=<passowrd>' into url.
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = url
    *    WINDOW_NAME                  = ' '
    *    NEW_WINDOW                   = ' '
    *    BROWSER_TYPE                 =
    *    CONTEXTSTRING                =
    *  EXCEPTIONS
    *    FRONTEND_NOT_SUPPORTED       = 1
    *    FRONTEND_ERROR               = 2
    *    PROG_NOT_FOUND               = 3
    *    NO_BATCH                     = 4
    *    UNSPECIFIED_ERROR            = 5
    *    OTHERS                       = 6
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    For this to work you have to enable SSO on your server.
    you can check if it is enabled or not by runnning the BSP application "SYSTEM" ,page "SSO2TEST.htm" .
    Follow the instructions on the page for testing.
    This may not be a great way as your userid password are passed via URL,still it works .
    Hope this helps,
    Regards,
    Siddhartha

  • Call rfc from Java Web application.

    Hi:
    I am new to SAP Java programming.
    I am developing a java web application on SAP NW SP16.
    I need to call a rfc and process the data to be displayed on a jsp page.
    I have few questions...
    1) Can I use the JCO destination created in thru wed dynpro content administrator, to connect to sap and execute the rfc/bapi?
    2) How would I create and access the model (rfc)?
    3) Are the required jar and dll(rfc32.dll ... ) files available on the server?
    Any help would be greatly appreciated.
    Thanks.

    Hi,
       See the follwoing links which contains sample code to ceate JCO and execute BAPI.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6a/14e13d8ee4535ee10000000a114084/frameset.htm
    Kind Regards,
    S.Saravanan.

  • Integrating a Java web application into the SAP NetWeaver Portal

    Hello experts,
    We have a requirement to integrate a Java based web application into the SAP NetWeaver Portal using iView/iFrame technology. The Java based web application is completely independent from the SAP environment but should be displayed as part of the SAP Portal environment. The other requirement is the main navigation menu for the Java based web application should be configured and provided in the SAP Portal.
    Any pointers on how exactly this can be done would be of great help.
    Also how can the SSO (Single-Sign-On) to the Java application be implemented so that the user can logon to the java application through the portal without providing the user credentials again.
    Thanks in advance.

    Hi,
    I think you can use URL iviews to integrate your java web application with EP. you have the option of doing SSO with the application as well.
    Have a look at the sap help material
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/eb51730e6a11d7b84900047582c9f7/frameset.htm
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CreateURLiviewintotheSAPEP+portal
    Regards,
    Ganesh N

  • How to open Adobe Reader file from another native IOS application?

    There is an existing thread, but I want to re-open it because I think this is an important feature that we need badly.  I was wondering if there is any plan to add this feature so we can open PDFs directly into Adobe from the web / other apps.
    How to open Adobe Reader file from another native IOS application?
    Basically, we just want to use a custom URL scheme to open a specific document in the App.  Currently, this only opens the app but does not load the file.
    APB

    Not to hijack the conversation but I can explain why this would be useful for both the above case and another.
    What I believe Pavel is talking about is setting up a "URL Scheme" for the Adobe Acrobat iOS application so that you can easily open a PDF specifically in Adobe Acrobat iOS from other native applications and even from web applications opened within Safari. This is particularly useful if your application requires some of the specific features in Adobe Reader iOS to grant them the best experience possible and you want to encourage this.
    Another case: If you're using Adobe Livecycle's document security modules (that encrypts PDF files so that Adobe Acrobat must "phone home" to decrypt and view the document), these PDF's can only be viewed inside the Adobe Acrobat application and appear as blank in most other PDF readers. Having a URL scheme allows your application utilising this functionality to have a 1 click step to view the PDF rather than the current non-user friendly process:
    - Within Safari, touch the PDF link (appears as blank in the default Safari PDF reader, which in itself is confusing)
      - Touch "Open in..."
      - Touch "Adobe Acrobat"
    We have an immediate need for this functionality for the example above. I can resubmit it in a separate post if necessary.

  • How can make java servlet sent soap message to other java web application

    hello,
    i want to make simple servlet send soap message to other java web application containing web service????
    for example
    web application " A " contain web service add two number
    java servlet " B " send soap message contain num1 and num2 to A to add them.
    how can do this????

    I tried that but my problem is that the code is so old. At least what I saw. I don't know how old is too old and I'm trying to do things "right." I saw code from 1998, but I don't know if that's still what you do. It might still work, but that doesn't mean it's correct. There's so much out there on Java that so old that half the time I'm not sure what to do because some other technology in J2EE or the latest Java SDK might have come up with a new way to do things. Thanks.

  • Call a JSF application from a Standar Web application (JSP)

    Hi all,
    We have 2 aplication, one is JSF and the other one is standar web jsp.
    We want to invoke from the standard web application to the JSF application and pass param from the jsp to the *.jsf page.
    how can I do that?
    Thanks.

    You can open a jsf page from any other application.
    <form action="http://hostip:port/app/MyPage.jsf?key1=value1&key1=value1">
    as we do in any other jsp page.
    Now in JSF application, in MyPage.jsf write a scriptlet to get the parameters and from there you can use these params.
    You can get a managed Bean reference in your jsp page. Here is the code for that.(ResultsInExcelBean is my managed bean.)
    FacesContext fc = FacesContext.getCurrentInstance();
         ResultsInExcelBean resultsInExcelBean = (ResultsInExcelBean)fc.getApplication().createValueBinding("#{ResultsInExcelBean}").getValue(fc);     
    Hope this helps you.
    Sravan

  • Calling OWF from customer build web application

    All, All the example that I've read from OWF documentation is assuming that you builder the workflow from OWF Builder and manage it thru OWF manager, monitor is thru OWF Monitor. I'm wondering if it is possible to monitor the workflow and manage the workflow from customer build web application. Since we don't want our users have to login several times and use different URLs to get into the customer build application, then manage the workflow and monitor it via different urls. Anybody has experience doing all from one application can provide any insight would be greatly appreciated.
    dsl

    Hi,
    Well, I did my JSP pages doing selects to OWF tables and OWF java APIs. I used owf pl/sql procedures as my reference. For example, I need to know how to create actions buttons. I looked at wfa_html procedure and looked for how it was doing that.
    Any doubts just ask,
    Regards,
    Luiz

Maybe you are looking for