<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276733#M495227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the fun module&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 09:08:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T09:08:36Z</dc:date>
    <item>
      <title>excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276731#M495225</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;i have an excel document with two tabs.&lt;/P&gt;&lt;P&gt;i need a function module (probably) that it will fill data to excel from an iternal table.&lt;/P&gt;&lt;P&gt;i dont want to fill the excel from the first cell(1 col - 1 raw ) but from the cell that i will define. that is the main problem. the other problem is that i want it in the second tab.&lt;/P&gt;&lt;P&gt;PLEASE HELP ME!!!&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276731#M495225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276732#M495226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, the following code creates a multiple sheet Excel document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ole2incl.&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;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;DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,&lt;/P&gt;&lt;P&gt;                              '=Sheet1!A1 &amp;amp; " " &amp;amp; Sheet2!A1' TO itab3,&lt;/P&gt;&lt;P&gt;            'John' TO itab1, 'Smith' TO itab2,&lt;/P&gt;&lt;P&gt;                              '=Sheet1!A2 &amp;amp; " " &amp;amp; Sheet2!A2' TO itab3.&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;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;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 1.&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;  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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create second Excel sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 2.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF sheet 'Name' = 'Sheet2'.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF sheet 'Activate'.&lt;/P&gt;&lt;P&gt;  LOOP AT itab2.&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' = itab2-last_name.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create third Excel sheet&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 3.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF sheet 'Name' = 'Sheet3'.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF sheet 'Activate'.&lt;/P&gt;&lt;P&gt;  LOOP AT itab3.&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 'Formula' = itab3-formula.&lt;/P&gt;&lt;P&gt;    SET PROPERTY OF cells 'Value' = itab3-formula.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Closes excel window, data is lost if not saved&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PROPERTY OF application 'visible' = 0.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276732#M495226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276733#M495227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the fun module&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276733#M495227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276734#M495228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes thank you .  but my problem is that i want to use a specific excel file. it will be helpful even if i dont know object oriented abap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276734#M495228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276735#M495229</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;pla check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;MTART LIKE MARA-MTART,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: DATEI TYPE STRING VALUE 'D:\TEST.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;P&gt;*&lt;/P&gt;&lt;P&gt;SELECT * FROM MARA UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ITAB-MATNR = MARA-MATNR.&lt;/P&gt;&lt;P&gt;ITAB-MTART = MARA-MTART.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Download der Spools&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = DATEI&lt;/P&gt;&lt;P&gt;WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;DATA_TAB = ITAB[].&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;EXECUTE&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DOCUMENT = DATEI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.....................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if it helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276735#M495229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276736#M495230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the alsm excel to iternal is exactly the opposite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        antonis nezos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276736#M495230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276737#M495231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;finally we didnt find any solution....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 09:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276737#M495231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276738#M495232</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 the example posted above with a little change.&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;CALL METHOD OF workbook 'Open'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;#1 = 'c:\myfile.xls'. "your excel file name here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276738#M495232</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-18T10:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276739#M495233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;se euxaristw therma!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tha to dokimasw se ligo kai elpizw na doulepsei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276739#M495233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276740#M495234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;krata me enhmero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276740#M495234</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-18T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276741#M495235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok . fenetai pws douleuei. alla akoma uparxei kapoio mikro provlimataki..&lt;/P&gt;&lt;P&gt;thelw na ksekinaei apo sugkekrimeni  stili. tin grammi tin vrika. episis ti ginetai stin periptwsi mou pou thelw kapoia apo tis stiles tou excel pou einai idi simplirwmenes na min ginontai modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        antonis nezos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 10:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276741#M495235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T10:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276742#M495236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's talk in English since there might be someone else in the future that has the same questions and cannot read Greek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to write in a specific cell do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF sheet 'Cells' = cells &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;#1 = '1'  "line index&lt;/P&gt;&lt;P&gt;#2 = '1'. "column index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 11:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276742#M495236</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-18T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276743#M495237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it seems to be working only for the line index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276743#M495237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T12:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276744#M495238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;CALL METHOD OF &amp;lt;b&amp;gt;application&amp;lt;/b&amp;gt; 'Cells' = cells&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = '1' "line index&lt;/P&gt;&lt;P&gt;#2 = '1'. "column index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276744#M495238</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-18T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276745#M495239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;unfortunatelly not.&lt;/P&gt;&lt;P&gt; i want to start from A4 cell. the last column is I . some columns (for example B ) must be empty. so i have two problems. the one that we said something above but remains unsolved and the other is the field separator. ( i mean that  i want in column A to be filled with the first field of my internal table then in column C (not B) for example to be filled with&lt;/P&gt;&lt;P&gt;the second field of the internal. Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 12:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276745#M495239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T12:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276746#M495240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried like this and wrote the value in cell A3. Check that your code is correct and maybe post here some of your code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF application 'Cells' = cells&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = 1&lt;/P&gt;&lt;P&gt;#2 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PROPERTY OF cells 'Value' = 'Kostas'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276746#M495240</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-18T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276747#M495241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok it is working. Perfect.  the last problem now is that it  filled only with the header line of the internal table. what about with the  other lines of the itab. thank you for your time. big respect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276747#M495241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276748#M495242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well done!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it is up to you to manipulate the excel sheet the way you like it.&lt;/P&gt;&lt;P&gt;For example you can loop in your internal table and write it's contents in any cell you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;P&gt;data: lv_row type i.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;add 1 to lv_row.&lt;/P&gt;&lt;P&gt;CALL METHOD OF application 'Cells' = cells&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = lv_row&lt;/P&gt;&lt;P&gt;#2 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PROPERTY OF cells 'Value' = itab-field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276748#M495242</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-05-18T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276749#M495243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is the solution of my problem.&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;CALL METHOD OF workbook 'Open'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;#1 = 'C:\Temp\XXX0099_Support_20XX.xls'. "your excel file name here&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;*LOOP AT itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create second Excel sheet  "Timesheets&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF application 'Worksheets' = sheet&lt;/P&gt;&lt;P&gt;                               EXPORTING #1 = 2.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF sheet 'Name' = 'Timesheets'.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF sheet 'Activate'.&lt;/P&gt;&lt;P&gt;clear: w_index.&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;  w_index = sy-tabix + 3.&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;   index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF application 'Cells' = cells&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = w_index " line&lt;/P&gt;&lt;P&gt;#2 = 1. "col&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CALL METHOD OF sheet 'Cells' = cells EXPORTING #2 = '1'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    SET PROPERTY OF cells 'Value' = itab-budat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF application 'Cells' = cells&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = w_index&lt;/P&gt;&lt;P&gt;#2 = 3.&lt;/P&gt;&lt;P&gt; SET PROPERTY OF cells 'Value' = itab-ltext .&lt;/P&gt;&lt;P&gt;  ENDLOOP.&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;Save excel speadsheet to particular filename&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF sheet 'Save'&lt;/P&gt;&lt;P&gt;                  EXPORTING #1 = 'c:\temp\XXX0099_Support_20XX.xls'&lt;/P&gt;&lt;P&gt;"filename&lt;/P&gt;&lt;P&gt;                            #2 = 1.&lt;/P&gt;&lt;P&gt;"fileFormat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 13:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276749#M495243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276750#M495244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if i want to re-run the report?&lt;/P&gt;&lt;P&gt;i dont want the new index of the iternal to be overwritten in the excel but to be appended in  empty lines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 10:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel/m-p/2276750#M495244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T10:13:28Z</dc:date>
    </item>
  </channel>
</rss>

