<?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 downloading to excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008158#M1165904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before pasting data into excel sheet set format of cells as &lt;STRONG&gt;numerical&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jan 2009 13:12:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-17T13:12:01Z</dc:date>
    <item>
      <title>problem while downloading to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008157#M1165903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using OLE to download entries from internal table to excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the entry in internal table is of length 18 i.e account no. = 123456789876543212,type c(18)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when this entry get downloaded in excel it gets printed as exponent.&lt;/P&gt;&lt;P&gt;i.e1.23457E+17.&lt;/P&gt;&lt;P&gt;How can i print account no. in the same format.&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 12:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008157#M1165903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem while downloading to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008158#M1165904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before pasting data into excel sheet set format of cells as &lt;STRONG&gt;numerical&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jan 2009 13:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008158#M1165904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-17T13:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem while downloading to excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008159#M1165905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lokesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In OLE set the range of cells in which you have A/C number.&lt;/P&gt;&lt;P&gt;Say for example your A/C number is fourth column in your table, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT wf_excel 'EXCEL.APPLICATION'.
...
*    Set First row 4th column
CALL METHOD OF wf_excel 'Cells' = wf_cell_from1
    EXPORTING
    #1 = 1
    #2 = 4.
*   Get the number of lines of int table to determine 
*   last row

  DESCRIBE TABLE &amp;lt;internal table&amp;gt; LINES lines

*    Set last row 4th column
  CALL METHOD OF wf_excel 'Cells' = wf_cell_to1
    EXPORTING
    #1 = lines
    #2 = 4.

*    Set the range here
  CALL METHOD OF wf_excel 'Range' = wf_cell1
    EXPORTING
    #1 = wf_cell_from1
    #2 = wf_cell_to1.

*    Format the range of cells here
  SET PROPERTY OF wf_cell1 'NumberFormat' = '@' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 13:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-downloading-to-excel/m-p/5008159#M1165905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T13:37:05Z</dc:date>
    </item>
  </channel>
</rss>

