<?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: ALV export to excel problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668146#M883502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first problem is because MS EXCEL doesnot allow u to have leading zeros.&lt;/P&gt;&lt;P&gt;try typing  000123456 and press enter.. the leading zeros will vanish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second prob mite be because the col width in excel is not sufficient enuf. i guess so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2008 06:33:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-05T06:33:58Z</dc:date>
    <item>
      <title>ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668145#M883501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I facing a problem with ALV. When an ALV report is exported to Spreadsheet file (Exce file) two columns are giving follwing proble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First column doesnot display left side zeros of dcoument no when exprted to excel. for example- 0000245487 to 245487.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 in Another column right two digit are trucated when exported to excel. for examples 0000245487 to 2454.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the prblem.&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;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Jul 21, 2008 2:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 06:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668145#M883501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T06:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668146#M883502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first problem is because MS EXCEL doesnot allow u to have leading zeros.&lt;/P&gt;&lt;P&gt;try typing  000123456 and press enter.. the leading zeros will vanish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second prob mite be because the col width in excel is not sufficient enuf. i guess so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 06:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668146#M883502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T06:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668147#M883503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too faced this problem. It is problem with excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method by putting filetype as DBF in FM GUI_DOWNLOAD will defnetly help you, but this is obselete form of writing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ofname is the file destinataion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_data is the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax.&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                = ofname&lt;/P&gt;&lt;P&gt;      filetype                = 'DBF'&lt;/P&gt;&lt;P&gt;      write_field_separator   = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = it_data.&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error        = 1&lt;/P&gt;&lt;P&gt;      no_batch                = 2&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_authority            = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;      header_too_long         = 10&lt;/P&gt;&lt;P&gt;      dp_error_create         = 11&lt;/P&gt;&lt;P&gt;      dp_error_send           = 12&lt;/P&gt;&lt;P&gt;      dp_error_write          = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;      access_denied           = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;      disk_full               = 17&lt;/P&gt;&lt;P&gt;      dp_timeout              = 18&lt;/P&gt;&lt;P&gt;      file_not_found          = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;      control_flush_error     = 21&lt;/P&gt;&lt;P&gt;      OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;\[removed by moderator\]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jan Stallkamp on Jul 21, 2008 2:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 06:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668147#M883503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T06:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668148#M883504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hye rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Did that work..mate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 07:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668148#M883504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668149#M883505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HEY have you passed NO_ZERO parameters when define fieldcatlog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 06:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668149#M883505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T06:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668150#M883506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look into SAP Note 213427. It corrects this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 03:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668150#M883506</guid>
      <dc:creator>giancarla_aguilar</dc:creator>
      <dc:date>2008-04-18T03:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV export to excel problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668151#M883507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the following FM will be useful, to download the data from ALV to Excel in the same format as ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. GUI_Download: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this FM in the parameter Filetype give the value as DBF i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filetype = DBF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THe data gets downloaded perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SAP_CONVERT_TO_XLS_FORMAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM also downloads the data to excel in the same format as ALV.&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;\[removed by moderator\]&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: Jan Stallkamp on Jul 21, 2008 2:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 04:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-export-to-excel-problem/m-p/3668151#M883507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T04:21:21Z</dc:date>
    </item>
  </channel>
</rss>

