<?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: call function 'GUI_DOWNLOAD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588696#M265182</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;You can use HEADER parameter only for BINARY file (so not ASCII): it's used to indicate informations like code page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Sep 2006 07:31:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-10T07:31:12Z</dc:date>
    <item>
      <title>call function 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588695#M265181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have a small doubt. im supposed to download to the client the text file with the header line.&lt;/P&gt;&lt;P&gt;call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  BIN_FILESIZE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    filename                        = 'c:/data.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                        = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  APPEND                          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;   WRITE_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;   HEADER                          = '00'----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt;wanna know whether i can use this to give  a header line. what exactly does paramter mean and what r the available options.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  TRUNC_TRAILING_BLANKS           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  WRITE_LF                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  COL_SELECT                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  COL_SELECT_MASK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  DAT_MODE                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  CONFIRM_OVERWRITE               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  CODEPAGE                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                     = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  REPLACEMENT                     = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  WRITE_BOM                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  TRUNC_TRAILING_BLANKS_EOL       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  FILELENGTH                      =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                        = i_chqs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks A lot.&lt;/P&gt;&lt;P&gt;Santosh Kotra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2006 07:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588695#M265181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-10T07:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: call function 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588696#M265182</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;You can use HEADER parameter only for BINARY file (so not ASCII): it's used to indicate informations like code page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2006 07:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588696#M265182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-10T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: call function 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588697#M265183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The particular parameter is not for header but there is another table parameter for Fileheader, but it works only for filetype DBF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2006 07:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588697#M265183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-10T07:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: call function 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588698#M265184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to have header for your columns, first call gui_download with just the header and then call gui_download again with parameter APPEND= 'X' and data table to the same file&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, 10 Sep 2006 08:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588698#M265184</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-09-10T08:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: call function 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588699#M265185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Header' parameter in FM 'GUI_DOWNLOAD' is not meant for inserting a table header, rather 'this parameter enables you to place individual bytes in front of data in the case of a binary download'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put the header line in download table, you have 2 options. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If your file type is 'DBF', use parameter 'FIELDNAMES'.&lt;/P&gt;&lt;P&gt;2. What I use commonly to enter columnnames in internal table is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	types : begin of ztype,&lt;/P&gt;&lt;P&gt;		dat1(10) TYPE c, &lt;/P&gt;&lt;P&gt;		dat2(15) TYPE c,&lt;/P&gt;&lt;P&gt;		dat3(10) TYPE c,&lt;/P&gt;&lt;P&gt;		dat4(15) TYPE c,&lt;/P&gt;&lt;P&gt;		end of ztype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type standard table of ztype,&lt;/P&gt;&lt;P&gt;	wa type ztype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;wa-dat1 = 'Test1'.&lt;/P&gt;&lt;P&gt;wa-dat2 = 'Test2'.&lt;/P&gt;&lt;P&gt;wa-dat3 = 'Test3'.&lt;/P&gt;&lt;P&gt;wa-dat4 = 'Test4'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT wa INTO itab INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call FM 'GUI_DOWNLOAD' with data_tab = itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Awarding Points for Helpful Answers is a Good way of saying Thanks.	&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2006 08:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1588699#M265185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-10T08:18:57Z</dc:date>
    </item>
  </channel>
</rss>

