<?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 when downloading using WS_EXCEL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755198#M1115270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is neither that post is from my another id nor we aork for the same company.&lt;/P&gt;&lt;P&gt;More over that is the duplicate post of mine. &lt;/P&gt;&lt;P&gt;Please refer the time of posting.&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;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 05:04:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-13T05:04:02Z</dc:date>
    <item>
      <title>Problem when downloading using WS_EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755195#M1115267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using FM 'WS_EXCEL' to download Customer and bank details to an excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the bank account number (knbk-bankn) is large like 254...20 it is &lt;/P&gt;&lt;P&gt;been displayed as 2.54E+15, but our user want it to be displayed in full format without any manual cell formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest a solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 04:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755195#M1115267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T04:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when downloading using WS_EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755196#M1115268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="20" __jive_macro_name="size"&gt;Duplicate Post of;
&lt;SPAN __jive_macro_name="thread" id="1125125"&gt;&lt;/SPAN&gt;  by &lt;SPAN __jive_macro_name="user" id="3854945"&gt;&lt;/SPAN&gt;

Read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/HOME/Rules&lt;EM&gt;of&lt;/EM&gt;Engagement] before posting more.

&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Are you working for a same company or thats your another User Id?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 04:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755196#M1115268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T04:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when downloading using WS_EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755197#M1115269</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;It is an Excel issue. For example if you enter 222222222222222222 in any cell of Excel sheet , it takes it as 2.22222E+17. So one solution I can give is instead of giving account number as 222222222222222222 give as 22222222222-2222222 to &lt;/P&gt;&lt;P&gt;FM WS_EXCEL. If there are more than 11 digits continuously, Excel considers it as number and acts accordingly. If there is any character or space in between Excel  will not consider it as number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 04:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755197#M1115269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T04:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when downloading using WS_EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755198#M1115270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is neither that post is from my another id nor we aork for the same company.&lt;/P&gt;&lt;P&gt;More over that is the duplicate post of mine. &lt;/P&gt;&lt;P&gt;Please refer the time of posting.&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;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 05:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755198#M1115270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T05:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when downloading using WS_EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755199#M1115271</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;See my reply here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1125125"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : it_KNBK type table of KNBK.

select * from KNBK
into table it_KNBK.

CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
  EXPORTING
    FILE_NAME                       = 'C:Documents and SettingssapDesktop&amp;#8;ank2.xls'
*   CREATE_PIVOT                    = 0
*   DATA_SHEET_NAME                 = ' '
*   PIVOT_SHEET_NAME                = ' '
*   PASSWORD                        = ' '
*   PASSWORD_OPTION                 = 0
  TABLES
*   PIVOT_FIELD_TAB                 =
    DATA_TAB                        = it_KNBK
*   FIELDNAMES                      = it_KNBK
* EXCEPTIONS
*   FILE_NOT_EXIST                  = 1
*   FILENAME_EXPECTED               = 2
*   COMMUNICATION_ERROR             = 3
*   OLE_OBJECT_METHOD_ERROR         = 4
*   OLE_OBJECT_PROPERTY_ERROR       = 5
*   INVALID_PIVOT_FIELDS            = 6
*   DOWNLOAD_PROBLEM                = 7
*   OTHERS                          = 8
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 05:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755199#M1115271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T05:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when downloading using WS_EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755200#M1115272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thanks for giving your sugggestions.&lt;/P&gt;&lt;P&gt;I solved that issue by using OLE.&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>Sat, 06 Dec 2008 05:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-downloading-using-ws-excel/m-p/4755200#M1115272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-06T05:23:26Z</dc:date>
    </item>
  </channel>
</rss>

