<?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: DAT (spreadsheet) formatted file saved to app. server? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779224#M39044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you download your file to server, there is no option of file type when you download to PC. I have done this when downloading TAB delimited file to server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;LOOP at ITAB.&lt;/P&gt;&lt;P&gt;   CLEAR LV_LINE.&lt;/P&gt;&lt;P&gt;   CONCATENATE ITAB-FIELD1&lt;/P&gt;&lt;P&gt;               ITAB-FIELD2&lt;/P&gt;&lt;P&gt;               ...&lt;/P&gt;&lt;P&gt;               ITAB-FIELDN&lt;/P&gt;&lt;P&gt;      INTO LV_LINE SEPARATED BY&lt;/P&gt;&lt;P&gt;           CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;   TRANSFER LV_LINE TO SERVERFILENAME.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2004 15:10:23 GMT</pubDate>
    <dc:creator>nablan_umar</dc:creator>
    <dc:date>2004-09-16T15:10:23Z</dc:date>
    <item>
      <title>DAT (spreadsheet) formatted file saved to app. server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779221#M39041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to save a file in DAT (spreadsheet) format to an app. server. Essentially I want the functionality offered by System&lt;DEL&gt;&amp;gt;List&lt;/DEL&gt;&amp;gt;Save--&amp;gt;Local file; however I want to save it to the app. server and not the pc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module LIST_CONVERT_TO_DAT essentially is the one behind the menu option I mentioned above, but it is hard-wired to always save the file to the pc. Anyone know of a similar function (in fact, with the exact same functionality), but instead can save the file to the app. server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Lee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 22:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779221#M39041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-15T22:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAT (spreadsheet) formatted file saved to app. server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779222#M39042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lee&lt;/P&gt;&lt;P&gt;You can use "OPEN DATASET" and related statements to load a file to the application server. Function modules "C13Z_FILE_UPLOAD_BINARY" and "C13Z_FILE_DOWNLOAD_BINARY" may also be utilized. Here is a procedure to save a file, read from presentation, into the app. server and read it from the app. server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Reading file from the presentation layer into an &lt;/P&gt;&lt;P&gt;*--internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA gt_data TYPE TABLE OF text1000 WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = p_fname&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = gt_data&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_read_error = 2&lt;/P&gt;&lt;P&gt;no_batch = 3&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;invalid_type = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*--Saving file to the application server&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA gv_dsn(30) TYPE c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_dsn = '/usr/test.xls',&lt;/P&gt;&lt;P&gt;OPEN DATASET gv_dsn FOR OUTPUT .&lt;/P&gt;&lt;P&gt;LOOP AT gt_data .&lt;/P&gt;&lt;P&gt;TRANSFER gt_data TO gv_dsn .&lt;/P&gt;&lt;P&gt;ENDLOOP .&lt;/P&gt;&lt;P&gt;CLOSE DATASET gv_dsn .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Reading a file from application server into an &lt;/P&gt;&lt;P&gt;*--internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA gv_filedsn(30) TYPE c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_filedsn = '/usr/test.xls',&lt;/P&gt;&lt;P&gt;OPEN DATASET gv_filedsn .&lt;/P&gt;&lt;P&gt;DO .&lt;/P&gt;&lt;P&gt;READ DATASET gv_filedsn INTO gt_data2 .&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0 .&lt;/P&gt;&lt;P&gt;EXIT .&lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;P&gt;APPEND gt_data2 .&lt;/P&gt;&lt;P&gt;ENDDO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*-- Downloading the file to the presentation layer from &lt;/P&gt;&lt;P&gt;*--the internal table&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gv_down_fname LIKE rlgrap-filename .&lt;/P&gt;&lt;P&gt;gv_down_fname = 'D:\temp\after_down.doc' .&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 = gv_down_fname&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = gt_data2&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_WRITE_ERROR = 1&lt;/P&gt;&lt;P&gt;NO_BATCH = 2&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 3&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2004 22:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779222#M39042</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-09-15T22:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAT (spreadsheet) formatted file saved to app. server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779223#M39043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Serdar, but I guess I should have explained myself a little better....the issue isn't really saving a file to the app. server or presentation layer (that's the easy stuff), but what I'm really after is a function that performs the same formatting as that done by the function LIST_CONVERT_TO_DAT (i.e. I need to convert an internal ABAP table or list to spreadsheet format ("DAT")). Note that I can't use LIST_CONVERT_TO_DAT because it's "hard-wired" to download the results to the presentation layer - I need to save my "dat-formatted" file to the app. server (and it needs to run in the background).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2004 13:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779223#M39043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-09-16T13:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAT (spreadsheet) formatted file saved to app. server?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779224#M39044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you download your file to server, there is no option of file type when you download to PC. I have done this when downloading TAB delimited file to server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;LOOP at ITAB.&lt;/P&gt;&lt;P&gt;   CLEAR LV_LINE.&lt;/P&gt;&lt;P&gt;   CONCATENATE ITAB-FIELD1&lt;/P&gt;&lt;P&gt;               ITAB-FIELD2&lt;/P&gt;&lt;P&gt;               ...&lt;/P&gt;&lt;P&gt;               ITAB-FIELDN&lt;/P&gt;&lt;P&gt;      INTO LV_LINE SEPARATED BY&lt;/P&gt;&lt;P&gt;           CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;   TRANSFER LV_LINE TO SERVERFILENAME.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2004 15:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dat-spreadsheet-formatted-file-saved-to-app-server/m-p/779224#M39044</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2004-09-16T15:10:23Z</dc:date>
    </item>
  </channel>
</rss>

