<?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 File's cell format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524748#M240483</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;how can  i lock the entire rows based on certain condition.my req is some rows should get locked in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Leoiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2006 23:24:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-13T23:24:09Z</dc:date>
    <item>
      <title>Excel File's cell format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524745#M240480</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;My requirement is to check that the cells of the uploaded excel file are in "Text" format. Is there any function module that I can use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 04:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524745#M240480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T04:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Excel File's cell format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524746#M240481</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 use OLE in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_EXCEL             .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;INCLUDE ole2incl.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: application TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       workbook TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       sheet TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       cells TYPE ole2_object.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CONSTANTS: row_max TYPE i VALUE 256.&lt;/P&gt;&lt;P&gt;DATA index TYPE i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab1 OCCURS 0,&lt;/P&gt;&lt;P&gt; first_name(10),&lt;/P&gt;&lt;P&gt; last_name(10),&lt;/P&gt;&lt;P&gt; END OF itab1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; itab1-first_name = '123445'.&lt;/P&gt;&lt;P&gt; itab1-last_name = 'tesst'.&lt;/P&gt;&lt;P&gt; append itab1.&lt;/P&gt;&lt;P&gt; clear itab1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; itab1-first_name = '123446'.&lt;/P&gt;&lt;P&gt; itab1-last_name = 'tesst'.&lt;/P&gt;&lt;P&gt; append itab1.&lt;/P&gt;&lt;P&gt; clear itab1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CREATE OBJECT application 'excel.application'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF application 'visible' = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF application 'Workbooks' = workbook.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF workbook 'Add'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create first Excel Sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL METHOD OF sheet 'Activate'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF sheet 'Name' = 'Sheet1'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name&lt;/P&gt;&lt;P&gt;    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.&lt;/P&gt;&lt;P&gt;    SET PROPERTY OF cells 'Value' = itab1-first_name.&lt;/P&gt;&lt;P&gt;        index = index + 1. " 1 - column name&lt;/P&gt;&lt;P&gt;    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.&lt;/P&gt;&lt;P&gt;    SET PROPERTY OF cells 'Value' = itab1-last_name.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Save excel speadsheet to particular filename&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF sheet 'SaveAs'&lt;/P&gt;&lt;P&gt;                 EXPORTING #1 = 'c:\temp\exceldoc1.xls'     "filename&lt;/P&gt;&lt;P&gt;                            #2 = 1.                          "fileFormat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex 2: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zole_example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include ole2incl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: e_sheet type ole2_object.&lt;/P&gt;&lt;P&gt;data: e_appl  type ole2_object.&lt;/P&gt;&lt;P&gt;data: e_work  type ole2_object.&lt;/P&gt;&lt;P&gt;data: e_cell  type ole2_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: field_value(30) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_file type localfile default 'C:\RichTest.xls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start the application&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create object e_appl 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;P&gt;  set property of e_appl 'VISIBLE' = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open the file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of e_appl 'WORKBOOKS' = e_work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method of e_work 'OPEN'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;               #1 = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write data to the excel file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  do 20 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    field_value  = sy-index.&lt;/P&gt;&lt;P&gt;    shift field_value left deleting leading space.&lt;/P&gt;&lt;P&gt;    concatenate 'Cell' field_value &lt;/P&gt;&lt;P&gt;       into field_value separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Position to specific cell  in  Column 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method of e_appl 'Cells' = e_cell&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;                #1 = sy-index&lt;/P&gt;&lt;P&gt;                #2 = 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set the value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    set property of e_cell 'Value' = field_value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Position to specific cell  in  Column 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method of e_appl 'Cells' = e_cell&lt;/P&gt;&lt;P&gt;           exporting&lt;/P&gt;&lt;P&gt;                #1 = sy-index&lt;/P&gt;&lt;P&gt;                #2 = 2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set the value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    set property of e_cell 'Value' = field_value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close the file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of e_work 'close'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Quit the file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method of  e_appl  'QUIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  free object e_appl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harini.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 05:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524746#M240481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T05:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Excel File's cell format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524747#M240482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think there is any function module who ll help you for this kind of requirement. You have not mentioned when and how you r checking the particular excel file,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you using GUI_UPLOAD i dont think there would be any prob, it will automatically convert from binary to text and you ll get in the text format only, if you r using any other function module, than there might be some prob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 06:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524747#M240482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T06:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Excel File's cell format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524748#M240483</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;how can  i lock the entire rows based on certain condition.my req is some rows should get locked in excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Leoiz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 23:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524748#M240483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-13T23:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excel File's cell format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524749#M240484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed the program by using same functionaliy  &lt;/P&gt;&lt;P&gt;iam getting below error  iam unable to find why the error is comming &lt;/P&gt;&lt;P&gt;please advice me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errro : To many selection conditions with length &amp;gt; 30 in WHERE_CLAUSES &lt;/P&gt;&lt;P&gt;Message no. DB895&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;RameshG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: RameshG on Apr 15, 2011 7:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 14:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-file-s-cell-format/m-p/1524749#M240484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-15T14:01:41Z</dc:date>
    </item>
  </channel>
</rss>

