<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Upload Excel File : Problem with Filter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902111#M1481495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Update View
  CALL METHOD cl_gui_cfw=&amp;gt;update_view
    EXCEPTIONS
      cntl_system_error = 1
      cntl_error        = 2
      OTHERS            = 3.

  lv_title = text-003.
* Get the file with open dialog box
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      window_title            = lv_title
      file_filter             = p_filetype
      initial_directory       = lv_desktop
    CHANGING
      file_table              = lt_filetable
      rc                      = lv_rc
      user_action             = lv_action
    EXCEPTIONS
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      OTHERS                  = 4.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 05:45:03 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2010-05-11T05:45:03Z</dc:date>
    <item>
      <title>Upload Excel File : Problem with Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902109#M1481493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using "TMP_GUI_FILE_OPEN_DIALOG" with these parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     window_title      = 'Please select an Excel File'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     default_extension = '*.xls'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     file_filter       = '*.xls'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     multiselection    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     init_directory    = 'C:\temp'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn't show any file the first time we call the Function, we have to close the window and then restart the Function Then it show all Fileformat, I just want to see .XLSX files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902109#M1481493</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2010-05-11T05:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel File : Problem with Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902110#M1481494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initialisierung&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE 'Alle-Dateien(&lt;STRONG&gt;.&lt;/STRONG&gt;)|&lt;STRONG&gt;.&lt;/STRONG&gt;|'&lt;/P&gt;&lt;P&gt;              'Word-Dateien(&lt;STRONG&gt;.doc)|&lt;/STRONG&gt;.doc|'&lt;/P&gt;&lt;P&gt;              'Bild-Dateien(&lt;STRONG&gt;.gif)|&lt;/STRONG&gt;.gif|'&lt;/P&gt;&lt;P&gt;              'Bild-Dateien(&lt;STRONG&gt;.jpg)|&lt;/STRONG&gt;.jpg|'&lt;/P&gt;&lt;P&gt;              'Mail-Dateien(&lt;STRONG&gt;.msg)|&lt;/STRONG&gt;.msg|'&lt;/P&gt;&lt;P&gt;              'PDF-Dateien(&lt;STRONG&gt;.pdf)|&lt;/STRONG&gt;.pdf|'&lt;/P&gt;&lt;P&gt;              'Bild-Dateien(&lt;STRONG&gt;.tif)|&lt;/STRONG&gt;.tif|'&lt;/P&gt;&lt;P&gt;              'Text-Dateien(&lt;STRONG&gt;.txt)|&lt;/STRONG&gt;.txt|'&lt;/P&gt;&lt;P&gt;              'Excel-Dateien(&lt;STRONG&gt;.xls)|&lt;/STRONG&gt;.xls'&lt;/P&gt;&lt;P&gt;         INTO filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Datei abfragen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      window_title      = 'Datei auswählen'&lt;/P&gt;&lt;P&gt;      file_filter       = filter&lt;/P&gt;&lt;P&gt;      initial_directory = 'C:'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_table        = i_file[]&lt;/P&gt;&lt;P&gt;      rc                = rcode&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS            = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902110#M1481494</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2010-05-11T05:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Excel File : Problem with Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902111#M1481495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Update View
  CALL METHOD cl_gui_cfw=&amp;gt;update_view
    EXCEPTIONS
      cntl_system_error = 1
      cntl_error        = 2
      OTHERS            = 3.

  lv_title = text-003.
* Get the file with open dialog box
  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
    EXPORTING
      window_title            = lv_title
      file_filter             = p_filetype
      initial_directory       = lv_desktop
    CHANGING
      file_table              = lt_filetable
      rc                      = lv_rc
      user_action             = lv_action
    EXCEPTIONS
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      OTHERS                  = 4.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-problem-with-filter/m-p/6902111#M1481495</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-05-11T05:45:03Z</dc:date>
    </item>
  </channel>
</rss>

