<?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 Reg: Saving the file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625225#M1089451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In my requirent i want to save the data on presentation server,&lt;/P&gt;&lt;P&gt; but i want a Pop-up like in windows word, i know the using method  cl_gui_frontend_services=&amp;gt;file_save_dialog we get the pop up. But how to save the data in internal table when the Pop-up come. Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 12:10:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T12:10:03Z</dc:date>
    <item>
      <title>Reg: Saving the file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625225#M1089451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In my requirent i want to save the data on presentation server,&lt;/P&gt;&lt;P&gt; but i want a Pop-up like in windows word, i know the using method  cl_gui_frontend_services=&amp;gt;file_save_dialog we get the pop up. But how to save the data in internal table when the Pop-up come. Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625225#M1089451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Saving the file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625226#M1089452</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;U can check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method of file download with check uses the latest techniques &lt;/P&gt;&lt;P&gt;and achieves a very neat solution &lt;/P&gt;&lt;P&gt;DATA: ld_filename TYPE string,&lt;/P&gt;&lt;P&gt;ld_path TYPE string,&lt;/P&gt;&lt;P&gt;ld_fullpath TYPE string,&lt;/P&gt;&lt;P&gt;ld_result TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display save dialog window &lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;window_title = ' ' &lt;/P&gt;&lt;P&gt;DEFAULT_EXTENSION = 'xls'&lt;/P&gt;&lt;P&gt;default_file_name = 'accountsdata'&lt;/P&gt;&lt;P&gt;INITIAL_DIRECTORY = 'c:\temp\'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;filename = ld_filename&lt;/P&gt;&lt;P&gt;path = ld_path&lt;/P&gt;&lt;P&gt;fullpath = ld_fullpath&lt;/P&gt;&lt;P&gt;user_action = ld_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check user did not cancel request &lt;/P&gt;&lt;P&gt;CHECK ld_result EQ '0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = ld_fullpath&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND = 'X' &lt;/P&gt;&lt;P&gt;write_field_separator = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIRM_OVERWRITE = 'X' &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = it_datatab[] "need to declare and populate&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_write_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = p_pfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filetype = 'ASC' &lt;/P&gt;&lt;P&gt;filetype = 'DAT' (Tab delimited)&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filesize = size "10/02/02 &lt;/P&gt;&lt;P&gt;filelength = size "10/02/02&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = xls_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = p_pfile&lt;/P&gt;&lt;P&gt;filetype = 'WK1'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;filesize = size&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = xls_tab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_open_error = 1 "10/02/02 &lt;/P&gt;&lt;P&gt;others = 2. "10/02/02 &lt;/P&gt;&lt;P&gt;invalid_filesize = 1&lt;/P&gt;&lt;P&gt;invalid_table_width = 2&lt;/P&gt;&lt;P&gt;invalid_type = 3&lt;/P&gt;&lt;P&gt;no_batch = 4&lt;/P&gt;&lt;P&gt;unknown_error = 5&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 6&lt;/P&gt;&lt;P&gt;customer_error = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;WRITE: / 'Download file', p_pfile,&lt;/P&gt;&lt;P&gt;'has error with condition code', sy-subrc.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625226#M1089452</guid>
      <dc:creator>satsrockford</dc:creator>
      <dc:date>2008-10-15T12:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Saving the file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625227#M1089453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-saving-the-file/m-p/4625227#M1089453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:35:04Z</dc:date>
    </item>
  </channel>
</rss>

