<?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 Using WS_DOWNLOAD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776483#M334942</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;i have used WS_DOWNLOAD to download my data . i wnat to include the fields name of these data into excel files.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB   = IFINAL1          " this is ur contents&lt;/P&gt;&lt;P&gt;          FIELDNAMES = .        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ifinal1 is my internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2006 07:13:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-13T07:13:44Z</dc:date>
    <item>
      <title>Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776483#M334942</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;i have used WS_DOWNLOAD to download my data . i wnat to include the fields name of these data into excel files.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB   = IFINAL1          " this is ur contents&lt;/P&gt;&lt;P&gt;          FIELDNAMES = .        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ifinal1 is my internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 07:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776483#M334942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T07:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776484#M334943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declarate internal table to store field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call ws_download : Pass the header internal table,  it create the file with header names.&lt;/P&gt;&lt;P&gt;now call ws_download again and pass the second internal table.&lt;/P&gt;&lt;P&gt;here for paratemers MODE pass 'A' it will append the values to the already created file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 07:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776484#M334943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T07:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776485#M334944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;create a internal table type similar to that in ws_download and poulate it with your field names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 07:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776485#M334944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T07:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776486#M334945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; !st do not use ws_download , its obsulute stmt in sao,use &lt;/P&gt;&lt;P&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD method&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Even if u are using ws_download then for filed name put them in one table and usin the abv fm ws_download, then when dowloading the values use the ab FM ws_download with MODE as append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav B Gawali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 07:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776486#M334945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T07:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776487#M334946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;import filetype must be 'DAT' to get field names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 07:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776487#M334946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T07:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776488#M334947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could u show me how to poulate the fields name in the first of internal table that should have the fields name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regared,&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 08:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776488#M334947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T08:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776489#M334948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Download internal table with field names as headings !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;a) Use GUI_DOWNLOAD fm instead of WS_DOWNLOAD.&lt;/P&gt;&lt;P&gt;b) we have to write some extra logic, to Fetch the field names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Just copy paste to get a taste of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;data : itab like table of t001 with header line.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;select * from t001 into table itab.&lt;/P&gt;&lt;P&gt;perform mydownload tables itab using 'D:\t001.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INDEPENDENT FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form mydownload tables ptab using filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; DAta&lt;/P&gt;&lt;P&gt;  DATA : components	LIKE	rstrucinfo OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA : allfields(300) TYPE c.&lt;/P&gt;&lt;P&gt;  DATA : fld(100) TYPE c.&lt;/P&gt;&lt;P&gt;  data : begin of htab occurs 0,&lt;/P&gt;&lt;P&gt;         allfields(300) type c,&lt;/P&gt;&lt;P&gt;         end of htab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Get component list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      program    = sy-repid&lt;/P&gt;&lt;P&gt;      fieldname  = 'ITAB'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      components = components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; construct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT components.&lt;/P&gt;&lt;P&gt;    CONCATENATE   components-compname&lt;/P&gt;&lt;P&gt;  CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB INTO fld.&lt;/P&gt;&lt;P&gt;    CONCATENATE allfields fld INTO allfields .&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  htab-allfields = allfields.&lt;/P&gt;&lt;P&gt;  append htab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; download first field list&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      FILENAME                        = 'D:\t001.txt'&lt;/P&gt;&lt;P&gt;     WRITE_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB                        = htab&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; then download file data&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FILENAME                        = filename&lt;/P&gt;&lt;P&gt;    APPEND                          = 'X'&lt;/P&gt;&lt;P&gt;   WRITE_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                        = ptab&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endform.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 08:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776489#M334948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T08:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using WS_DOWNLOAD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776490#M334949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could i use WS_Download to download txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes i want to be downloaded in a prober formate- not mixed fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2006 12:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-ws-download/m-p/1776490#M334949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-13T12:39:37Z</dc:date>
    </item>
  </channel>
</rss>

