Calling multiple URL in call browser

hi
i am having internal table having a multiple Url . each row consists of different URl.
i am calling the call browser functional  module in Inside the Loop .
what i am geting is , when the first record ( URL)  gets generated . it will call the Browser . sms sent and its not calling the second record even though its in loop.
what has to do. any parallel processing / asynchronous processing posible

I was browsing forums and your problem seem to be stuck in my brain. It keeps coming back again and again :-).
Anyways, I find out that instead of using CALL_BROWSER, if you can use the execute method of cl_gui_frontend_services, it will work. Just pass internet explorer exe file path in 'APPLICATION' parameter and you url in 'PARAMETER' parameter.
However there is one problem and that is how to get the filepath for internet explorer exe file. On most PCs it will be like C:\Program files\Internet Explorer\iexplore.exe' , so you can hare code this. OR you can read it from registry as per the following
DATA: kstr TYPE string, vstr TYPE string,
      convstr TYPE string.
kstr = 'SOFTWARE\Classes\Applications\iexplore.exe\shell\open\command'.
CALL METHOD cl_gui_frontend_services=>registry_get_value
  EXPORTING
    root                 = cl_gui_frontend_services=>hkey_local_machine
    key                  = kstr
  IMPORTING
    reg_value            = vstr
  EXCEPTIONS
    get_regvalue_failed  = 1
    cntl_error           = 2
    error_no_gui         = 3
    not_supported_by_gui = 4
    OTHERS               = 5 .
IF sy-subrc <> 0.
  WRITE:/ 'registry read error subrc=', sy-subrc.
  EXIT.
ELSE.
  TRANSLATE vstr USING '% 1 '.
  CONDENSE vstr.
ENDIF.
Once you have explorer file path in VSTR, can can call the execute method as following.
Assumption: ITAB-STR is of type string and contains url like 'http://www'google.com' etc.
LOOP AT itab.
  CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
       application            = vstr
       parameter              = itab-str
    EXCEPTIONS
      cntl_error             = 1
      error_no_gui           = 2
      bad_parameter          = 3
      file_not_found         = 4
      path_not_found         = 5
      file_extension_unknown = 6
      error_execute_failed   = 7
      synchronous_failed     = 8
      not_supported_by_gui   = 9
      OTHERS                 = 10 .
  IF sy-subrc <> 0.
    WRITE:/ 'Error in EXECUTE, subrc =', sy-subrc.
  ENDIF.
ENDLOOP.

