<?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: Format Excel cell in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021220#M1168367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your file contains the leading zeros but when you open it in Excel, Excel is removing those leading zeros. Because excel treats that as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this on [Preserve Downloaded data formatting in Excel |http://help-abap.blogspot.com/2008/09/preserve-downloaded-data-formatting-in.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jan 2009 17:32:35 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2009-01-13T17:32:35Z</dc:date>
    <item>
      <title>Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021213#M1168360</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 am writing a program that will send out an email with an excel attachment. When I open the excel file, it does show the leading zeros if the value contents only digits. For example. if the plant is '0005' the file displays just '5'. Do you know how to format the cell to text field? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM 'SO_DOCUMENT_SEND_API1' for the email sending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chuong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 16:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021213#M1168360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021214#M1168361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my typo -- does not show the leading zeros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 16:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021214#M1168361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T16:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021215#M1168362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's an excel thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest solution is just to place a non numeric character at the beggining or end of the number to treat it like a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like .005 or {005&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 16:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021215#M1168362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021216#M1168363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm thinking of a single quote but don't know how to define single quote in ABAP. Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 17:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021216#M1168363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T17:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021217#M1168364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA LV_SINGLE TYPE CHAR01 VALUE '''' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 17:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021217#M1168364</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-01-13T17:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021218#M1168365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. However, the single quote does not have the same functionality as in Excel. It does not change to the text format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 17:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021218#M1168365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T17:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021219#M1168366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you pass data as '0005 then it should display as 0005 in excel. &lt;/P&gt;&lt;P&gt;Could you check whether you are loosing leading zero before you are passing the data to FM (for email)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using CONCATENATE statement to add single quote to plant then check whether you are loosing zeros there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 17:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021219#M1168366</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-01-13T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021220#M1168367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your file contains the leading zeros but when you open it in Excel, Excel is removing those leading zeros. Because excel treats that as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this on [Preserve Downloaded data formatting in Excel |http://help-abap.blogspot.com/2008/09/preserve-downloaded-data-formatting-in.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 17:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021220#M1168367</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-01-13T17:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021221#M1168368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still have the zeors before passing to the FM. In excel, it displayed '0005 instead of 0005.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 18:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021221#M1168368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021222#M1168369</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;You can configure the Excel to display the cell/collum in text format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Henrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 19:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021222#M1168369</guid>
      <dc:creator>Private_Member_32931</dc:creator>
      <dc:date>2009-01-13T19:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021223#M1168370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do this in SAP instead of Excel? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 14:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021223#M1168370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T14:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Format Excel cell</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021224#M1168371</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;If you are using OLE automation to create the excel, you should format the cell like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
SET PROPERTY OF cell '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;Claudiu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 17:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-excel-cell/m-p/5021224#M1168371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-14T17:34:47Z</dc:date>
    </item>
  </channel>
</rss>

