<?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: Excel Sheet problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570357#M586822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you prefix your field with a single quote, Excel will treat it as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constant: c_quote value `'`.
  
 concatentate c_quote my_field into my_new_field.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 10:30:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T10:30:13Z</dc:date>
    <item>
      <title>Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570356#M586821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;      I am displaying the output in Excel Sheet My Material number is 0613952E23 &lt;/P&gt;&lt;P&gt; while displaying it is displayed 6.14E+28 how to diable this property in Excel Sheet. I am using OLE technic to display the output in Excel Sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Y.Ravi kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570356#M586821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570357#M586822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you prefix your field with a single quote, Excel will treat it as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constant: c_quote value `'`.
  
 concatentate c_quote my_field into my_new_field.
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570357#M586822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570358#M586823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one technique you can use is to merge the cell with the next one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS ole2 .
DATA:  count TYPE i,
       application TYPE ole2_object,
       workbook TYPE ole2_object,
       excel     TYPE ole2_object,
       sheet TYPE ole2_object,
       cells TYPE ole2_object.

DATA:
      h_cell    TYPE ole2_object,        " cell
      h_f       TYPE ole2_object,        " font
      h_range   TYPE ole2_object,
      h_merge   TYPE ole2_object,


CALL METHOD OF excel 'Range' = h_range
  EXPORTING
  #1 = 'A10'
  #2 = 'K10'.  " will merge A10 to K10 in this case

 CALL METHOD OF h_range 'Merge' = h_merge .  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570358#M586823</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-27T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570359#M586824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open the Excel sheet right click a cell.&lt;/P&gt;&lt;P&gt;select FORMAT CELLs&lt;/P&gt;&lt;P&gt;Now select NUMBERS instead of general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570359#M586824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T10:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570360#M586825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Definitely you will see the display of the number in exponential form. That is only way of the display in excel because after certain number it convert it into exponential form. but if you will click onto the cell you can see, actual value what ever material number you have given into the cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if useful&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pritam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570360#M586825</guid>
      <dc:creator>PritamKunal</dc:creator>
      <dc:date>2007-07-27T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570361#M586826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi&lt;/P&gt;&lt;P&gt;if you really need to display in digit format do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right click on the cell --&amp;gt; Format Cell --&amp;gt;  In general Tab Maintain category as Custom and then Type as 0. after that you can see the data will appear in cell as you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Point if helpful&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pritam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 10:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570361#M586826</guid>
      <dc:creator>PritamKunal</dc:creator>
      <dc:date>2007-07-27T10:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570362#M586827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the solution to your problem&lt;/P&gt;&lt;P&gt;Excel OLE has a method which allows you to autofit the contents of a cell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample is shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
      h_cell    TYPE ole2_object,        " cell
       h_columns TYPE ole2_object,
       h_rows TYPE ole2_object,
       h_auto TYPE ole2_object.

  CALL METHOD OF h_cell 'Columns' = h_columns .

  CALL METHOD OF h_columns 'AutoFit' = h_auto .

  CALL METHOD OF h_cell 'Rows' = h_rows .
  CALL METHOD OF h_rows 'AutoFit' = h_auto .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570362#M586827</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-27T11:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Sheet problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570363#M586828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one more thing...&lt;/P&gt;&lt;P&gt;using the autofit method will give you the output as 613952E23 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the preceding 0, append the apostrophe character to your matnr &lt;/P&gt;&lt;P&gt;(declare matnr as char(19) first)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;concatenate '''' matnr into matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'''' is the escape sequence for apostrophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 11:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-sheet-problem/m-p/2570363#M586828</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-27T11:26:46Z</dc:date>
    </item>
  </channel>
</rss>

