File open dialog

Hi all,
I m using  cl_gui_frontend_services->FILE_OPEN_DIALOG to display a PDF file which is prsent in the presentation server ..but what value should i pass to FILE_TABLE and RC...
fragment of code::
.........................CONVERT TO OTF TO PDF.......................
  CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
      bin_filesize           = v_bin_filesize
    TABLES
      otf                    = st_job_output_info-otfdata
      doctab_archive         = it_docs
      lines                  = it_lines
    EXCEPTIONS
      err_conv_not_possible  = 1
      err_otf_mc_noendmarker = 2
      OTHERS                 = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  CREATE OBJECT V_GUIOBJ.
  CALL METHOD V_GUIOBJ->FILE_OPEN_DIALOG
    EXPORTING
      WINDOW_TITLE       = V_WINDOW_TITLE
      DEFAULT_EXTENSION  = 'pdf'
      DEFAULT_FILENAME   = V_DEFAULT_FILENAME
    CHANGING
      FILE_TABLE     =  it_lines
     RC             =  1
    EXCEPTIONS
      FILE_OPEN_DIALOG_FAILED = 1
      CNTL_ERROR              = 2
      ERROR_NO_GUI            = 3
      NOT_SUPPORTED_BY_GUI    = 4.
  IF SY-SUBRC <> 0.
  ENDIF.
pls help..

Hi
<b><u>See this sample code.</u></b>
<u>For File_open_dialog</u>
form get_filename  using value(p_flag) type rprxxxxx-kr_feld4
                   changing p_filename type rlgrap-filename.
  class cl_gui_frontend_services definition load.
  data: l_filefilter   type string,
        l_filename     type string,
        l_filetable    type filetable,
        l_rc           type i,
        l_user_action  type i,
        l_window_title type string.
* only when local
  check p_flag is initial.
* Set data type drop-down and popup title
  concatenate cl_gui_frontend_services=>filetype_text
              cl_gui_frontend_services=>filetype_all
          into l_filefilter.
  l_window_title = text-f02.
* Dialogue
  call method cl_gui_frontend_services=>file_open_dialog
    exporting
      window_title            = l_window_title
      default_extension       = con_ext
*     DEFAULT_FILENAME        =
      file_filter             = l_filefilter
      initial_directory       = con_init_dir
*     MULTISELECTION          =
    changing
      file_table              = l_filetable
      rc                      = l_rc
      user_action             = l_user_action
    exceptions
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      not_supported_by_gui    = 4
      others                  = 5
  if sy-subrc <> 0.
    message e899(5a) with 'Error'.
  endif.
* dialogue not canceled
  check l_user_action <> cl_gui_frontend_services=>action_cancel.
  read table l_filetable into l_filename index 1.
  check sy-subrc = 0.
  p_filename = l_filename.
endform.                    " get_filename
<u>For executing a File on your PC</u>
<b>Here you need to call your .pdf file on your PC</b>
Report  ztest_file_execute             .
call function 'WS_EXECUTE'
     exporting
*         DOCUMENT           = ' '
*         CD                 = ' '
*         COMMANDLINE        = ' '
*         INFORM             = ' '
          program            = 'C:winntexplorer.exe'
*         STAT               = ' '
*         WINID              = ' '
*         OSMAC_SCRIPT       = ' '
*         OSMAC_CREATOR      = ' '
*         WIN16_EXT          = ' '
*         EXEC_RC            = ' '
*    IMPORTING
*         RBUFF              =
     exceptions
          frontend_error     = 1
          no_batch           = 2
          prog_not_found     = 3
          illegal_option     = 4
          gui_refuse_execute = 5
          others             = 6.
if sy-subrc ne 0.
  message i010(bctrain).
endif.
Regards
- Atul

