<?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: Regarding Path Selection for Exporting File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994177#M1163186</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;&lt;/P&gt;&lt;P&gt;Use this logic.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
*CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
  CHANGING
    file_table              = lt_filetab
    rc                      = l_rc
  EXCEPTIONS
    file_open_dialog_failed = 1
    cntl_error              = 2
    error_no_gui            = 3
    not_supported_by_gui    = 4
    OTHERS                  = 5

READ TABLE lt_filetab INTO lw_filetable INDEX 1.
if sy-subrc = 0.
  l_filename = lw_filetable-filename.  " file name.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2009 09:42:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-13T09:42:41Z</dc:date>
    <item>
      <title>Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994172#M1163181</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;I want to export my program output to EXCEL shett But I need to provide a parameter options for user selection. Means user can select his own path..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply soon...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BYe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994172#M1163181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994173#M1163182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;      U can use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_rc type i.&lt;/P&gt;&lt;P&gt;data: lt_filetab type filetable.&lt;/P&gt;&lt;P&gt;data: ls_filetab like line of lt_filetab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_file type localfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;changing&lt;/P&gt;&lt;P&gt;file_table = lt_filetab&lt;/P&gt;&lt;P&gt;rc = v_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;read table lt_filetab into ls_filetab index 1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;p_file = ls_filetab-filename.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now pass the file name to gui_upload method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994173#M1163182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994174#M1163183</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;Try using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_pcfile like rlgrap-filename default 'c:\test.xls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_pcfile.&lt;/P&gt;&lt;P&gt;    call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            mask      = '&lt;STRONG&gt;.&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;            static    = 'X'&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            file_name = p_pcfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994174#M1163183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994175#M1163184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruchit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to use below code:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file type RLGRAP-filename,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PROGRAM_NAME        = SYST-CPROG&lt;/P&gt;&lt;P&gt;   DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FILE_NAME           = p_file&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a Nice Day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sujeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994175#M1163184</guid>
      <dc:creator>SujeetMishra</dc:creator>
      <dc:date>2009-01-13T09:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994176#M1163185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a parameter first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:  INFILE like rlgrap-filename .    " Input file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR INFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: FILE                 LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PROGRAM_NAME        = SYST-CPROG&lt;/P&gt;&lt;P&gt;      DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME           = FILE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994176#M1163185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994177#M1163186</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;&lt;/P&gt;&lt;P&gt;Use this logic.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
*CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
  CHANGING
    file_table              = lt_filetab
    rc                      = l_rc
  EXCEPTIONS
    file_open_dialog_failed = 1
    cntl_error              = 2
    error_no_gui            = 3
    not_supported_by_gui    = 4
    OTHERS                  = 5

READ TABLE lt_filetab INTO lw_filetable INDEX 1.
if sy-subrc = 0.
  l_filename = lw_filetable-filename.  " file name.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994177#M1163186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994178#M1163187</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;See the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block input with frame title text-000.&lt;/P&gt;&lt;P&gt;parameters :desktop     radiobutton group rg_f user-command rg_f,&lt;/P&gt;&lt;P&gt;                   in_file type ibipparms-path modif id ps,&lt;/P&gt;&lt;P&gt;            menu     radiobutton group rg_f,&lt;/P&gt;&lt;P&gt;                   sys_file type ibipparms-path modif id as default  '/sapia/iface/in/comm/sapfin/' .&lt;/P&gt;&lt;P&gt;selection-screen end of block input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for in_file.&lt;/P&gt;&lt;P&gt;  call function 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      mask      = ',CSV,*.csv,'&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      file_name = in_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your fm gui_download give the filepath (here IN_FILE) as filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994178#M1163187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994179#M1163188</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;use FM, KD_GET_FILENAME_ON_F4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link also,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1072809"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 09:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994179#M1163188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T09:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994180#M1163189</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;Thanks for your reply......  But in GUI_DOWNLAOD FM what should i write in field filename ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 10:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994180#M1163189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T10:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Path Selection for Exporting File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994181#M1163190</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;PRE&gt;&lt;CODE&gt;PARAMETERS : p_upload TYPE rlgrap-filename.
DATA :  lv_path TYPE string.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upload.
CALL FUNCTION 'F4_FILENAME'
    IMPORTING
      file_name = p_upload.

START-OF-SELECTION.
 lv_path = p_upload.

  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = lv_path "------&amp;gt; file name&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 10:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-path-selection-for-exporting-file/m-p/4994181#M1163190</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-01-13T10:56:02Z</dc:date>
    </item>
  </channel>
</rss>

