<?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/1245518#M143464</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;when you r passing the parameter as tab the table is not inatializing properly so that you r getting the error but when you are giving as tab[] the table is getting initialized and value is now store in the fields of the table so it is not giving the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Apr 2006 12:04:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-06T12:04:14Z</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/1245513#M143459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I use the fm 'GUI_DOWNLOAD' to download some information in a file. Now I call the fm in my program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD
      EXPORTING
*      BIN_FILESIZE            =
       FILENAME                =  p_file
       FILETYPE                = 'ASC'

*    IMPORTING
*      FILELENGTH              =
       CHANGING
       DATA_TAB                = tab[]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As importing-parameter I use following tab:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF st,
       line(1000),
      END OF st.

DATA: tab LIKE standard TABLE OF st WITH HEADER LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I call the fm like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
.....
DATA_TAB             = tab
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error. If I call it with "DATA_TAB = tab[]" -&amp;gt; there is no error --&amp;gt; why???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 11:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245513#M143459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T11:56:43Z</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/1245514#M143460</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;The size of the field string used in Data_tab is 255 characters and you have declared the tab as 1000 characters. That is the reason for the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 12:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245514#M143460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T12:01: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/1245515#M143461</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;U have to use FunctionModule GUI_DOWNLOAD to download data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 12:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245515#M143461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T12:02:29Z</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/1245516#M143462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;because &amp;lt;b&amp;gt;tab&amp;lt;/b&amp;gt; means header line not the internal table.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;tab[]&amp;lt;/b&amp;gt; means internal table.you need to pass the internal table not the header line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 12:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245516#M143462</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-04-06T12:02:32Z</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/1245517#M143463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is because you have declared the table with header line. So, just tab means the header line and is nothing a single record. tab[] means the body of the table and that is what is expected in the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 12:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245517#M143463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T12:03:35Z</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/1245518#M143464</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;when you r passing the parameter as tab the table is not inatializing properly so that you r getting the error but when you are giving as tab[] the table is getting initialized and value is now store in the fields of the table so it is not giving the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 12:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245518#M143464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T12:04:14Z</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/1245519#M143465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ITAB like vbak occurs o with header line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download
    EXPORTING
      filename              = pc_filename
      filetype              = 'ASC'
      write_field_separator = 'X'
      append                = 'X'
    CHANGING
      data_tab              = ITAB[]
    EXCEPTIONS
      OTHERS                = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 12:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245519#M143465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-06T12:06:36Z</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/1245520#M143466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nonsens. Regarding ERP 2005/2004 and Unicode you have to use Methods of the class cl_gui_frontend_services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 13:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1245520#M143466</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2006-04-06T13:35:44Z</dc:date>
    </item>
  </channel>
</rss>

