<?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: Selecting worksheet from EXCEL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113033#M1362589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like Sourav also had the problem before, and he is kind enough to share his knowledge [&amp;gt;&amp;gt;&amp;gt;&amp;gt;click&amp;gt;&amp;gt;&amp;gt;&amp;gt;|http://wiki.sdn.sap.com/wiki/x/m4bUAw]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 01:07:20 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-09-14T01:07:20Z</dc:date>
    <item>
      <title>Selecting worksheet from EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113031#M1362587</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 am working with EXCEL with multiple worksheets. I am able to get the data that i need to the worksheets. But my issue now is the EXCEL will have multiple worksheets. I need to choose the worksheet by name. Lets say my EXCEL has 3 sheets.Sheet1/Sheet2 and Sheet3.  When i execute for the first time i want to load my data to Sheet3. Next time may be in Sheet2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What i am looking at is i want to check the worksheet name and if it matches my requirement then i will load into that sheet. If not i want to move to the next worksheet and check its name. Continue this till i check all the worksheet names. IDoes anyone has any idea how to go with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Karuna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karuna Gangireddy on Sep 11, 2009 6:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 16:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113031#M1362587</guid>
      <dc:creator>karuna_gangireddy</dc:creator>
      <dc:date>2009-09-11T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting worksheet from EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113032#M1362588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you use: OLE, xlsx, DOI, ...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2009 20:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113032#M1362588</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-13T20:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting worksheet from EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113033#M1362589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like Sourav also had the problem before, and he is kind enough to share his knowledge [&amp;gt;&amp;gt;&amp;gt;&amp;gt;click&amp;gt;&amp;gt;&amp;gt;&amp;gt;|http://wiki.sdn.sap.com/wiki/x/m4bUAw]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 01:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113033#M1362589</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-09-14T01:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting worksheet from EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113034#M1362590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi karuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the document instance get the Spreadsheet interface and call the below methods:&lt;/P&gt;&lt;P&gt;GET_SHEETS --- Which returns the existing sheets in an EXCEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT_SHEET -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; Which activates the required sheet in the EXCEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g;&lt;/P&gt;&lt;P&gt;CALL METHOD spreadsheet-&amp;gt;get_sheets&lt;/P&gt;&lt;P&gt;IMPORTING sheets = sheets&lt;/P&gt;&lt;P&gt;                   error    = error&lt;/P&gt;&lt;P&gt;                   retcode = retcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, spreadsheet is the instance of the Spreadsheet interface i_oi_spreadsheet.&lt;/P&gt;&lt;P&gt;The above instance of the interface can be obtained using the method get_spreadsheet_interface of doucment instance of type i_oi_document_proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 09:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-worksheet-from-excel/m-p/6113034#M1362590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T09:47:36Z</dc:date>
    </item>
  </channel>
</rss>

