<?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 Excel  download in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696565#M890025</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 am downloading data in excel from an internal table using GUI_DOWNLOAD . data is correct but few rows it is showing in one cell.&lt;/P&gt;&lt;P&gt; on old screen system if i see that data it is found okay but on new screen(flat screen) it is concatamnating multiple rows in one cell.&lt;/P&gt;&lt;P&gt;please reply me if u have any input for solving the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2008 09:43:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-11T09:43:54Z</dc:date>
    <item>
      <title>Excel  download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696565#M890025</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 am downloading data in excel from an internal table using GUI_DOWNLOAD . data is correct but few rows it is showing in one cell.&lt;/P&gt;&lt;P&gt; on old screen system if i see that data it is found okay but on new screen(flat screen) it is concatamnating multiple rows in one cell.&lt;/P&gt;&lt;P&gt;please reply me if u have any input for solving the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 09:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696565#M890025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excel  download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696566#M890026</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'GUI_DOWNLOAD'
    exporting
*     BIN_FILESIZE                    =
      filename                        = filename
      filetype                        = 'DAT'
*     APPEND                          = ' '
     WRITE_FIELD_SEPARATOR           = 'X'
    tables
      data_tab                        = dwnloc
     fieldnames                      = fld
   exceptions
     file_write_error                = 1
     no_batch                        = 2
     gui_refuse_filetransfer         = 3
     invalid_type                    = 4
     no_authority                    = 5
     unknown_error                   = 6
     header_not_allowed              = 7
     separator_not_allowed           = 8
     filesize_not_allowed            = 9
     header_too_long                 = 10
     dp_error_create                 = 11
     dp_error_send                   = 12
     dp_error_write                  = 13
     unknown_dp_error                = 14
     access_denied                   = 15
     dp_out_of_memory                = 16
     disk_full                       = 17
     dp_timeout                      = 18
     file_not_found                  = 19
     dataprovider_exception          = 20
     control_flush_error             = 21
     others                          = 22
            .
  if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 5:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 09:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696566#M890026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T09:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Excel  download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696567#M890027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'WS_DOWNLOAD'
 EXPORTING
   FILENAME                      = p_file1
  FILETYPE                      = 'dat'
  TABLES
    data_tab                      = it_out

 EXCEPTIONS
  FILE_OPEN_ERROR               = 1
   FILE_WRITE_ERROR              = 2
   INVALID_FILESIZE              = 3
   INVALID_TYPE                  = 4
   NO_BATCH                      = 5
   UNKNOWN_ERROR                 = 6
   INVALID_TABLE_WIDTH           = 7
   GUI_REFUSE_FILETRANSFER       = 8
   CUSTOMER_ERROR                = 9
   NO_AUTHORITY                  = 10
   OTHERS                        = 11
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the above code..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696567#M890027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Excel  download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696568#M890028</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;DATA: BEGIN OF HEAD OCCURS 0,&lt;/P&gt;&lt;P&gt;      HEAD(450),&lt;/P&gt;&lt;P&gt;  END OF HEAD.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;  matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;  ersda like mara-ersda,&lt;/P&gt;&lt;P&gt;  end of itab.&lt;/P&gt;&lt;P&gt;*parameters: P_FILE LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;  data: e_file type   DYNPREAD-fieldname,&lt;/P&gt;&lt;P&gt;        i_file type IBIPPARMS-path..&lt;/P&gt;&lt;P&gt;DATA: FILE TYPE STRING.&lt;/P&gt;&lt;P&gt;  select matnr&lt;/P&gt;&lt;P&gt;         ersda&lt;/P&gt;&lt;P&gt;     from mara&lt;/P&gt;&lt;P&gt;     into table itab&lt;/P&gt;&lt;P&gt;     UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'F4_FILENAME'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   PROGRAM_NAME        = SYST-CPROG&lt;/P&gt;&lt;P&gt;   DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;P&gt;   FIELD_NAME          = e_FILE&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FILE_NAME           = i_file&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;REFRESH HEAD.&lt;/P&gt;&lt;P&gt;HEAD-HEAD = 'MATNR'.&lt;/P&gt;&lt;P&gt;APPEND HEAD.&lt;/P&gt;&lt;P&gt;CLEAR HEAD.&lt;/P&gt;&lt;P&gt;HEAD-HEAD = 'ERSDA'.&lt;/P&gt;&lt;P&gt;APPEND HEAD.&lt;/P&gt;&lt;P&gt;CLEAR HEAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE = I_FILE.&lt;/P&gt;&lt;P&gt;call function 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    filename                        = file&lt;/P&gt;&lt;P&gt;   FILETYPE                        = 'ASC'&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;WRITE_FIELD_SEPARATOR           = 'X'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;    data_tab                        = ITAB&lt;/P&gt;&lt;P&gt;    FIELDNAMES                      = HEAD[]&lt;/P&gt;&lt;P&gt;          .&lt;/P&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;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  write:/ itab-matnr , itab-ersda.&lt;/P&gt;&lt;P&gt;  ENDLOOP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696568#M890028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Excel  download</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696569#M890029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using GUI_download u can download into excel format&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;call method cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = 'C:/test1.xls'&lt;/P&gt;&lt;P&gt;write_field_separator = 'X'&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;data_tab = it_excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 5:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 10:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-download/m-p/3696569#M890029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T10:14:47Z</dc:date>
    </item>
  </channel>
</rss>

