How to start a Web GUI program from a Web Dynpro application

I know the program name , and it is a Web GUI program ,is anybody know how to start it from a Web Dynpro application

hi,
I use the following program to call a SAP GUI program :
DATA: l_componentcontroller TYPE REF TO ig_componentcontroller.
  DATA: l_api_componentcontroller type ref to if_wd_component.
  DATA: l_sapgui_manager type ref to cl_wdr_sapgui_integration.
  DATA: lt_parameters    TYPE wdr_name_value_list.
  l_componentcontroller = wd_this->get_componentcontroller_ctr( ).
  l_api_componentcontroller = l_componentcontroller->wd_get_api( ).
  l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).
  IF l_sapgui_manager IS NOT INITIAL.
    l_sapgui_manager->fire( EXPORTING name = 'PROGRAM_NAME 'parameters = lt_parameters ).
But the l_sapgui_manager is always initial , what can I do ?
ENDIF.

Similar Messages

  • How to start a independant Daemon program from another java daemon?

    Hello,
    I made two java daemon program Daemon_A and Daemon_B. By definition these two program work whithout any user interaction but most of it they should never fall down.
    So in order to be sure that the both daemon are up (and to prevent any failure) I create a mechanism to check each other and if one is down it will be restart by the other one.
    Up to now I succeed to restart the one who fall down. But ... there is always a but ...
    At start:
    - 1) Daemon_A and Daemon_B start.
    - 2) Daemon_B fall down.
    - 3) Daemon_A restart Daemon_B using this:
       String[] commandArray = new String[3];
       commandArray[0] = "../bin/java";
       commandArray[1] = "-jar";
       commandArray[2] = "Daemon_B.jar";
       Process oProcess = runtime.exec ( commandArray, (String[]) null);- 4) Daemon_A and Daemon_B are UP again.
    - 5) Daemon_A crash then Daemon_B is kill too.
    So once the Daemon_B is restarted it seems that there is still a link between Daemon_A and Daemon_B.
    As I use a command system to restart the daemon I don't understand why my Daemon_B is dependant from the Daemon_A.
    Is there another way of doing this?
    How can I restart my Daemon_B (from the Daemon_A) in a independant process?
    As i'm running out of idea any help will be apreciate,
    thanks
    Emmanuel

    Because you do not need javaw on Unix. You can achieve
    what you want in the normal Unix way. Confer: nohup,
    &, stderr and stdout redircetion.That's not correct, I can not achieve what I want on Unix.
    Well with the above piece of code if I use javaw for launching my command through a system command (runtime.exec) on windows it will start a 100% independant process which is find.
    But under unix if I keep using simply java the process will stay a child process. Which mean if the "father daemon_A" die daemon_B will die too.
    So that's why I woudering if there is a similar program as javaw on unix to avoid create chid process using 'runtime.exec'.
    You mentioned crontab: it does not make an item to act
    as a deamon, it rather periodically runs it. Yhea you right my mistake I don't use the crontab to launch the program. I use "etc/init.d" (for sun solaris) and service for windows. Otherwise the daemons are "real" daemon: one's they are started they keep listening and should never fall. But to get a hight level of security I want to be sure if one fall it will be restarted whithout beeing a child process of the other one.
    so any idea on unix of how can I re-start a daemon in a independant way?
    regards,
    emmanuel

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

  • How can I move photos in iPhoto from the WEB Photo Stream or WEB Facebook to one of my Events?

    How can I move photos in iPhoto from the WEB Photo Stream or WEB Facebook to one of my Events?

    From PhotoStream either drag the photos form PS to the iPhoto window or set the iPhoto peference to automatically import PS photos
    From Facebook save to isk and import from there
    LN

  • How can we disable the 'Improvement Program' from all the apps in TCS5?

    How can we disable the 'Improvement Program' from all the apps in TCS5, so that the end users are not able to see the option in the help menu?
    We have tried changing the value of bUsageMeasurement (HKLM\SOFTWARE\Policies\Adobe\(product name)\(version)\FeatureLockdown) to zero, but it did not help.

    You’re probably going to have to contact Support on that one.

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • How to Open an Oracle Apps Screen from a web page

    Hi,
    We have requirement for Opening an Oracle Application screen (say sales order form) directly from a web page.
    I could get the URL of the required screen, but the URL contains an ICX_TICKET number, which is generated dynamically by Oracle Apps. So I can't use a static URL for this.
    Do you know how I can use or generate an ICX_TICKET in runtime? My user will have an active Oracle Application screen opened along with web page. He want to navigate to Oracle Apps screen from Web page. Hopes this makes the requirement more clear.
    Thanks for your time,
    Aneesh

    Hi Helios,
    I have identified a function to generate ICX_ticket. By appending this ticket, I am able to open the Oracle Apps screen. Now, is there in implication on the security side, if I go ahead this way?
    Function
    fnd_gfm.one_time_use_store(icx_sec.GetSessionCookie(CZ_CF_API.ICX_SESSION_TICKET),300,'FORMS_APPLET')
    Anyways, I am raising an SR as u suggested.
    Thank you,
    Aneesh

  • How can I run an external program from a PLSQL procedure?

    Is there a package to run an external program from PLSQL? or is there another way to do that?
    thanks.

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

  • How to execute a BI query/view from a web dynpro application?

    Hi all,
    I am trying to connect to a BI system from a Web Dynpro application. I have to execute a view/query and process the output in my application. Please guide me about how to establish the connection to the BI system from my web dynpro application and then execute the query/view.
    I have tried executing/modelling the BI query/view using Visual Composer but I get an error saying 'QueryView Instantiation failed' when I try to drag the view/query on to the design board.
    Please guide me and help me achieve this.
    Thanks & Regards,
    Kishan

    Hi Kishan,
    Define system for BI in portal and define JCo destination, then from WDJ application use can query BI.
    Create the Technical System and connect with JCO Destinations
    or
    Connecting through the BI Connecters (ex: XMLA Connecter)
    Refer below link:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60f35908-ecd4-2910-6c89-e75e1054d9d1?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60f35908-ecd4-2910-6c89-e75e1054d9d1
    In this document you will get details related to connector and other admin activity.
    Hope this may help you.
    Deepak!!!

  • How to See logs for custom programs from without the logviewer in NWA

    Hello Experts,
    The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
    Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
    Thanks
    Jibin.

    Hello Jibin,
    Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
    Here is the guide:
    http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
    If they use the Logging Framework you would be able to access the logs through NWA.
    Regards,
    Ventsi Tsachev
    Technology Development Support (J2EE Engine)
    SAP Labs, Palo Alto, Ca (USA)

  • How to create a link to Excel, from Bex Web 3.x

    I need to create a link, from Bex Web 3.x, to Excel or PDF, how can i do this?
    I only do a link with another PAge in internet explorer.
    Thanks
    Romina

    Hi Romina,
    I am not sure if I correctly understood your question, but you can try to use the broadcasting functionalities which allows you to publish Excel and PDF documents on the portal, besides online links to real time data.
    You can check:
    http://help.sap.com/saphelp_nw04s/helpdata/en/3a/0e044017355c0ce10000000a1550b0/frameset.htm
    Hope it can help you.
    Kind Regards,
    Márcio

  • How do I call a C++ program from Java?

    I've tried using Runtime.exec to call my C++ program from Java but I don't think I'm doing it correctly. Could someone explain how to properly use it? Here's what I'm trying (this is in an applet that is only going to be running on an intranet so only PCs in my LAN will be affected):
    Runtime runtime=runtime.getRuntime();
    Process proc =runtime.exec("mkdir C:\\Test");

    What do you expect your operating system should do with a command "mkdir"? It doesn't understand this. "mkdir" is a shell command, so you need to execute the shell:
    runtime.exec("cmd /c mkdir C:\\test");

  • How to start more than one program automatica​lly? [RT]

    Normally you can build an application and let it start automatically on the PXI system. You have to put the file into c:\ni-rt\startup\
    But how to start more than one application in a pre-defined sequence? Depending on the situation there are several programs to be started that run simultaneously.
    I searched for help in the Development Library and the Forums but I didn't find an answer.
    Thank you very much for your helpin advance! Have a nice day!
    Christoph

    Hi Christoph,
    You can use VI Server on the real-time target to launch other VIs dynamically. Your startup executable could be a simple application that uses VI Server to start other VIs that run in parallel in a pre-defined sequence.
    Here's an example that does something similiar.
    Note that when you build the VI into an application, you must include all the VIs that are called by VI Server as dynamic VIs in the application builder.
    -Gerardo

  • Executing SAP GUI Script From a Web Page

    I have an issue when trying to execute some javascript (sap gui script) from a webpage. 
    When the javascript is executed I get the message:
    automation server unable to create object. 
    However, this exact same javascript when placed in a text file and double-clicked executes just fine through the windows scripting host. 
    Does anyone have an example of gui script code executing from a webpage?  Or any ideas on why it isn't working from the webpage?  Both scenarios should be executing the code on the local machine through WSH.
    Below is the javascript as well as the webpage executing the javascript:
    SAPGUI SCRIPT
    if (typeof(application) == "undefined")
       sapgui      = GetObject("SAPGUI");
       application = sapgui.GetScriptingEngine;
    if (typeof(connection) == "undefined")
       connection = application.children(0);
    if (typeof(session) == "undefined")
       session = connection.children(0);
    if (typeof(WScript) != "undefined")
       WScript.connectObject(session, "on");
       WScript.connectObject(application, "on");
    session.findById("wnd[0]").maximize();
    session.findById("wnd[0]/tbar[0]/okcd").text = "/nzsd1067";
    session.findById("wnd[0]").sendVKey(0);
    session.findById("wnd[0]/usr/ctxtVBAK-KUNNR").text = "6343";
    session.findById("wnd[0]").sendVKey(0);
    WEBPAGE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
         <head>
              <title></title>
              <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
              <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
              <! INPUT PARAMETER SETTINGS:
              To Push data to Siebel or SAP the appropriate
              field below must be set = TRUE.
              Pop_SAP
              Pop_Siebel
              SIEBEL INPUT PARAMETER: When
              Pushing data to a Siebel screen the Query_Type should be set based on the type
              of lookup that is requested.
              Query_Type = 'SAP' -presents a screen based on a customer SAP Id.
              Query_Type = 'SR' -presents a screen based on a Service Request.
              Query_Type = '' or null -presents a search screen to locate the proper contact in Siebel
              APP_SAP_ID -SAP customer Id
              APP_SR_NUM -Siebel Service Request Number
              >
    <SCRIPT LANGUAGE="VBScript">
    Sub LoadContact()
            'Siebel Application Object
            Dim siebApp 'As SIEBELHTMLLib.ISiebelHTMLApplication
            Dim siebSvcs 'As SIEBELHTMLLib.ISiebelService
            Dim siebOutputPropSet 'As SIEBELHTMLLib.ISiebelPropertySet
            Dim siebInputPropSet 'As SIEBELHTMLLib.ISiebelPropertySet
            Dim bool 'As Boolean
            Dim errCode 'As Integer
            Dim errText 'As String
            Dim QueryType 'As String
         Dim PopSAP 'As String
         PopSiebel = "TRUE"
         If PopSiebel = "TRUE" Then
              QueryType = "SAP"
              If QueryType = "null" Then
                   QueryType = ""
              End If
                 'Create The SiebelHTML Object      
                 set siebApp = CreateObject("SiebelHTML.SiebelHTMLApplication.1")  
                 If Not siebApp Is Nothing Then
                     'Create A New Property Set
                     set siebInputPropSet = siebApp.NewPropertySet
                     set siebOutputPropSet = siebApp.NewPropertySet
                     If Not siebInputPropSet Is Nothing Then
                         siebInputPropSet.SetProperty "ANI", "9738986011"
                         siebInputPropSet.SetProperty "SAP_ID", "0000516616"
                         siebInputPropSet.SetProperty "SR_NUM", "null"
                         siebInputPropSet.SetProperty "Interaction_ID", "168608840053"
                         siebInputPropSet.SetProperty "Query_Type", QueryType
                     Else
                         errCode = siebApp.GetLastErrCode
                         errText = siebApp.GetLastErrText
                             MsgBox "Could not Create Siebel Property Set: " & errCode & "::" & errText
                     End If
                     'Get A Siebel Service
                     set siebSvcs = siebApp.GetService ("TAWBS")
                     If Not siebSvcs Is Nothing Then
                         siebSvcs.InvokeMethod "TAWPresentAccount", siebInputPropSet, siebOutputPropSet
                  Else
                         errCode = siebApp.GetLastErrCode
                         errText = siebApp.GetLastErrText
                   MsgBox "Could not Get Siebel Service: " & errCode & "::" & errText
                         End If
                     set siebApp = Nothing
                 End If
                 set siebInputPropSet = Nothing
                 set siebOutputPropSet = Nothing
                 set siebSvcs = Nothing
         End If 
    End Sub
    </SCRIPT>
    <SCRIPT LANGUAGE="javascript">
    function loadSAP()
         if (typeof(application) == "undefined")
              sapgui      = GetObject("SAPGUI");
              application = sapgui.GetScriptingEngine;
         if (typeof(connection) == "undefined")
              connection = application.children(0);
         if (typeof(session) == "undefined")
              session = connection.children(0);
         if (typeof(WScript) != "undefined")
              WScript.connectObject(session, "on");
              WScript.connectObject(application, "on");
         session.findById("wnd[0]").maximize();
         session.findById("wnd[0]/tbar[0]/okcd").text = "/nzsd1067";
         session.findById("wnd[0]").sendVKey(0);
         session.findById("wnd[0]/usr/ctxtVBAK-KUNNR").text = "0000516616";
         session.findById("wnd[0]").sendVKey(0);
    } // end
    </SCRIPT>
    </head>
         <body onload="loadSAP()">
              <H3><FONT face="Arial" size="5">Raytheon Integration Screen</FONT></H3>
              <HR style="WIDTH: 882px; HEIGHT: 8px" color="#3366cc" SIZE="8">
              <form id="ValidForm" onsubmit="LoadContact(); return false;" language="jscript">
                   <FONT face="Arial">Load Siebel Screen</FONT> <! <input name="Text1" TYPE="TEXT"
                   SIZE="10" ID="Text1"> <input name="Submit" TYPE="submit" VALUE="Submit" ID="Submit1">
              </form>
              <form id="Form1" onsubmit="loadSAP(); return false;" language="javascript">
                   <FONT face="Arial">Load SAP Screen</FONT>    <! <input
                   name="Text2" TYPE="TEXT" SIZE="10" ID="Text2"> <input name="Submit" TYPE="submit" VALUE="Submit" ID="Submit2">
              </form>
         </body>
    </html>

    Hi Bernd,
    the following code works in VBS. If you run saplogon.exe you'll get a message box saying '/app'.
    Set Wrp = CreateObject ("SapROTWr.SapROTWrapper")
    Set SapGui = Wrp.GetROTEntry ("SAPGUI")
    Set application = sapgui.GetScriptingEngine
    MsgBox application.id
    I haven't tried it on a web page, but I don't see why it shouldn't work there. Ok, maybe the MsgBox is command is not available.
    Best regards,
    Christian

  • How do i uninstall a downloaded program from my computer?

    How do I  uninstall a downloaded program?

    If the program came with an uninstall program, as some do, use that. Otherwise, drag the program icon from the application library to the trash and empty the trash.

Maybe you are looking for