<?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: excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174988#M124127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lets say you want to download a itab with four columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create another itab with four columns, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;data: begin of h_itab occurs 0 with header line ,&lt;/P&gt;&lt;P&gt;      fc(30),&lt;/P&gt;&lt;P&gt;sc(30),&lt;/P&gt;&lt;P&gt;tc(30),&lt;/P&gt;&lt;P&gt;frc(40) ,&lt;/P&gt;&lt;P&gt;end of h_itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move: 'column1 title' to h_itab-fc ,&lt;/P&gt;&lt;P&gt;      'column2 title' to h_itab-sc ,&lt;/P&gt;&lt;P&gt;      'column3 title' to h_itab-tc ,&lt;/P&gt;&lt;P&gt;      'column4 title' to h_itab-frc ,&lt;/P&gt;&lt;P&gt;append h_itab . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first download h_itab using GUI_DOWNLOAD to say file name c:/tem.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again call GUI_DOWNLOAD to download the itab which is holding the data to the same location (c:/tem.xls), but this time when calling GUI_DOWNLOAD pass 'X' to parameter &amp;lt;b&amp;gt;APPEND&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Jan 2006 10:58:04 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-01-29T10:58:04Z</dc:date>
    <item>
      <title>excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174986#M124125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello!&lt;/P&gt;&lt;P&gt;i used gui_download in order to create an excel file.&lt;/P&gt;&lt;P&gt;i need to add columns heading to the file before downloading it.&lt;/P&gt;&lt;P&gt;i try to add hard code text into the table for each field,  and the insert the line into the table as first line,but some of the table fields are numeric and i get dump.&lt;/P&gt;&lt;P&gt;how can i add a column line to the internal table before downloading it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;yifat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2006 08:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174986#M124125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-29T08:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174987#M124126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Yifat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to call gui_download  twice, Once with the header and next time with the data....&lt;/P&gt;&lt;P&gt;Make sure that when you call the gui_download next time you append the data inside it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mithlesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2006 10:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174987#M124126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-29T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174988#M124127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lets say you want to download a itab with four columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create another itab with four columns, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;data: begin of h_itab occurs 0 with header line ,&lt;/P&gt;&lt;P&gt;      fc(30),&lt;/P&gt;&lt;P&gt;sc(30),&lt;/P&gt;&lt;P&gt;tc(30),&lt;/P&gt;&lt;P&gt;frc(40) ,&lt;/P&gt;&lt;P&gt;end of h_itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move: 'column1 title' to h_itab-fc ,&lt;/P&gt;&lt;P&gt;      'column2 title' to h_itab-sc ,&lt;/P&gt;&lt;P&gt;      'column3 title' to h_itab-tc ,&lt;/P&gt;&lt;P&gt;      'column4 title' to h_itab-frc ,&lt;/P&gt;&lt;P&gt;append h_itab . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first download h_itab using GUI_DOWNLOAD to say file name c:/tem.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again call GUI_DOWNLOAD to download the itab which is holding the data to the same location (c:/tem.xls), but this time when calling GUI_DOWNLOAD pass 'X' to parameter &amp;lt;b&amp;gt;APPEND&amp;lt;/b&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2006 10:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174988#M124127</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-01-29T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174989#M124128</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;*declare an internal table it_header and it_downloads to *download the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of it_header occurs 0,&lt;/P&gt;&lt;P&gt;      string(100),&lt;/P&gt;&lt;P&gt;     end of it_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform Insert_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Function GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;P&gt;       filename = c:\xyz.xls&lt;/P&gt;&lt;P&gt;       filetype = DAT&lt;/P&gt;&lt;P&gt; tables &lt;/P&gt;&lt;P&gt;       data_tab = it_download&lt;/P&gt;&lt;P&gt;       fieldnames = it_header&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;    ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&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;Form Insert_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_header-string = text-001.&lt;/P&gt;&lt;P&gt;append it_header.Clear it_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_header-string = text-002.&lt;/P&gt;&lt;P&gt;append it_header.Clear it_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_header-string = text-003.&lt;/P&gt;&lt;P&gt;append it_header.Clear it_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_header-string = text-004.&lt;/P&gt;&lt;P&gt;append it_header.Clear it_header.&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;Please reward points if it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2006 12:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/1174989#M124128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-29T12:57:25Z</dc:date>
    </item>
  </channel>
</rss>

