<?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: Problem while exporting ALV to spreadsheet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391077#M190020</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;Try to use the method to download directly form the internal table you are using to display data in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a button in application tool bar for downloading and use the following code to download directly from internal table. It will download correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:  file type string,
       path type string,
       file_path type string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 call method cl_gui_frontend_services=&amp;gt;file_save_dialog
 changing      filename          = file
               path              = path
               fullpath          = file_path.

check not file_path is initial.

call method cl_gui_frontend_services=&amp;gt;gui_download
  exporting    filename                = file_Path
   changing    data_tab                = itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jul 2006 05:35:29 GMT</pubDate>
    <dc:creator>dani_mn</dc:creator>
    <dc:date>2006-07-18T05:35:29Z</dc:date>
    <item>
      <title>Problem while exporting ALV to spreadsheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391076#M190019</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;I'm displaying a report in ALV grid. It has 25 columns.&lt;/P&gt;&lt;P&gt;Some columns are editable. events are also handled in it.&lt;/P&gt;&lt;P&gt;I'm using SET_TABLE_FOR_FIRST_DISPLAY. While preparing the field catalog have set the 'COL_POS' each and every column.&lt;/P&gt;&lt;P&gt;The output is properly displayed but while downloading it to local file as spreadsheet, the data of all columns is not downloaded.&lt;/P&gt;&lt;P&gt;Anyone have an idea why is this happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Disha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 05:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391076#M190019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T05:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV to spreadsheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391077#M190020</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;Try to use the method to download directly form the internal table you are using to display data in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a button in application tool bar for downloading and use the following code to download directly from internal table. It will download correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:  file type string,
       path type string,
       file_path type string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 call method cl_gui_frontend_services=&amp;gt;file_save_dialog
 changing      filename          = file
               path              = path
               fullpath          = file_path.

check not file_path is initial.

call method cl_gui_frontend_services=&amp;gt;gui_download
  exporting    filename                = file_Path
   changing    data_tab                = itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 05:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391077#M190020</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-18T05:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV to spreadsheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391078#M190021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Disha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your Fieldcat did you specify the Correct tabname for all the columns ,and also it should be same.&lt;/P&gt;&lt;P&gt;fieldcat-tabname = &amp;lt;b&amp;gt;'IT_FINAL'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;specify this for all columns and make sure you the tablename should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&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>Tue, 18 Jul 2006 06:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391078#M190021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T06:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while exporting ALV to spreadsheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391079#M190022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wasim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks a lot for the prompt reply..Your suggestion was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Disha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2006 12:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-exporting-alv-to-spreadsheet/m-p/1391079#M190022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-18T12:39:13Z</dc:date>
    </item>
  </channel>
</rss>

