How to close the web browser already opened by a SAP report?

Hi all,
pretty strange question: a report written on an old 46C system "triggers" a web app opening a web link with the predefined browser.
I've seen many alternatives to open a web page (call method cl_gui_frontend_services=>execute, call method open_browser), but no methods to eventually close the browser and I wonder if it's possible.
The meaning of this request: the report will probably scheduled, so we'd like to trigger the web app and then close the browser... we are using this unusual method since managing web service calls in our obsolete system seems problematic (we opened a thread in SOA section specifically on the topic... seems it's not possible to do in a "clean" way).

After trying a bit, I noticed it's not possible since there's no control on the lauched application. Solved using a workaround, thanks

Similar Messages

  • How to close the web browser

    How can I be sure the web browser and all screens are completely closed on the droid 2

    Why is closing the browser important? Are you concerned about battery life?
    To close any app that is running you can go to Settings > Applications > Manage Applications > Running and force stop on the browser.
    It is certainly harder than on PC or MAC platforms, and even on some other smartphones.  At the same time, in many smartphones including Windows Mobile, iPhone, BB and others, the general model is different than computers - the general approach is that well behaved applications in essence are meant to be demanding no CPU when they are not in focus, unless there's some explicit background function like periodically obtaining e-mail and such.
    Certainly this may not always be the case, especially if an app is not coded correctly - but generally the guidelines for developers of smartphone code across multiple platforms discourages having an exit button and instead focuses on how to make sure an app is well behaved and low in demand during expected prolonged periods of dormancy.

  • End-user closes the Web browser's window...

    Hi ,
    I have an Exit_Form selection on a menu.....
    Is it possible the code being there to be executed whenever the end-user closes the web-browser's window.....???
    I use Dev10g.
    Thanks , a lot
    Simon

    Unfortunately... is is not applicable....because:
    1) Many users(application users) connect via a db user to the database.... , so i cannot relate each application user to a db session.
    2) The trigger on_logoff can not be used because of the first note....
    3) As i have written in my previous post the "exit_form" is not 'pure PL/SQL' code but 'forms' code.... It contains some 'erase(global_variables)' which are unknown to the db......
    Thanks , anyway...
    Simon

  • Can applet close the Web browser window it embedded in?

    I know that a link or button in the Web browser can close the browser window. But I really don't if the applet can also do it.

    This site does have a search function you know, and if thats too much trouble there is google:
    http://www.google.com/search?q=site%3Asun.com+%22java+to+javascript%22&ie=UTF-8&hl=nl&lr=
    This should point you in the direction of a thing called JSObject
    Here is some code since I have this in my archive anyway:
    the html file:
         <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                  height="0" width="0" >
            <param name="code" value="someApplet.class" />
            <!--[if !IE]> Mozilla/Netscape and its brethren -->
            <object classid="java:someApplet.class"
                    height="0" width="0"
                    >
            </object>
            <!-- <![endif]-->
          </object>
    <LABEL id="lblOutputText">This text is the HTML text </LABEL>the applet:
    // new class for jsObject!!!! compile this: javac -classpath "C:\Program Files\Java\j2re1.4.2_01\lib\plugin.jar" someApplet.java
    // since jaws.jar does not exsist anymore
    // in 1.4.0 to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    import netscape.javascript.*;
    public class someApplet extends java.applet.Applet {
        JSObject win;
        public void init() {
             try{
                 win = JSObject.getWindow(this);
    // you need win.eval("window.close();"); // to close the window. if the current window is not a popup
    // opened by a parent with window.open than the user will get a waring, your next question probably will
    // be "can I stop this warning" and the answer is simple: NO
                 JSObject textBoxLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                 textBoxLabel.setMember("innerHTML", "<center><h1>Some text</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
    }

  • How I make the Web Browser Control to display a PDF in Windows 8

    I have an application that run ok in previous version of windows,  Where I can load a PDF file and the web browser control automatically use the Reader OCX of Adobe,, After Install windows 8 and download the reader for windows 8 still get and (X) where the document should be displayed.  I use the following command in my program to force the windows 8 to use the same web browser (10) in my web browser control.
    WebBrowser1.Navigate(DocumentName,"",Nothing,"User-Agent:Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)")
    But still get an  (X). IF I use the URL that is in the property of the (X) and paste in my regular IE10, it open the PDF file.

    Adobe Reader Touch is a Windows Store app and does not install a browser add-on/plug-in for "in-browser" PDF viewing.
    You can either
    Install Adobe Reader XI (desktop app) which installs browser plug-ins for Microsoft IE and Mozilla Firefox
    Use Google Chrome, which has a built-in PDF viewer (enabled by default)

  • How to setup the web inspector to open in the same window not in a new window?

    Hello!
    I update my mac os to Lion now when i use the web inspetor it's open in a new window ,... I want to open web inspetor in the same window at the bottom...
    Somebody help me please!!!
    How i do this?
    Thank you

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How to force the Netscape Browser to open the "Open or Save" dialog box?

    Hi, I tried to force the browser to open the "Open or Save" dailog box for downloading a file.
    response.setContentType(context.getMimeType(file.getName()));
    response.setHeader("Content-Disposition", "attachment; filename=\"" + file.getName() + "\"");
    This works fine with IE for all file types( Even though he prompts twice to Open the file directly). but Netscape opens the file directly in the browser with showing any dialog box for text and html files. Anyone knows how to force the netscape in this case or for any file type? Any help will be appreciated.
    Thanks

    any one has the solution for this issue ? I tried the search and I didnt find any answer.
    when your trying to open a pdf file as attachment is seperate window, it works well in IE but in netscape it opens up in the same browser, it doesnt open a seperate window
    res.setContentType( "application/pdf" );
    res.setHeader("Content-Disposition","attachment; filename=\"" + cofcFileName+"\"");

  • FireFox doesn't fully close so whenever I reopen it refuses to open secure sites I had up when I closed it; it keeps thinking that the tab is already open and wont open another one. How do you fix this?

    Whenever I close Firefox and then reopen it later on it opens the last webpage I had open before closing the browser instead of my homepage. It seems that exiting Firefox doesn't fully shut it down and just puts it into hibernation mode. This has become a problem because when I have a secure webpage open when I close the web browser, without logging out of the page, and then try to go to that page again it thinks that it's already open and wont open another page for me. This means that I can't even navigate to the page to log out. I think it might be just a setting with Firefox 4 but not sure which one, any suggestions?

    For possible causes and solutions see [[Firefox is already running but is not responding]].

  • How to close the COM Port ??????????

    Dear all :
    I have written an application that send AT commands to a modem , Once I opened a com port , i don't know how to close it . I got the null pointer exception when i create a new channel , because the inputStream and outputStream is owned by the previous channel . So , some one can teach me how to close the com port that opened before ?
    my source code for open port :
    public void Connect_Com(CommPortIdentifier portId) {
    Integer i = new Integer((int) (Math.random()* 1000));
    String channel = "channel" + i.toString();
    System.out.println(channel);
    try {
    System.out.println("preparing to open port");
    serialPort = (SerialPort) portId.open(channel, 2000);
    } catch (PortInUseException e) {}
    try {
    inputStream = serialPort.getInputStream();
    System.out.println("getting inputStream");
              } catch (IOException e) {}
    try {
    serialPort.addEventListener(this);
              } catch (TooManyListenersException e) {}
    serialPort.notifyOnDataAvailable(true);
    try {
    serialPort.setSerialPortParams(9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e) {}

    serialPort.close() ?
    From the documentation of SerialPort:
    - SerialPort extends CommPort.
    - CommPort.close() closes the communications port.

  • Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

    Yoh, what is FSCCommanr ? sorry man I am an absolute beginner in Flash. I tried the code:
    /* Click to Go to Web Page
    Clicking on the specified symbol instance loads the URL in a new browser window.
    Instructions:
    1. Replace http://www.adobe.com with the desired URL address.
       Keep the quotation marks ("").
    instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
    function fl_ClickToGoToWebPage(event:MouseEvent):void {
      navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
    this is the same code I used before and it opens a pdf file in a web browser, and it doesn't open an AutoCAD file.

  • Safari 7.1 opens direct image links centered in the web browser. I need it to open them left aligned like before the 7.1 update. How do I do make it do that?

    This is a major issue. I need the browser to open images left aligned like it did before this update. This is a major break to force this on people. There should be a option to click. "Check this box to open images centered in the web browser" and "Check this box to open images left aligned'.
    Not that hard to do. Now I am forced to resorting to asking how I can force my browser to go back to how it worked before the update.

    Anyone have any idea how to force Safari to work like I want it to?

  • How to open non-HTML fiiles in the web browser???

    Hi.. My project requires that I should be able to open all the non-HTML or HTML files in the web browser itself. Ex. If there is some pdf file or doc file or any other file it should open in the browser itself. If the appropriate plug-ins are not there then it should first ask to download those plug-ins and then after downloading it the file should open in the browser.
    I would be grateful if anyone can help me out. If there is some link or something like that then please let me know.
    Thanks in advance.

    hi,
    you can open non-HTML files in the browser... when the file is sent from the server side you have to set the content type to match the content type of the file you are sending..
    for example, if you are sending a pdf file.. you have to set the content type as : application/pdf
    Another example: If you are sending a word doc use: application/msword
    -- Abdel Raoof Olakara
    http://olakara.googlepages.com

  • How can i add an administrator access so the admin can edit his webpage on the web browser?

    How can i add an administrator access so the admin can edit his webpage on the web browser?

    A content management system or CMS is software usually on the server that allows client's to log-in and edit content from any web browser with an internet connection.  These web pages are typically built with server-side programming (PHP) and databases (MySql). 
    CMSs come big and small.  The right one for your project depends on
         a) your programming skills,
         b) project requirements,
         c) budget.
    COMMERCIAL CMSs:
    Cushy CMS (watch the video to see how it works)
    No PHP or databases required.  Editing is performed on their web site.
    http://www.cushycms.com
    Perch ($59 license per site)
    PHP & MySql required
    http://grabaperch.com/
    WebAssist Power CMS Builder - Extension for DW
    PHP & MySql required
    http://www.webassist.com/dreamweaver-extensions/powercms-builder/
    Adobe Business Catalyst (full subscription includes CMS & web hosting)
    http://www.businesscatalyst.com/
    OPEN SOURCE CMSs:
    Get Simple CMS
    PHP & XML required.
    http://get-simple.info/
    e107 CMS
    PHP & MySql required
    http://e107.org/
    WordPress
    PHP & MySql required
    http://wordpress.org
    Joomla!
    PHP & MySql required
    http://joomla.com
    Drupal
    PHP & MySql required
    http://drupal.com
    Concrete 5
    PHP & MySql required
    http://www.concrete5.org/
    Nancy O.

  • How to close the browser from an Applet?

    Hi,
    I've written one applet, with 2 buttons (Continue & Exit). On click of Continue button, it will open another web page. On click of Exit button, the browser should be closed.
    I'm not able to close the browser from the applet.
    Can any body help me.
    Rgds
    Santosh

    In my experience, calling Javascript from applets is flaky at best. However, I have gotten it to work in some cases. The following code should get you started:
    netscape.javascript.JSObject win = netscape.javascript.JSObject.getWindow(applet);
    Now you can call different methods on the win object (look into Javascript documentation for details).
    It also depends on if you are using the Java Plug-in or the JVM built into the web browser. You probably need set MAYSCRIPT=TRUE in your HTML. Look into the Java Plug-in documentation for details...

  • How do I get the Adobe toolbar to display above a pdf in the web browser?

    Hi guys,
    I'm just having trouble with locating the grey toolbar, it's not displaying when I open a .pdf in a web browser.
    I can open the .pdf fine, (within Safari), and usually (on my old computer) there was a grey toolbar above the .pdf & there's a print icon on it - that's what I'm looking for, so that I can print my lecture notes straight away.
    The toolbar won't display on the web browser above the .pdf, but if I save the .pdf & open it with Adobe Reader, then the toolbar displays there with all of the icons etc.
    So I was wanting to know if instead of saving them every time, if there's an option to get the toolbar displaying above .pdfs in Safari?
    Has anyone else encountered this problem?
    Any help would be greatly appreciated.

    Unfortunately, iOS does not provide a way to install "plugins" to Safari so there is no possible way the Reader can do this. You can use the "open in" functionality to launch Reader from Safari.

Maybe you are looking for