Similar Messages

  • Launching file open dialog box in Forms 6i

    hi,
    We have to launch file open dialog box using forms 6i within oracle apps
    and store the file into the database.
    Any ideas?
    Thanks,
    AZ

    Hi azodpe
    i have a solution(Source Code) plz give me ur email address
    i ll mail u later.
    Khurram

  • File Open Dialog Box

    Under my install of Vista Enterprise on an AD network, I'm am not getting the "computer" option to access local and network drives when I select "File/Open".  All I get is the redirected "home" directory for that user.  True for all Adobe applications (have the latest Creative Suite 4).  Other Windows apps using Windows file/open dialog box can get to the network.  Tech support said I should have an option to select the OS dialog box, but I do not see that on my install.

    In Edit > Preferences > File Handling, uncheck "Enable Version Cue".  This is where you will find it in CS4; earlier versions may have slight variations.  In some versions, you may also get a checkbox in the file open dialog (down at the lower left, as I recall) that lets you select OS dialog or Adobe dialog.   Also, in Bridge (again CS4), go to Edit > Preferences > Startup Scripts, and uncheck Adobe Version Cue CS4.  (I have this unchecked, and even with Enable Version Cue checked in PS I don't get the Adobe dialog or the option to set it, so the setting in bridge seems to be the master.)

  • File Open Dialog Box Hiding Behind - Urgent

    Hi All
    We have write code for Opening File in File Open Dialog Box. But its stays in inactive mode behind SBO. Once we press ALT +TAB only then we can see it. How to Activate it or make it visible automatically in SAP Business One.
    The Code for Opening File we have written is in C#
    <b>OpenFileDialog objOpenFileDialog = new OpenFileDialog();
    objOpenFileDialog.InitialDirectory = System.Windows.Forms.Application.StartupPath + "
                        objOpenFileDialog.Filter = "Excel files (.xls)|.xls";
                        if(objOpenFileDialog.ShowDialog()!= DialogResult.Cancel)
    string ExcelFilePath = objOpenFileDialog.FileName;
    }</b>
    Thanks in Advance
    Asutosh

    Common problem... Do the following instead.
    System.Windows.Forms.Form form = new System.Windows.Forms.Form();
    form.TopMost = true;
    OpenFileDialog objOpenFileDialog = new OpenFileDialog();
    objOpenFileDialog.InitialDirectory = System.Windows.Forms.Application.StartupPath + "\";
    objOpenFileDialog.Filter = "Excel files (*.xls)|*.xls";
    if(objOpenFileDialog.ShowDialog(form)!= DialogResult.Cancel)
    string ExcelFilePath = objOpenFileDialog.FileName;
    That should do it

  • File Open Dialog Box  on Button Click

    Hi
    I am devloping some webpages using JSF and RichFaces..
    I would like to appear File open Dialog box to choose single file and multiple files and another Folder chooser dialog box to choose the folder content..
    Both the operation should be performed while choosing the Button Choose File and Choose Folder...
    I have already tried Input type = file and aphace tomohawk..
    But i all the components are coming with text box and browse button..
    I dont need that. I need to open the dialog box once i clilck my choose file r folder button and it should work browser indepent.....

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • File open dialog box broken in all apps! ( 10.5.6/7

    Hi, I've got a very odd problem that Apple phone support seem to be unable to solve.
    Basically, every file open dialog box system wide is broken, from file->open in textedit to the browse button on websites for uploading files.
    When trying to display this finder panel, it beachballs for ten seconds then gives me a grey area where the usual finder browser usually resides and the open / cancel buttons at the bottom of the panel.
    I've repaired permissions which had no effect.
    The finder works perfectly other than it's little file open dialog which other applications use...
    Updating to 10.5.7 did nothing to fix the issue.
    Does anybody have any idea how to resolve this?
    Thanks!
    chris.

    V.K. had you create another user to eliminate the possibility that it is a preference file causing the problem. It was reported the problem remained with another user, so the problem is system wide, not with a single user's preferences.
    The Archive & Install is relatively painless. It only replaces the system and leaves everything else untouched. What is replaced is saved in a new folder it creates named Previous System, in case there is something there you might want to bring back (most often 3rd party files, but I have never needed anything from the Previous System folder).
    The only hassle with the A & I is resetting preferences. If you check the option during the A & I to retain user settings, there is usually not very much that needs resetting.

  • Single click in file open dialogs in KDE4.1

    Hi,
    In my KDE 4.1, there's something that doesn't seem right:
    If in system settings, mouse&keyboard, I set the option "Double-click to open files and folders", then it doesn't actually  listen to that setting.
    In a file open dialog, it opens a file already with a single click. This makes it very hard to select multiple files in the dialog (e.g. when opening files with kate), because if you press CTRL and click on the file, instead of just making a selection of it, it opens that 1 file and closes the file open dialog.
    Is this really the intention? How can I select multiple files that are not all below each other?
    Is it the intention that it doesn't listen to the double click setting? And is it the intention that the behaviour is inconsistent with any other desktop environment? I mean, they didn't just change something universally accepted, right?

    I mean if I just use the below script, it works.
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    but if I want to control 2 iframes in one clicking, it
    doesn't work(it basically load only the second statment, and skips
    the first). I'd like to know is it possible to combine below 2
    javascript into one?
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    getURL("javascript:loadintoIframe('topframe',
    'top_v_vista_b5.html')");
    thanks again.

  • Word and Excel file and folder icons missing in File Open dialog box

    Running office 365 on Windows 7 Pro: In Word and Excel, when opening and browsing for files in the file Open dialog box, all file and folder icons are missing.  This problem does not occur within Windows Explorer.

    Can you open Word/Excel files normally?
    Go to File>Advanced>Disable hardware graphics acceleration
    Start Office in safe mode to troubleshoot the issue:
    http://office.microsoft.com/en-001/support/why-cant-i-start-my-office-2013-application-HA104011864.aspx
    If the issue persists, do a repair for your Office suites in Control panel>Program and features>Office>Change>Repair
    Tylor Wang
    TechNet Community Support

  • How to invoke 'File Open' dialog box in Forms (under unix)

    Hi all,
    On the Unix platform (motif), how do I get the File Open Dialog
    Box by using Forms45.
    Thanks and regards,
    Srinivasa.
    null

    going from 6i to 10g is a migration. That's no easy step normally.
    client-server-functionality has gone. web-functionality is new.
    Install the new webutil-toolset from oracle and use the new file-open-dialog from the webutil.pll. That's the way you work in the new 10g-environment.
    Read in the forms-section of the OTN the migration-papers and the webutil-doc's

  • File open dialog - abap webdynpro

    Hi all,
    please, i'm newbie in abap webdynpro. How to create an input field with file open dialog?
    thanks
    Filip

    Hi,
    You can use FILE UPLOAD UI element from the UI Library for file upload functionality. It returns a XSTRING for the uploaded file. Create an attribute of type XSTRING in your view which contains the FILE UPLOAD UI element and bind the attribute to data property of FILE UPLOAD UI.
    You have to manipulate this XSTRING to get the values from the file.
    Thanks,
    Abhishek

  • Show File Open Dialog and get File

    Am creating a document where I want to prompt the user with the File Open dialog box and when a file is selected, I want to get that file and attach to the document. I know the scripting allows files to be attached but how do I display the dialog and then attach using the script.
    Will greatly appreciate the help.
    Am using Adobe LiveCycle Designer 7
    Thanks
    Nilesh!

    Hi Nilesh,
    You can use the getDataObject method of the Adobe document object. Below is a sample script that you can attach to the click event of a button to see how it works. For more information on importDataObject and getDataObject go to
    http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/javascript/AcroJS.pdf
    SAMPLE
    ======
    //Get a handle to the Adobe document object
    var doc = event.target;
    //Display a file dialog box and assign the name Attachment to the
    //DataObject that contains the selected file.
    doc.importDataObject("Attachment");
    //Get the DataObject and store it in MyData
    var MyData = doc.getDataObject("Attachment");
    //Clear and display the console window
    console.show();
    console.clear();
    //Output the properties of the DataObject
    for (var i in MyData) console.println("MyData." + i + "=" + MyData[i]);
    Trevor

  • Calling Windows File Open Dialog from Forms

    Has anyone used the File Open Dialog of MS-Windows from within
    forms? How do you invoke it and how do you pass arguements (in
    and out) to communicate with it?

    GET_FILE_NAME built-in
    Description
    Displays the standard open file dialog box where the user can
    select an existing file or specify a new file.
    Syntax
    FUNCTION GET_FILE_NAME
    (directory_name VARCHAR2,
    file_name VARCHAR2,
    file_filter VARCHAR2,
    message VARCHAR2,
    dialog_type NUMBER,
    select_file BOOLEAN;
    Built-in Type unrestricted function
    Returns VARCHAR2
    Enter Query Mode yes
    Parameters
    directory_name     
    Specifies the name of the directory containing the file you want
    to open. The default value is NULL. If directory_name is NULL,
    subsequent invocations of the dialog may open the last directory
    visited.
    file_name     
    Specifies the name of the file you want to open. The default
    value is NULL.
    file_filter     
    Specifies that only particular files be shown. The default
    value is NULL. File filters take on different forms, and
    currently are ignored on the motif and character mode
    platforms. On Windows, they take the form of Write Files
    (*.WRI)|*.WRI| defaulting to All Files (*.*)|*.*| if NULL.
    On the Macintosh the attribute currently accepts a string such
    as Text.
    message     
    Specifies the type of file that is being selected. The default
    value is NULL.
    dialog_type     
    Specifies the intended dialog to OPEN_FILE or SAVE_FILE. The
    default value is OPEN_FILE.
    select_file     
    Specifies whether the user is selecting files or directories.
    The default value is TRUE. If dialog_type is set to SAVE_FILE,
    select_file is internally set to TRUE.
    ** Built-in: GET_FILE_NAME
    ** Example: Can get an image of type TIFF.
    DECLARE
    filename VARCHAR2(256)
    BEGIN
    filename := GET_FILE_NAME(File_Filter=> 'TIFF Files (*.tif)
    |*.tif|');
    READ_IMAGE_FILE(filename, 'TIFF', 'block5.imagefld);
    END;

  • File open dialog cannot open directory

    Hi,
    I encountered a problem in version 1.2 on Windows machine.
    I have my SQL scripts stored in a directory called SQL, when I try to open this directory in the file open dialog it just doesn't open up. It seems to be connected to the name SQL.
    When I rename the directory it works just fine...
    Best regards
    Christian

    I could replicate this problem when opening the file through:
    right click in sql worksheet & select open from context menu.
    Bug # 6318825 has been filed for this.
    As, a workaround you could use File-Open from main menu or toolbar button. Those work well.
    -Raghu

  • 30EA3 - Windows: incorrect "mydocument" path in File- Open dialog window

    Hi,
    I have noticed this error in previous versions as well. On windows, users can change the default mydocument path. After the change, all windows file dialogues with the 'mydocuments' shortcut open the new, changed directory.
    In SQL Developer, the File->Open dialog window has a 'My Documents' shortcut which uses the constant path C:\Documents and Settings\username\My Documents. Instead of this shortcut, the program should lookup the real value of the Mydocuments path and should open the correct directory.
    Regards,
    Gellért
    Edited by: user641632 on 2011.01.20. 1:30

    Thats true. We use use the default.
    We could look at the registry and check HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders for the "My Documents" if it is set.
    Barry

  • Making pull down menus and file open dialogs speak

    Hi,
    I'm trying to create some applications that include speech
    assistance for the visually impaired. there are two things that are
    causing problems:
    1. I can't make the file open dialog boxes speak. I would
    like to emulate the behavior of third party screen reader
    applications that speak the identites of GUI elements as the user
    tabs through them. I am able to do this for custom dialogs made
    with the MUI Xtra by putting voiceSpeak commands in the callback
    handler so that as each widget gets focus during tabbing, it speaks
    its identity. But this doesn't appear to be possible with file open
    dialogs created with FileXtra.
    2. I have created pull down menus using installMenu. This
    works great, but I would like the user to be able to navigate these
    menus using the arrow keys, and have each menu item speak as it
    navigated to.
    If anyone has any ideas about how to accomplish these things
    in D11, I would be very grateful.
    thanks.

    It's a 1046: Type was not found or was not a compile-time constant: Void.function openSubMenu(whichSubMenu, currentPosition):Void {
    function closeSubMenu():Void { 1046: Type was not found or was not a compile-time constant: Void.
    this["menuButton"+i].onRollOver = function():Void { 1046: Type was not found or was not a compile-time constant: Void.

  • [SOLVED] Gtk3 file open dialog Gio error

    When opening a file open dialog in a Gtk3 app after the update to 3.8, programs fail with the following error:
    GLib-GIO-ERROR **: attempting to create schema 'org.gtk.Settings.FileChooser' without a path
    I tried running gsettings-data-convert and glib-compile-schemas manually with no avail. The file /usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml contains
    <schema id='org.gtk.Settings.FileChooser' path='/org/gtk/settings/file-chooser/'>
    so there is a path specified in the schema. Judging by the source of Gio, Passing NULL for the path to the GSettings constructor (which presumable happens here) should be legal in this case.
    Anyone else having this problem?
    Thanks.
    Last edited by kris7t (2013-04-25 16:58:19)

    Ah, finally found the reason for this. I had an old-ish Gtk+ (git HEAD of branch gtk-3-6 from a few weeks before) installed from source in /usr/local. Somehow its schemas took precendence over 3.8, resulting in the error.

Maybe you are looking for