Cl_gui_frontend_services=   allow browsing to directory path

Hi guys,
i have created a program to automate the download of joblogs and spools using CALL TRANSACTION SM37 .
currently i am taking the location where files need to be stored from selection screen.
now  i want to use  <b>cl_gui_frontend_services=>?</b>
to allow browse function to directory path where i need to save the files(i.e spool and joblog).
it will be of great help if you could send me a piece of code using cl_gui_frontend_services=>? which can <i><i><u>allow browsing to directory path</u></i></i> where i can save the files.
Thanks
Ankit
LnT Infotech,Mumbai

I had the same problem like Adel when calling the browser via cl_gui_frontend_services=>execute().
On my old school XP machine the synchronous start is doing well, but not on my colleagues W7 64 machines.
I used a registrey key to get - in my case - the path to the Internet Explorer.
(htmlfile\shell\open\command)
On W7/64Bit this key contains the path to the 32 bit Binary:
C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
If I start this application it's not synchronous, if i hard-code the path 64 bit binary
(C:\Program File\Internet Explorer\IEXPLORE.EXE) the application runs synchronous.
A pragmatic programmer could replace the ' (x86)' in the path, which should work on most Windows platforms
Regards
Dominik

Similar Messages

  • FM for browsing the directory name in presentation server

    Hi All,
    Can somebody give me the FM for browsing the directory name (not the file name) in the presentation server so that the path comes automatically in the parameter.
    Thanks in advance.
    Regards,
    Arun Mohan

    Please see the following program.  This will give you what you need.
    report zrich_0001 .
    parameters: p_path type localfile.
    at selection-screen on value-request for p_path.
      data: path_str type string.
      call method cl_gui_frontend_services=>directory_browse
          exporting
             window_title    = 'Select Directory'
          changing
             selected_folder = path_str
          exceptions
             cntl_error = 1.
      call method cl_gui_cfw=>flush
           exceptions
              cntl_system_error = 1
              cntl_error        = 2.
      p_path =  path_str.
    Regards,
    Rich Heilman

  • Find Cache Directory Path

    Is it possible to find the webstart cache directory path using java webstart API.
    Thanks

    - Put the HTML in a jar archive
    - Reference the jar in the JNLP
    - Access it using getResource() and..
    - Display it in a JEditorPane
    (fine for simple and valid HTML)
    Alternately, if you intend to show the page in a
    browser, and want to have a sandboxed applet,
    you might..
    - ask the user where they want to save the HTML
    (via the FileSaveService)
    - save it there.
    - store the full path of the downloaded HTML using
    the PersistenceService*
    - load it, when required, using the FileOpenService.
    It might pay to explain to the end user that this
    file is used regularly and it makes sense to tick
    the 'always allow' box for 'ease of later use'.
    * Only necessary if you want to cache the HTML
    between runs, obviously.

  • Firefox won't open following update. Can't open Profile Mgr, even when using entire directory path in cmd line

    I'm running Firefox on a Windows 7 machine. Firefox won't open following the latest update. I've read the help articles and it seems like I need to create a new profile because my settings have likely been corrupted. I'm unable to open Profile Mgr, even when using entire directory path in cmd line. I've tried the following commands in the command line:
    firefox -p
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -p
    Nothing happens with either command.
    I'm also running Norton Internet Security. I read a help article Re Virtual Browsing features possibly causing a problem. The article said to check the virtualization setting in the internet security software and to clear the virtual cache. I went thru all of the settings menus in Norton Internet Security version 21.6.0.32 and I didn't see anything that looked like 'virtualization" settings, so I assumed that this doesn't apply to me.
    If you have any ideas, I'd sure appreaciate your expertise!!

    ''arcandl [[#question-1038482|said]]''
    <blockquote>
    I'm running Firefox on a Windows 7 machine. Firefox won't open following the latest update. I've read the help articles and it seems like I need to create a new profile because my settings have likely been corrupted. I'm unable to open Profile Mgr, even when using entire directory path in cmd line. I've tried the following commands in the command line:
    firefox -p
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -p
    Nothing happens with either command.
    I'm also running Norton Internet Security. I read a help article Re Virtual Browsing features possibly causing a problem. The article said to check the virtualization setting in the internet security software and to clear the virtual cache. I went thru all of the settings menus in Norton Internet Security version 21.6.0.32 and I didn't see anything that looked like 'virtualization" settings, so I assumed that this doesn't apply to me.
    If you have any ideas, I'd sure appreaciate your expertise!!
    </blockquote>
    ''philipp [[#answer-670108|said]]''
    <blockquote>
    hello arcandl, when firefox isn't launching after you double-click on the shortcut this is sometimes also a sign of malware being active on a system.
    you might want to try running a scan with some different other security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] which are specialised in removing adware and browser hijackers.
    [[Troubleshoot Firefox issues caused by malware]]
    </blockquote>
    Phillip - You're a genius!!! I ran malwarebytes and it resolved my problem. Thank you so much!!!

  • Get directory path. Just the directory path, without the file name.

    Hi,
    I need to export a file from a table in SAP to a directory in the PC. So i need to get a directory path.
    I've been reading the threads but all the answers refer to functions F4_FILENAME, WS_FILENAME_GET, KD_GET_FILENAME_ON_F4 or to the method CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG.
    But all of them require to select a file to close the window.
    What I need is to get the path to the directory, not to a file.
    For example:
    I just need to get:
    C:\TEMP
    and not:
    C:\TEMP\file.doc
    Please help.
    Thanks.

    Pablo, use cl_gui_frontend_services=>directory_browse.
    Refer this code:
    PARAMETERS:
      p_path         TYPE rlgrap-filename OBLIGATORY.
    DATA:
      gv_path_ini    TYPE string,
      gv_path_sel    TYPE string.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
      CALL METHOD cl_gui_frontend_services=>directory_browse
        EXPORTING
          initial_folder  = gv_path_ini
        CHANGING
          selected_folder = gv_path_sel
        EXCEPTIONS
          cntl_error      = 1
          error_no_gui    = 2
          OTHERS          = 3
      IF sy-subrc = 0.
        CALL METHOD cl_gui_cfw=>flush( ).
        IF NOT gv_path_sel IS INITIAL.
          gv_path_ini = p_path = gv_path_sel.
        ENDIF.
      ENDIF.
    As a side note, always avoid any WS_* function modules as they're not Unicode compliant.
    Regards

  • Set default directory/path for SaveAs Dialog using WPG_DOCLOAD

    Hi, im trying to set the default directory/path for the SaveAs Dialog called by wpg_docload.download_file.
    I'm not able to find where I can specify the default path.
    Is it something like "htp.p('Content-Disposition: attachment; path=:PX_OUTPUT_DIR" ?
    Thx for your help !
    Here's a part of my code
    owa_util.mime_header( NVL(mime,'application/octet'), FALSE );
    htp.p('Content-length: ' || length);
    htp.p('Content-Disposition: attachment; filename="'||substr(fileName,INSTR(fileName,'/')+1)|| '"');
    owa_util.http_header_close;
    wpg_docload.download_file( lobLoc );
    /*********************/

    I don't believe you're allowed to set the directory path in the Content-Disposition (or any other) header. More accurately, you can set path in the filename, but browsers don't pay any attention to that, they only look at only the terminal filename.
    <p>According to RFC 2183, browsers are supposed to ignore any path information sent with the filename. Even though it's dated 1997, I believe this RFC is still in effect.
    <p>This was done as a security precaution against malicious web apps that might try to download into a system directory or other dangerous place. Also, browsers (usually) allow users to specify their own default download directories. Further, even if you could specify the path, you'd have to do it for any and all filesystems (Linux, Mac HFS, Mac OSX, Windows, etc etc).

  • Renamed Root Server/Bad Scan Directory path

    Hi,
    I had to rename one of my NetWare 6.0sp5 servers. This server also holds
    the ZFD3.2 database - it is a Root server with workstations attached. The
    problem I have now is that the <ServerName>_ZenInvService object contains a
    pointer to the wrong location for the 'Scan Directory Path'. It contains
    \\old_servername\volume_name\zenworks\scandir and it cannot be changed even
    though there is a browse button that lets you browse to the correct (new)
    server name and path.
    The exact error message, upon trying to browse/select the correct
    servername and path, is:
    "Unable to change the server name for the scan directory path."
    Also (of course) when I attempt to start ZFD with ZFDSTART.ncf the Sybase
    database manager loads just fine but the java apps do not. They appear to
    load but the status screen stays blank instead of showing the connection to
    the database. There are no exit codes since nothing exits.
    Any ideas on how I can fix this? (Besides a complete re-install of ZFD.)
    Thanks
    Ron Neilly

    Ron,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to select a directory path to inputfield in web dynpro abap?

    Hi,
    Experts,
    I want to select a directory path into a inputfield as like in file_upload  browse button but it select only a file but i want the whole directory to select can i achieve this please suggest me on this.
    Thanks in advance,
    Shabeer Ahmed.

    Currently not possible in Web Dynpro directly. If you are on 7.01, you could use a FlashIsland to acomplish such a thing.  Here is a similiar tutorial.
    https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDA_MUploader
    Next year in 7.02, we add a file dialog option to the ACFUpDownload UI element. It can be used as described to only return a directory path using only native WD UI elements.

  • API to browse local directory/folders

    can I know what API should I use to browse local directory for files?
    we would like to allow our users to upload files (many of them) thru FTP to a directory.
    and we will create a concurrent programs to browse the directory, for each file, we will open it and processing it.

    If you want to let users browse their file system and upload files into database.Let us know which application you are using for UI.Its possble in Oracle Forms as well as in OAF.
    Let us know how user is interacting with system.
    Thanks
    AJ

  • WebCenter Form Recognition WebVerifier directory name {Directory Path} is Invalid

    Hi
    I'm facing the below issue while trying to open the Web Center Form Verifier using web Verifier.
    The WebVerifier directory name {Directory Path} is Invalid. please contact your system administrator.
    OS : Window Server 2008 R2
    Software: Oracle WebCenter Form recognition 11.1.1.8.0
    find the attached error screen shot  and help out with the solution.
    Thanks
    Sanjeev

    You are getting this message because the WFR web server is trying to access the project file in a directory that is not valid on that server. I assume that path is correct on the Designer machine but the web server is on a different machine?
    Assuming the project file is on a file server, you should share that folder then open the project in Designer via the UNC path to the share. Then, go to the Options menu and select the Users, Groups and Roles... option. On the Users tab of the Project Authentication dialog, ensure that the Allow Database Authentication option is checked, then click the Export to Database... button. That will create an entry in the database for that project pointing to the UNC path instead of the local path, so the web server should then be able to access it (provided you have assigned sufficient permissions on the share).
    Alternatively, you could copy the project folder structure to the web server on the same path as it is on the Designer machine. This should work but will cause issues for ongoing administration of the project, as you will need to keep the copy on the web server synchronized with that on the Designer machine. I wouldn't recommend doing this.

  • Both file and directory path selection

    Hi,
    Is it possible to select both file path and directory path from one parameter using F4?If yes how?
    Thanks.
    Edited by: Ginger on Oct 5, 2009 7:51 AM

    >
    Ginger wrote:
    > No...file can be anywhere....file path selection means will have file name(c:\abc.txt) and directory selection means only select 'C:\'
    > from which files can be selected.
    >
    > Now I want to enable both the options in one parameter path.Is it possible?
    AFAIK, it is not possible.
    But you can try a workaround though :-P
    Make two radio-buttons:
    1. Select File (rb_file)
    2. Select Directory (rb_dir)
    Then based on the radio-button call the respective method
    IF RB_FILE = 'X'.
    Call Method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    ELSEIF RB_DIR = 'X'.
    Call Method CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
    ENDIF.
    BR,
    Suhas

  • [svn:bz-trunk] 20582: Add support for destination-include directory-path=" mydir"/ .

    Revision: 20582
    Revision: 20582
    Author:   [email protected]
    Date:     2011-03-03 12:35:14 -0800 (Thu, 03 Mar 2011)
    Log Message:
    Add support for <destination-include directory-path="mydir"/>.
    This will process each file ending in ".xml" as an individual <destination-include file-path=""/> element, allowing a web application to define a directory of destination configuration snippets.
    Added a new API to ConfigurationFileResolver.java: getFiles(String dir).
    This returns a list of XML files contained in this directory relative to the current configuration file.
    Updated both the ServletResourceResolver and the LocalFileResolver with implementations.
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
        blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationFileResolver.java
        blazeds/trunk/modules/common/src/flex/messaging/config/LocalFileResolver.java
        blazeds/trunk/modules/core/src/flex/messaging/config/ServerConfigurationParser.java
        blazeds/trunk/modules/core/src/flex/messaging/config/ServletResourceResolver.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • FTP does not publish correctly to directory/path of \ (i.e. no folder name)

    I have never been able to get the iWeb FTP publish to work correctly, so I will try once again.
    I use www.easycgi.com for hosing, the the directory/path for www.mydomain.com is / (i.e. there is not a folder name). I can verify this via Cyberduck and have confirmed it with their tect support (i.e. no folder name, just \).
    If you use / for the directory/pathin in iWeb, iWeb test connection button works fine (meaning it finds that folder) and publish works fine, but the pages are published to a newly created FTP folder called www.mydomian.com on the FTP server, so to access the pages the URL in a browser is www.mydomain.com/www.mydomain.com/index...the 2nd www.mydomain.com being the folder.
    If you enter a directory/path of \, iweb seems to make the folder the site name (also entered in iWeb).
    As a work around, you can publish using iWeb, then in cyberduck cut and paste everything from FTP folder www.mydomain.com to FTP folder \ and it works fine...just a hassle.
    Any ideas?
    thanks
    bob

    The extra folder is given the name which you gave your site inside iWeb. Instead of using your url for your site name, call it Site or S or whatever.
    Complete iWeb sites always have the sitefolder name in the url that appears in the browser address bar. If you want to eliminate that, you can publish to your local drive and use another ftp app to upload just the contents of the sitename folder. Or you can try forwarding www.myname.com to www.myname.com/sitename. Or you can try naming your site the same as the default folder on your server (e.g. public_html, if that is what your server uses). Or try putting just http:// in the url field.
    If you eliminate the sitename folder, any RSS Subscribe buttons normally will not function. Some users have gotten RSS to work by putting just http:// in the url field.

  • Browse for Folder path.

    Hi,
    I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.
    I plan to have the initial browse point default to a network drive and parent directory, under which the user will navigate and select the appropriate child directory, probably at least 2 levels down.
    The user will be entering data via a form. I had envisaged using a display only field to show the path, (blank for new records), and then having a 'Browse' button to select the directory, before submitting the form.
    The question is how to achieve this. The File Browse item type is nearly there, but is obviously more concerned with uploading files. I just want to select and store a directory path.
    Any ideas on how I can achieve this please. I have been trying to get a button to run some java script to open up a dialogue and return a directory path, without success, and I am not sure this is the best approach.
    Thanks in advance
    Mark

    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config setting “Include local directory path when uploading files” enables the path to be exposed in IE8, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then you'd be strongly advised to rethink this requirement.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.If you explain what this requirement is then possibly some alternative approaches can be suggested that don't involve storing file paths.

  • Oracle Apex Regular Expression for Directory Path (e.g. C:/New/Test)

    Hi,
    I am searching for Apex validation for directory path. exaples string should allow following strings:
    (1) C:/Data/NewFile
    (2) C:\Data\NewFile
    Alphabet, Numbers, Colon (only at second location), Any slash (forward or backward).
    However it should filter out multiple slashes, special characters, etc.

    Maybe this article will help: http://docs.oracle.com/cd/E19509-01/820-4381/agxlo/index.html
    Thank you,
    Tony Miller
    Ruckersville, VA

Maybe you are looking for

  • Modeling a boolean value in an Oracle database

    I want to use a boolean type in my XML schema and need to know how best to map that to the database. I tried using a string, but I get an error in the update map for that. Any advice? Thanks, Jeff

  • How do I update blacklist

    I need to install a blacklist.  You know "Blacklist After Effects.txt" which tells After Effects to ignore my Premiere only plug-in.  I get bogus After Effects error as my Premiere plug-in is Premiere only.  What if there already is a blacklist file

  • Changing the table-color

    I built a Master/Detail application using Dreamweaver Developer Toolbox. I would like to change the gray color of the tables to other colors that are more suitable to my site. Is there anybody that can help me accomplish that ? Amanda Nguyen

  • Inspection lot release problem

    hi guys, i have facing acute problem during  inspection lot release,  <b>errors area as listed below</b> <b>inspection lot status  CRTD, CHCR,SPRQ</b> 1. characteristics result cannot be recorded for inspection lot 1000000... 2.no task list was assig

  • Changing from an i-pod classic to i-pod touch.

    I currently have an i-pod classic 160GB and i am thinking of buying an i-pod touch. Can i transfere contents from the classic to the touch and run both from the same laptop at the same time considering i'll have one account?