<?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: Adding Header details in Excel sheet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848339#M1133915</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;  What's the data type of fields in your internal table? Is it char or string? If yes just try the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You define your internal table which will be download as 3 fields type string. And first append one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;header record of three fields: 'Customer' 'Number' 'Country City' to the internal table, then append data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record to the internal table. After that call 'GUI_DOWNLOAD' to download the table to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Nov 2008 11:58:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-23T11:58:49Z</dc:date>
    <item>
      <title>Adding Header details in Excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848338#M1133914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to download data from internal table to Excel File using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;However i would like to add first line of excel sheet with Field name Details.&lt;/P&gt;&lt;P&gt;for eg if below is excel sheet, it should display Field name and under that all field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer Number  Country     City&lt;/P&gt;&lt;P&gt;0000000001           India          Hy&lt;/P&gt;&lt;P&gt;0000000002           US            NJ&lt;/P&gt;&lt;P&gt;0000000003           Uk             NS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i go about it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried searching in SDN, but no luck. help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2008 05:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848338#M1133914</guid>
      <dc:creator>pintoo_d</dc:creator>
      <dc:date>2008-11-22T05:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Header details in Excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848339#M1133915</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;  What's the data type of fields in your internal table? Is it char or string? If yes just try the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  You define your internal table which will be download as 3 fields type string. And first append one &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;header record of three fields: 'Customer' 'Number' 'Country City' to the internal table, then append data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record to the internal table. After that call 'GUI_DOWNLOAD' to download the table to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2008 11:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848339#M1133915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-23T11:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Header details in Excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848340#M1133916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use OLE rather than gui_download.&lt;/P&gt;&lt;P&gt;many examples are present how to download the data in excel sheet with column headings search in sdn with the keyword OLE you will get the answer.&lt;/P&gt;&lt;P&gt;For your assistance check the below link&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/advancedsearch?query=ole+heading&amp;amp;cat=sdn_all" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/advancedsearch?query=ole+heading&amp;amp;cat=sdn_all&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2008 12:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848340#M1133916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-23T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Header details in Excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848341#M1133917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:begin of it_heading occurs 0,&lt;/P&gt;&lt;P&gt;    text(20) type c,&lt;/P&gt;&lt;P&gt;    end of excel_heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_heading-text = 'Customer Number'.&lt;/P&gt;&lt;P&gt;    append it_heading.&lt;/P&gt;&lt;P&gt;    it_heading-text = 'Country'.&lt;/P&gt;&lt;P&gt;    append it_heading.&lt;/P&gt;&lt;P&gt;    it_heading-text = 'City'.&lt;/P&gt;&lt;P&gt;    append it_heading.&lt;/P&gt;&lt;P&gt;&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              = p_pfile&lt;/P&gt;&lt;P&gt;        filetype              = 'DAT'&lt;/P&gt;&lt;P&gt;        write_field_separator = '#'&lt;/P&gt;&lt;P&gt;        header                = '00'&lt;/P&gt;&lt;P&gt;        trunc_trailing_blanks = 'X'&lt;/P&gt;&lt;P&gt;        show_transfer_status  = 'X'&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        data_tab              = p_it_final[]&lt;/P&gt;&lt;P&gt;        fieldnames            = it_heading[].         &amp;lt;----&lt;/P&gt;&lt;HR originaltext="--------------------------" /&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 05:09:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848341#M1133917</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-11-24T05:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Header details in Excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848342#M1133918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone to help me out. &lt;/P&gt;&lt;P&gt;Points already given &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2008 11:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-header-details-in-excel-sheet/m-p/4848342#M1133918</guid>
      <dc:creator>pintoo_d</dc:creator>
      <dc:date>2008-11-24T11:26:08Z</dc:date>
    </item>
  </channel>
</rss>

