<?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: Multiple file name selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523070#M1560697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use WS_ Fms anymore......These are obsolete......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use method FILE_OPEN_DIALOG of class CL_GUI_FRONTEND_SERVICES......Use parameter MULTISELECTION and get all the file names in FILE_TABLE.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 13:10:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-22T13:10:55Z</dc:date>
    <item>
      <title>Multiple file name selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523066#M1560693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we were using FM "WS_FILENAME_GET" to get the name of file but now my requirement has changed now I can select more than one file at once wit the help of ctrl key . this FM is not able to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me in doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suchender Dagar on Dec 22, 2010 11:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 10:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523066#M1560693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple file name selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523067#M1560694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using CL_GUI_FRONTEND_SERVICES... this is really cool for frontend things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 10:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523067#M1560694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T10:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple file name selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523068#M1560695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to handle only one file at a time.&lt;/P&gt;&lt;P&gt;It may not be possible for you to take multiple files./&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 10:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523068#M1560695</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2010-12-22T10:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple file name selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523069#M1560696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please declare filepath variable as :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-OPTIONS p_cucrin  FOR dbtable-string NO INTERVALS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use below code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS :c_txt(4) TYPE c VALUE '.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cucrin-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: is_file_tab          TYPE filetable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: w_default_extension TYPE string VALUE c_txt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: is_file_line         TYPE file_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: w_rc                TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : is_file_tab,&lt;/P&gt;&lt;P&gt;         is_file_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: w_rc,&lt;/P&gt;&lt;P&gt;         w_default_extension.&lt;/P&gt;&lt;P&gt;&lt;/P&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;      default_extension       = w_default_extension&lt;/P&gt;&lt;P&gt;      multiselection          = abap_false&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_table              = is_file_tab&lt;/P&gt;&lt;P&gt;      rc                      = w_rc&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_dialog_failed = 1&lt;/P&gt;&lt;P&gt;      cntl_error              = 2&lt;/P&gt;&lt;P&gt;      error_no_gui            = 3&lt;/P&gt;&lt;P&gt;      not_supported_by_gui    = 4&lt;/P&gt;&lt;P&gt;      OTHERS                  = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*w_rc will hold number of filepaths probably&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Loop at  is_file_tab INTO is_file_line . " This table will hold the filepaths row by row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE is_file_line-filename TO p_cucrin. " move this as per your requirement to diff fields &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using above code will provide you filepath length as 1024 characters with F4 help option. also multiple values can be provided to filepath selection screen field. Pass the file names to GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rupali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rupali Punekar on Dec 22, 2010 11:55 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 10:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523069#M1560696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple file name selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523070#M1560697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use WS_ Fms anymore......These are obsolete......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use method FILE_OPEN_DIALOG of class CL_GUI_FRONTEND_SERVICES......Use parameter MULTISELECTION and get all the file names in FILE_TABLE.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 13:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-file-name-selection/m-p/7523070#M1560697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T13:10:55Z</dc:date>
    </item>
  </channel>
</rss>