Similar Messages

  • How do I call browser Save As dialog box before downloading pdf files?

    How do I call browser Save As dialog box before downloading pdf files?
    Here's my favorite scenario:
    1. User clicks button
    2. Save As dialog displays
    3. User chooses location
    4. A set of PDF files download to that location OR a single zip file downloads
    Background:
    I want to ensure the user sees that files are being downloaded. I'm delivering content to users who may not be Web savvy.
    Concern:
    1. User has no clue how to find downloaded files or that files have even downloaded.
    2. I'd like to deliver the set as zip files. Not sure if self-opening zip files still exist.
    FYI:
    I'm using jQuery UI buttons. Not sure if that factors into response.

    Just for clarity, I'm not forcing a download. The user will click a button.
    Click a button or click a link, either way you're technically executing a script to force a download.
    I'm assuming that's the php file resident on the server.
    Yes but that's only part of it.  Once the contact form executes, another script is called up which opens the browser's download dialogue.
    Is there a php script for simply calling the Open/Save dialog box?
    Yes. 
    <?php
    /* This short script forces a file download.
       For simplicity, it's intended to be used for a single file.
       You can use multiple copies of this file (with unique names)
       with different variable values to use it with multiple files.
       Use of this script has a side-effect of hiding the location of the
       file on your server.
    // full server path to file to be downloaded (including filename)
    $Path2File = "path/to-file-on-server.zip";
    // the filename
    $theFileName = "name-of-file.zip";
    //the work gets done here
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header ("Content-Type: application/octet-stream");
    header ("Content-Length: " . filesize($Path2File));
    header ("Content-Disposition: attachment; filename=$theFileName");
    readfile($Path2File);
    ?>
    Name this file zip2download.php.
    Add a link to your HTML page:
    <a href="zip2download.php">Download Zip</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Is it possible to hide url in web browser when a web report is generated ?

    HI EVERYONE,
    I have to generate web report from my form , when it is generated i need to hide the url in web browser. otherwise the report can be accessed by copying the url.
    Thanks,
    RINCY
    Edited by: Rincy on Aug 28, 2008 10:19 AM

    How do you call your report? If you use run_report_object you won't see an URL. However, with a jobid you can still get the report output. Keep the cache small, or add parameter [ EXPIRATION|http://www.oracle.com/webapps/online-help/reports/10.1.2/state?navSetId=_&navId=3&vtTopicFile=htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_expiration.htm&vtTopicId=] to avoid problems.
    Also check out [this whitepaper|http://www.oracle.com/technology/products/forms/pdf/10g/frmwebshowdoc_rep.pdf]
    Or Metalink note 437246.1 Which Possibilities are Available to Prevent Users from Accessing showjobs Page and getjobid in URL?

  • How to create Multiple URL of a webservice ?

    Hi,
    I want to create multiple URL of single web service and runtime I want to know which URL is used to call web service.
    How to do that ?
    Regards,
    Ajay

    How to do what exactly? What do you mean by multiple URLs? And what exactly is "during runtime", in what bit of code do you want to check this and why?
    I can make a guess (I shouldn't have to do that, you should be providing details): this is intended to deploy a webservice to different environments (test, acceptance, prod) and you need to tell your application which deployed instance of the webservice it should be calling, which you do by providing a specific URL. Am I right?

  • Opening multiple URLs using window.open in Safari 3

    Anyone know how to write javascript to open multiple URLs at once using Safari 3? Code like this worked fine in Safari 2, but when I upgraded to 10.4.11, Safari 3 now only opens the first URL when the javascript is run.
    window.open(url1);
    window.open(url2);
    window.open(url3);
    Thanks!
    BTW, I'm also using Saft (and had been using it before when this worked).

    If the Saft preference of "Always open browser window in tab" is unchecked, then Safari 3 will open each of the URLs in new Windows.
    I've written to the author of Saft about the issue and will follow-up here with more details when available.

  • Open URL in a browser with POST request from FlashPlayer?

    I have a SWF file that plays locally in Standalone Flash Player 11.2 under Win 8.1.
    I'm using the standard navigateToUrl() function to open a URL in a browser, so it's not published for AIR, I make sure that request data is not empty - it contains my URLvars, the function is user initiated on click, and the request method is POST.
    Still the browser sends a GET request.
    Am I missing something? Is it possible to fix, so it sends POST?
    Thanks!

    Can not post my code properly because it then requires moderation, so plain text:
    var req:URLRequest = new URLRequest(....);
    var vars:URLVariables = new URLVariables();
    vars.xxxx = hub.extras[3];
    vars.yyyy = hub.extras[4];
    req.data = vars;
    req.method = URLRequestMethod.POST;
    navigateToURL(req, "_blank");

  • How do I add multiple URL's to a Bookmarks folder?

    Safari question:  How do I add multiple URL's to a Bookmarks folder?

    Ok...
    Click the Bookmarks icon  left side of the Safari toolbar then select Boomarks in the sidebar.
    Locate the folder then try dragging url's to that folder that way.
    If that doesn't work, from your Safari menu bar click Bookmarks >  Add Bookmark then click the, "Add this page to" pop up menu then select the folder you want to save that url to.

  • Why do we use open URL in default browser function? What are the uses of it?

    Why do we use "open URL in default browser" function?  What are the uses of it?

    kdm7 wrote:
    Okay.
    So can we keep a web button to access the www.ni.com ? So that web site opens only when button pressed?
    P.S  I,m a newbie.
    Yes, you can also, e.g. include a help file or manual as html and open that in the browser.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Select one and click cmd-A which selects them all.
    Then click the import button if it hasn't started already.

  • Adobe Photoshop asked me to copy and paste a URL into my "browser" to confirm my e-mail address. What, and where, is my Browser? How do I do that?

    Upon register with Adobe Photoshop, they asked me to copy and paste a URL into my "browser" to confirm my e-mail address. What, and where, is my Browser? How do I do that?

    If this has arrived in an email from Adobe, it's probably legitimate.
    Usually though, you can click the link and it will confirm your registration automatically.
    Otherwise copy it and then paste it into the location bar.
    '''N.B.''' See this link for possible malware: http://www.adobe.com/support/reader/

  • Multiple certificate stored in Browser

    I run certificate request using https://.../oca/sso_oca_link and also /oca/user.
    eg. with these User DN:
    => cn=ferry,cn=users,dc=subdom,dc=mydomain,dc=com
    => cn=tova,cn=users,dc=subdom,dc=mydomain,dc=com
    => cn=ferry,cn=users,dc=subdom,dc=mydomain,dc=com
    By requesting certificate several times from the same PC using several user account, have result in multiple certificate stored in Browser.
    When visit my secure web using Internet Explorer 6, a window raised and lists these
    "users"
    "users"
    "users"
    By using Netscape Navigator 7.1: a window appear with a bit more information display
    "users's myOrganisation"
    "users's myOrganisation"
    "users's myOrganisation"
    and some explanation eg
    Issued to:
    Subject: CN=ferry, CN=users, DC=subdom, DC=domain, DC=com
    Serial Number: 1C
    Valid from 23/09/2005 14:53:42 to 23/09/2006 14:53:42
    Issued by:
    Subject: CN=MyCcertificate Authority,...
    How to display USER NAME (according to CN) in the list instead of "users" ?
    or this is the expected behaviour?
    TIA,
    ferry

    Ok. I've found the solution.
    For reference to all you guys:
    ByteArrayInputStream bais = new ByteArrayInputStream( (byte[])attr.get() );
    CertificateFactory cf = CertificateFactory.getInstance("X.509");
    cert = (X509Certificate)cf.generateCertificate(bais);

  • Button links open in multiple tabs in my browser but links open same tab on co-worker's pc?

    Mac OSX 10 .7.4 / Indesign CS 5.5
    Exported inDesign to interactive pdf, button links are able to open in multiple tabs in my browser which is what I want, but on my co-workers windows PC, the same links open within that same tab? 

    Which browser? Try configuring the browser as inthis

  • Bug report: on LabVIEW 2011 SP1 and Windows 8 'Open URL in default browser.vi'

    Dear colleagues,
    Here is a bug report.
    Culprit: 'Open URL in default browser.vi'.
    System: Windows 8, Professional. LabVIEW 2011 SP1.
    Abnormal behaviour and steps to reproduce:
    Above mentioned VI doesn't work when LabVIEW was started with administrator privilegies. And it works as expected when LabVIEW running in normal (non-administrator) mode. 
    Looking forward to see this fixed.
    Best regards,
    Igor Titov.
    CLD.
    =========================
    Igor Titov, CLA
    WebPager - put LabVIEW front panels into the web page
    Labicom.net

    Hi Igor,
    Unfortunately LabVIEW 2011 SP1 does not support Windows 8. I tested this behavior with LabVIEW 2012 SP1 on Windows 8 and everything worked correctly. 
    Regards,
    Jeff Peacock 
    Product Support Engineer | LabVIEW R&D | National Instruments 

  • Can i trap the URL of the browser??help!!!!

    Hi,
    I want to trap the URL of the browser in my java
    application.Is it possible to do that??
    In other words, can i manipulate the browser (like 'IE browser' available as an activex component for vb users.)
    in java for some urgent requirement? (Or) Is there any customary browser available that can be customized by the user??
    Any suggessions or comments??
    thanx
    aparna

    I want to trap the URL of the browser in my java
    application.Is it possible to do that??Often browsers send an http-header named "Referer" which contains the url from where the request was made.
    In other words, can i manipulate the browser (like
    'IE browser' available as an activex component for vb
    users.)
    in java for some urgent requirement? (Or) Is there any
    customary browser available that can be customized by
    the user??http://www.icesoft.com/

  • Opening url  in a browser

    i have a url .... i have also cookie for that url . i need to GET (method) that . how do i open that url in a browser ?
    i saw archieves . as the url is Cookie sensitive so i must use HttpUrlConnection class .
    so that i could use the class methods .
    but tell me how do i open the url in the browser ?

    this works if there is[b] NO COOKIE.
    import java.net.*;
    public class Hello
        public static void main(String[] args)
            String cmd = "cmd.exe /C start http://xxxx.com...";
            try
              Process p = Runtime.getRuntime().exec(cmd);
                p.waitFor();
            }catch(Exception e)
                        System.err.println("Error bringing up browser" );                                     
       

Maybe you are looking for

  • Problem with mySQL and Java

    I have a quite annoying problem.....! I use the getText() method to extract characters from a textfield pass them as a string and then using an INSERT store them in the database. When i am entering in the textfield something like the word - Java - ev

  • Trying to perfect pendulum measurement

    I'm fairly new to Labview, so please be gentle. I'm a work-study in the EET program here at Oklahoma State University, and nobody here really knows much about Labview.  I've been tasked with figuring the thing out for everyone else here, and I've mad

  • How to find the user

    i have a period of time when the CPU % is high. how do i find out the userid and the query which case it? thanks.

  • Insert Mail Attachement.

    Does iOS 6 allow the user to attach a document (or any other supported file type) when composing a mail, just like you would do on the desktop.What i am trying to do is compose a new mail and select a document stored in dropbox, ifiles or any file ma

  • Naming merged layers, Adjustment Issue

    I'm using PS CS5 for Mac. When I highlight and then merge 2 layers, the new layer takes the name of the top layer. Is there a way to have it take the name of the bottom of two layers?  For instance, if I put a Hue and Saturation Adjustment layer on a